about summary refs log blame commit diff stats
path: root/tests/functionaltests/test_rooms.c
blob: 49b1d892f5d0bd5724d24c7c72f4c1921e50b22d (plain) (tree)
: return LEX_ITEM_SEP; case '(': return LEX_OPEN_PAREN; case ')': return LEX_CLOSE_PAREN; case '@': return LEX_AT_SIGN; default: /* Leading white space ignored (SP,TAB,CR) */ break; } break; default: if (lex_cnt < (int) (sizeof(HTlex_buffer) - 1)) HTlex_buffer[lex_cnt++] = (char) ch; HTlex_buffer[lex_cnt] = '\0'; if ('*' == ch) lex_template = YES; } /* switch ch */ } /* forever */ } const char *lex_verbose(LexItem lex_item) { static char msg[sizeof(HTlex_buffer) + 30]; /* @@@@@@@@ */ switch (lex_item) { case LEX_NONE: /* Internally used */ return "NO-LEX-ITEM"; case LEX_EOF: /* End of file */ return "end-of-file"; case LEX_REC_SEP: /* Record separator */ return "record separator (newline)"; case LEX_FIELD_SEP: /* Field separator */ return "field separator ':'"; case LEX_ITEM_SEP: /* List item separator */ return "item separator ','"; case LEX_OPEN_PAREN: /* Group start tag */ return "'('"; case LEX_CLOSE_PAREN: /* Group end tag */ return "')'"; case LEX_AT_SIGN: /* Address qualifier */ return "address qualifier '@'"; case LEX_ALPH_STR: /* Alphanumeric string */ sprintf(msg, "alphanumeric string '%.*s'", (int) sizeof(HTlex_buffer), HTlex_buffer); return msg; case LEX_TMPL_STR: /* Template string */ sprintf(msg, "template string '%.*s'", (int) sizeof(HTlex_buffer), HTlex_buffer); return msg; default: return "UNKNOWN-LEX-ITEM"; } }