mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 02:22:43 +00:00
No need to be gratuitously style(9) non-compliant here, even though
C++ lets me get away with it.
This commit is contained in:
parent
eba8219e9b
commit
d6aed19dfb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=177483
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user