mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
added check to wrong function
This commit is contained in:
parent
b1396504b3
commit
7bfd705b49
1 changed files with 4 additions and 4 deletions
|
@ -136,10 +136,6 @@ inline psycParseRC psyc_parseName(psycParseState* state, psycString* name)
|
|||
*/
|
||||
inline psycParseRC psyc_parseBinaryValue(psycParseState* state, psycString* value, size_t* length, size_t* parsed)
|
||||
{
|
||||
if (state->flags & PSYC_PARSE_HEADER_ONLY &&
|
||||
state->flags & PSYC_PARSE_BEGIN_AT_CONTENT)
|
||||
return PSYC_PARSE_ERROR_INVALID_FLAGS;
|
||||
|
||||
size_t remaining = *length - *parsed;
|
||||
value->ptr = state->buffer.ptr + state->cursor;
|
||||
|
||||
|
@ -234,6 +230,10 @@ inline psycParseRC psyc_parseModifier(psycParseState* state, char* oper, psycStr
|
|||
*/
|
||||
psycParseRC psyc_parse(psycParseState* state, char* oper, psycString* name, psycString* value)
|
||||
{
|
||||
if (state->flags & PSYC_PARSE_HEADER_ONLY &&
|
||||
state->flags & PSYC_PARSE_BEGIN_AT_CONTENT)
|
||||
return PSYC_PARSE_ERROR_INVALID_FLAGS;
|
||||
|
||||
psycParseRC ret; // a return value
|
||||
size_t pos = state->cursor; // a cursor position
|
||||
|
||||
|
|
Loading…
Reference in a new issue