diff options
author | peter <peter@FreeBSD.org> | 1999-10-10 17:36:11 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-10-10 17:36:11 +0000 |
commit | b7ec6580100588b92f69bae020a3b2bbaace18fb (patch) | |
tree | bb10d6445ddc5eea5cabc6ce7646ef39d6fcfbaf /usr.sbin/config/lang.l | |
parent | fb060568cc5a18c0787a1cf16b8f628b07e3ef0b (diff) | |
download | FreeBSD-src-b7ec6580100588b92f69bae020a3b2bbaace18fb.zip FreeBSD-src-b7ec6580100588b92f69bae020a3b2bbaace18fb.tar.gz |
Further cleanup. Also remove the following unused or defunct tokens:
and, bio, cam, master, minor, net, priority, sequential, size, slave, trace
Diffstat (limited to 'usr.sbin/config/lang.l')
-rw-r--r-- | usr.sbin/config/lang.l | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/usr.sbin/config/lang.l b/usr.sbin/config/lang.l index 1bc0704..fe685ec 100644 --- a/usr.sbin/config/lang.l +++ b/usr.sbin/config/lang.l @@ -42,8 +42,6 @@ #define YY_NO_UNPUT -#define tprintf if (do_trace) printf - /* * Key word table */ @@ -52,11 +50,8 @@ struct kt { char *kt_name; int kt_val; } key_words[] = { - { "and", AND }, { "at", AT }, - { "bio", BIO }, /* XXX going away */ { "bus", BUS }, - { "cam", CAM }, /* XXX going away */ { "conflicts", CONFLICTS }, { "config", CONFIG }, { "controller", CONTROLLER }, @@ -73,25 +68,14 @@ struct kt { { "irq", IRQ }, { "machine", MACHINE }, { "makeoptions", MAKEOPTIONS }, - { "master", MASTER }, { "maxusers", MAXUSERS }, - { "minor", MINOR }, - { "net", NET }, /* XXX going away */ { "nexus", NEXUS }, { "option", OPTIONS }, { "options", OPTIONS }, { "port", PORT }, - { "priority", PRIORITY }, { "pseudo-device",PSEUDO_DEVICE }, - { "sequential", SEQUENTIAL }, - { "size", SIZE }, - { "slave", SLAVE }, - { "tape", DEVICE }, { "target", TARGET }, - { "tty", TTY }, /* XXX going away */ - { "trace", TRACE }, { "unit", UNIT }, - { "vector", VECTOR }, { 0, 0 }, }; @@ -112,10 +96,8 @@ ID [A-Za-z_][-A-Za-z_0-9]* if ((i = kw_lookup(yytext)) == -1) { yylval.str = strdup(yytext); - tprintf("id(%s) ", yytext); return ID; } - tprintf("(%s) ", yytext); return i; } <INITIAL>{WORD}/[0-9]* { @@ -126,13 +108,11 @@ ID [A-Za-z_][-A-Za-z_0-9]* if (i == CONTROLLER || i == DEVICE || i == DISK || i == PSEUDO_DEVICE || i == AT) BEGIN NONUM; - tprintf("(%s) ", yytext); return i; } <INITIAL>{ID} { BEGIN 0; yylval.str = strdup(yytext); - tprintf("id(%s) ", yytext); return ID; } \\\"[^"]+\\\" { @@ -140,54 +120,44 @@ ID [A-Za-z_][-A-Za-z_0-9]* yytext[yyleng-2] = '"'; yytext[yyleng-1] = '\0'; yylval.str = strdup(yytext + 1); - tprintf("id(%s) ", yytext+1); return ID; } \"[^"]+\" { BEGIN 0; yytext[yyleng-1] = '\0'; yylval.str = strdup(yytext + 1); - tprintf("id(%s) ", yytext+1); return ID; } <TOEOL>[^# \t\n]* { BEGIN 0; yylval.str = strdup(yytext); - tprintf("id(%s) ", yytext); return ID; } 0[0-7]* { yylval.val = octal(yytext); - tprintf("#O:%o ", yylval.val); return NUMBER; } 0x[0-9a-fA-F]+ { yylval.val = hex(yytext); - tprintf("#X:%x ", yylval.val); return NUMBER; } -?[1-9][0-9]* { yylval.val = atoi(yytext); - tprintf("#D:%d ", yylval.val); return NUMBER; } [0-9]"."[0-9]* { yylval.val = (int) (60 * atof(yytext) + 0.5); - tprintf("#F:%d ", yylval.val); return FPNUMBER; } "?" { yylval.val = -1; - tprintf("? "); return NUMBER; } \n/[ \t] { yyline++; - tprintf("\n... "); } \n { yyline++; - tprintf("\n"); return SEMICOLON; } #.* { /* Ignored (comment) */; } |