1
0
Fork 0
mirror of git://git.psyc.eu/libpsyc synced 2024-08-15 03:19:02 +00:00
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 DEBUG = 2
CFLAGS = -I../include -Wall -std=c99 ${OPT} CFLAGS = -I../include -Wall -std=c99 ${OPT}
LDFLAGS = -L../lib LDFLAGS = -L../lib
LOADLIBES = -lpsyc -lm
LOADLIBES_NET = ${LOADLIBES}
TARGETS = testServer testParser testMatch testRender testText isRoutingVar getVarType TARGETS = testServer testParser testMatch testRender testText isRoutingVar getVarType
WRAPPER = WRAPPER =
DIET = diet DIET = diet
PORT = 4440 PORT = 4440
NC = nc
DIFF = diff
LOADLIBES = -lpsyc -lm
ifeq ($(shell uname),SunOS) ifeq ($(shell uname),SunOS)
LOADLIBES_NET = ${LOADLIBES} -lsocket -lnsl LOADLIBES_NET := ${LOADLIBES_NET} -lsocket -lnsl
else DIFF = gdiff
LOADLIBES_NET = ${LOADLIBES}
endif endif
all: ${TARGETS} all: ${TARGETS}

View file

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