This commit is contained in:
Gabor Adam Toth 2011-05-08 16:49:24 +02:00
parent 1ebcb8b17d
commit 16672ee1f7
2 changed files with 10 additions and 4 deletions

View File

@ -2,16 +2,18 @@ OPT = -O2
DEBUG = 2
CFLAGS = -I../include -Wall -std=c99 ${OPT}
LDFLAGS = -L../lib
LOADLIBES = -lpsyc -lm
LOADLIBES_NET = ${LOADLIBES}
TARGETS = testServer testParser testMatch testRender testText isRoutingVar getVarType
WRAPPER =
DIET = diet
PORT = 4440
NC = nc
DIFF = diff
LOADLIBES = -lpsyc -lm
ifeq ($(shell uname),SunOS)
LOADLIBES_NET = ${LOADLIBES} -lsocket -lnsl
else
LOADLIBES_NET = ${LOADLIBES}
LOADLIBES_NET := ${LOADLIBES_NET} -lsocket -lnsl
DIFF = gdiff
endif
all: ${TARGETS}

View File

@ -434,6 +434,10 @@ int main (int argc, char **argv)
case PSYC_PARSE_ROUTING:
case PSYC_PARSE_ENTITY:
case PSYC_PARSE_ENTITY_END:
oper = 0;
name.length = 0;
value.length = 0;
if (pname->length >= 5 && memcmp(pname->ptr, "_list", 5) == 0)
{
if (verbose >= 2)