mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
s/operator/oper/
This commit is contained in:
parent
1e32c9c484
commit
29f6e6c432
6 changed files with 15 additions and 15 deletions
|
@ -7,7 +7,7 @@
|
|||
int main(int argc, char** argv)
|
||||
{
|
||||
int index, ret;
|
||||
char buffer[2048], operator;
|
||||
char buffer[2048], oper;
|
||||
PSYC_Array name, value, elem;
|
||||
PSYC_ParseState state;
|
||||
PSYC_ParseListState listState;
|
||||
|
@ -25,13 +25,13 @@ int main(int argc, char** argv)
|
|||
PSYC_nextParseBuffer(&state, PSYC_createArray(buffer, index));
|
||||
|
||||
// try parsing that now
|
||||
while ((ret = PSYC_parse(&state, &operator, &name, &value)))
|
||||
while ((ret = PSYC_parse(&state, &oper, &name, &value)))
|
||||
{
|
||||
switch (ret)
|
||||
{
|
||||
case PSYC_PARSE_ROUTING:
|
||||
case PSYC_PARSE_ENTITY:
|
||||
write(1, &operator, 1);
|
||||
write(1, &oper, 1);
|
||||
case PSYC_PARSE_BODY:
|
||||
// printf("the string is '%.*s'\n", name);
|
||||
write(1, name.ptr, name.length);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue