about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/HTLex.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1998-11-06 16:18:09 -0500
committerThomas E. Dickey <dickey@invisible-island.net>1998-11-06 16:18:09 -0500
commit18024037b515bfff83e0230b35151babe6005e18 (patch)
treeb8c80055282a00883284722a3dd6bb25234e07f0 /WWW/Library/Implementation/HTLex.c
parent3d8ecbe48af249fa0d77ce4d273e32ce4b7e6e18 (diff)
downloadlynx-snapshots-18024037b515bfff83e0230b35151babe6005e18.tar.gz
snapshot of project "lynx", label v2-8-1dev_4
Diffstat (limited to 'WWW/Library/Implementation/HTLex.c')
-rw-r--r--WWW/Library/Implementation/HTLex.c26
1 files changed, 18 insertions, 8 deletions
diff --git a/WWW/Library/Implementation/HTLex.c b/WWW/Library/Implementation/HTLex.c
index e7568ea6..6cffe648 100644
--- a/WWW/Library/Implementation/HTLex.c
+++ b/WWW/Library/Implementation/HTLex.c
@@ -14,7 +14,6 @@
 */
 
 #include <HTUtils.h>
-
 #include <HTAAUtil.h>
 #include <HTLex.h>	/* Implemented here */
 
@@ -78,14 +77,14 @@ PUBLIC LexItem lex ARGS1(FILE *, fp)
 		else		  return LEX_ALPH_STR;
 	    }
 	    else switch(ch) {
-	      case EOF:		return LEX_EOF;
+	      case EOF:		return LEX_EOF;		break;
 	      case '\n':
-		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;
+		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;
 	      default:	;	/* Leading white space ignored (SP,TAB,CR) */
 	    }
 	    break;
@@ -105,28 +104,39 @@ 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;
     }
 }