SCCS-vsn: usr.sbin/config/lang.l 1.7
SCCS-vsn: usr.sbin/config/config.y 1.6
%token CONTROLLER PSEUDO_DEVICE FLAGS ID SEMICOLON NUMBER FPNUMBER TRACE
%token DISK SLAVE AT HZ TIMEZONE DST MAXUSERS MASTER COMMA
%{
%token CONTROLLER PSEUDO_DEVICE FLAGS ID SEMICOLON NUMBER FPNUMBER TRACE
%token DISK SLAVE AT HZ TIMEZONE DST MAXUSERS MASTER COMMA
%{
-/* config.y 1.5 81/03/31 */
+/* config.y 1.6 81/04/02 */
#include "config.h"
#include <stdio.h>
struct device cur;
#include "config.h"
#include <stdio.h>
struct device cur;
struct cputype *cp = malloc(sizeof (struct cputype));
struct cputype *cp = malloc(sizeof (struct cputype));
- cp->cpu_name = ns(sprintf(errbuf, "%s%d", $2, $3));
cp->cpu_next = cputype;
cputype = cp;
free(temp_id);
cp->cpu_next = cputype;
cputype = cp;
free(temp_id);
-/* lang.l 1.6 81/03/31 */
+/* lang.l 1.7 81/04/02 */
#include <ctype.h>
#include "y.tab.h"
#include <ctype.h>
#include "y.tab.h"
tprintf("(%s) ", yytext);
return i;
}
tprintf("(%s) ", yytext);
return i;
}
+\"[^"]+\" {
+ yytext[strlen(yytext)-1] = '\0';
+ yylval = (int) yytext + 1;
+ return ID;
+ }
0[0-7]* {
yylval = octal(yytext);
tprintf("#O:%o ", yylval);
0[0-7]* {
yylval = octal(yytext);
tprintf("#O:%o ", yylval);