mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
compiles again
This commit is contained in:
parent
a97063210d
commit
561174798f
4 changed files with 11 additions and 10 deletions
6
.gitignore
vendored
Normal file
6
.gitignore
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
.*
|
||||
*~
|
||||
\#*
|
||||
*.o
|
||||
*.a
|
||||
src/tests/testParser
|
|
@ -16,7 +16,8 @@ enum PSYC_ReturnCodes
|
|||
PSYC_ROUTING,
|
||||
PSYC_ENTITY,
|
||||
PSYC_ENTITY_INCOMPLETE,
|
||||
PSYC_HEADER_DONE,
|
||||
PSYC_HEADER_COMPLETE,
|
||||
PSYC_COMPLETE,
|
||||
};
|
||||
|
||||
|
||||
|
@ -90,7 +91,4 @@ inline unsigned int PSYC_getValueRemaining (PSYC_State* s)
|
|||
#endif
|
||||
|
||||
int PSYC_parse(PSYC_State* state,
|
||||
uint8_t* modifier, PSYC_Array* name, PSYC_Array* value,
|
||||
unsigned long* bytesParsed, unsigned long *bytesExpected);
|
||||
|
||||
|
||||
uint8_t* modifier, PSYC_Array* name, PSYC_Array* value);
|
||||
|
|
3
src/.gitignore
vendored
3
src/.gitignore
vendored
|
@ -1,3 +0,0 @@
|
|||
*.o
|
||||
*.a
|
||||
tests/testParser
|
|
@ -281,12 +281,12 @@ start:
|
|||
if (value->ptr + state->contentLength + 3 > state->buffer.ptr + state->buffer.length)
|
||||
{ // no
|
||||
value->length = state->buffer.length - state->cursor;
|
||||
*expectedBytes = state->contentLength - value->length;
|
||||
//*expectedBytes = state->contentLength - value->length;
|
||||
}
|
||||
else // yes, the packet is complete in the buffer.
|
||||
{
|
||||
value->length= state->buffer.length - state->cursor -3;
|
||||
*expectedBytes = 0;
|
||||
//*expectedBytes = 0;
|
||||
}
|
||||
}
|
||||
else // else search for the terminator
|
||||
|
|
Loading…
Reference in a new issue