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:
tg(x) 2011-11-09 21:38:06 +01:00
parent 49dedd5864
commit aee9203df6
4 changed files with 7 additions and 7 deletions

View file

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

View file

@ -153,7 +153,7 @@ typedef enum {
/// Operator, name & value contains the respective parts.
PSYC_PARSE_ROUTING = 2,
/// State sync operation.
PSYC_PARSE_STATE_SYNC = 3,
PSYC_PARSE_STATE_RESYNC = 3,
/// State reset operation.
PSYC_PARSE_STATE_RESET = 4,
/// 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);
switch (*oper)
{
case PSYC_STATE_SYNC:
case PSYC_STATE_RESYNC:
state->contentParsed += 2;
return PSYC_PARSE_STATE_SYNC;
return PSYC_PARSE_STATE_RESYNC;
case PSYC_STATE_RESET:
state->contentParsed += 2;
return PSYC_PARSE_STATE_RESET;

View file

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