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-11-09 21:38:06 +01:00
parent af6106c125
commit 58d4b73597
4 changed files with 7 additions and 7 deletions

View file

@ -67,7 +67,7 @@ typedef enum
{ {
PSYC_STATE_NOOP = 0, PSYC_STATE_NOOP = 0,
PSYC_STATE_RESET = '=', PSYC_STATE_RESET = '=',
PSYC_STATE_SYNC = '?', PSYC_STATE_RESYNC = '?',
} PsycStateOp; } PsycStateOp;
/** Structure for a modifier. */ /** Structure for a modifier. */

View file

@ -153,7 +153,7 @@ typedef enum {
/// Operator, name & value contains the respective parts. /// Operator, name & value contains the respective parts.
PSYC_PARSE_ROUTING = 2, PSYC_PARSE_ROUTING = 2,
/// State sync operation. /// State sync operation.
PSYC_PARSE_STATE_SYNC = 3, PSYC_PARSE_STATE_RESYNC = 3,
/// State reset operation. /// State reset operation.
PSYC_PARSE_STATE_RESET = 4, PSYC_PARSE_STATE_RESET = 4,
/// Start of an incomplete entity modifier. /// Start of an incomplete entity modifier.

View file

@ -289,9 +289,9 @@ PsycParseRC psyc_parse (PsycParseState *state, char *oper,
*oper = *(state->buffer.data + state->cursor - 1); *oper = *(state->buffer.data + state->cursor - 1);
switch (*oper) switch (*oper)
{ {
case PSYC_STATE_SYNC: case PSYC_STATE_RESYNC:
state->contentParsed += 2; state->contentParsed += 2;
return PSYC_PARSE_STATE_SYNC; return PSYC_PARSE_STATE_RESYNC;
case PSYC_STATE_RESET: case PSYC_STATE_RESET:
state->contentParsed += 2; state->contentParsed += 2;
return PSYC_PARSE_STATE_RESET; return PSYC_PARSE_STATE_RESET;

View file

@ -98,7 +98,7 @@ int test_input (int i, char *recvbuf, size_t nbytes) {
packet->routing.lines++; packet->routing.lines++;
break; break;
case PSYC_PARSE_STATE_SYNC: case PSYC_PARSE_STATE_RESYNC:
case PSYC_PARSE_STATE_RESET: case PSYC_PARSE_STATE_RESET:
packet->stateop = oper; packet->stateop = oper;
break; break;