1
0
Fork 0
mirror of git://git.psyc.eu/libpsyc synced 2024-08-15 03:19:02 +00:00

stupid gcc wants me to put extra () around the ret =

This commit is contained in:
psyc://psyced.org/~lynX 2011-04-20 17:15:03 +02:00
parent f7adce9461
commit 52d672318c
3 changed files with 4 additions and 4 deletions

View file

@ -121,7 +121,7 @@ typedef enum
typedef struct
{
size_t length;
const uint8_t * ptr;
const uint8_t * ptr; // just an unsigned char for opaque data
} PSYC_Array;
/**

View file

@ -1,5 +1,5 @@
CFLAGS=-I../include -DDEBUG -g -O0 -Wall
LDFLAGS=-L..
LDFLAGS=-L../src
LOADLIBES=-lpsyc
TARGETS=testParser testMatch

View file

@ -24,7 +24,7 @@ int main(int argc, char** argv)
PSYC_nextBuffer(&state, PSYC_createArray(buffer, index));
// try parsing that now
while (ret = PSYC_parse(&state, &modifier, &name, &value))
while ((ret = PSYC_parse(&state, &modifier, &name, &value)))
{
switch (ret)
{
@ -41,7 +41,7 @@ int main(int argc, char** argv)
write(1, ">>> LIST START\n", 15);
PSYC_initListState(&listState);
PSYC_nextListBuffer(&listState, value);
while (ret = PSYC_parseList(&listState, &name, &value, &elem))
while ((ret = PSYC_parseList(&listState, &name, &value, &elem)))
{
switch (ret)
{