diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1998-06-04 14:28:00 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1998-06-04 14:28:00 -0400 |
commit | b5ffa7c020e319cbfceee3c506f5c16764800dc2 (patch) | |
tree | 01d4efe0277a37c6bb05dc6599638822aa8a238d /WWW/Library/Implementation/HTLex.c | |
parent | 6e75abc094af51d02563fd5250d1b55e9bb96912 (diff) | |
download | lynx-snapshots-b5ffa7c020e319cbfceee3c506f5c16764800dc2.tar.gz |
snapshot of project "lynx", label v2-8-1dev_14
Diffstat (limited to 'WWW/Library/Implementation/HTLex.c')
-rw-r--r-- | WWW/Library/Implementation/HTLex.c | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/WWW/Library/Implementation/HTLex.c b/WWW/Library/Implementation/HTLex.c index 6cffe648..56b1fdae 100644 --- a/WWW/Library/Implementation/HTLex.c +++ b/WWW/Library/Implementation/HTLex.c @@ -77,14 +77,14 @@ PUBLIC LexItem lex ARGS1(FILE *, fp) else return LEX_ALPH_STR; } else switch(ch) { - case EOF: return LEX_EOF; break; + case EOF: return LEX_EOF; case '\n': - HTlex_line++; return LEX_REC_SEP; break; - case ':': return LEX_FIELD_SEP; break; - case ',': return LEX_ITEM_SEP; break; - case '(': return LEX_OPEN_PAREN; break; - case ')': return LEX_CLOSE_PAREN; break; - case '@': return LEX_AT_SIGN; break; + HTlex_line++; return LEX_REC_SEP; + case ':': return LEX_FIELD_SEP; + case ',': 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; @@ -104,39 +104,28 @@ PUBLIC char *lex_verbose ARGS1(LexItem, lex_item) switch (lex_item) { case LEX_NONE: /* Internally used */ return "NO-LEX-ITEM"; - break; case LEX_EOF: /* End of file */ return "end-of-file"; - break; case LEX_REC_SEP: /* Record separator */ return "record separator (newline)"; - break; case LEX_FIELD_SEP: /* Field separator */ return "field separator ':'"; - break; case LEX_ITEM_SEP: /* List item separator */ return "item separator ','"; - break; case LEX_OPEN_PAREN: /* Group start tag */ return "'('"; - break; case LEX_CLOSE_PAREN: /* Group end tag */ return "')'"; - break; case LEX_AT_SIGN: /* Address qualifier */ return "address qualifier '@'"; - break; case LEX_ALPH_STR: /* Alphanumeric string */ sprintf(msg, "alphanumeric string '%s'", HTlex_buffer); return msg; - break; case LEX_TMPL_STR: /* Template string */ sprintf(msg, "template string '%s'", HTlex_buffer); return msg; - break; default: return "UNKNOWN-LEX-ITEM"; - break; } } |