No need to be gratuitously style(9) non-compliant here, even though

C++ lets me get away with it.
This commit is contained in:
Warner Losh 2008-03-21 20:38:28 +00:00
parent eba8219e9b
commit d6aed19dfb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=177483

View File

@ -61,10 +61,10 @@ update_lineno(const char *cp)
\} { return ENDBLOCK; }
[0-9]+ { yylval.i = atoi(yytext); return NUMBER; }
\"[^"]+\" {
update_lineno(yytext);
int len = strlen(yytext) - 2;
char *walker;
int i;
update_lineno(yytext);
if ((yylval.str = (char *) malloc(len + 1)) == NULL)
goto out;
walker = yylval.str;