basic whitespacing

This commit is contained in:
anon 2024-11-15 12:11:43 +01:00
parent c6106aa336
commit 367116ac79

View File

@ -195,7 +195,7 @@ wsnl [ \t\r\v\f\n]|{comment}
}
\#{ws}* { /* start a preprocessor line */
if (rules == false) /* don't consider CPP for lex/yacc rules */
if (rules == false) { /* don't consider CPP for lex/yacc rules */
BEGIN(IN_PREPROC);
yyleng = 1; /* get rid of the blanks, if any */
goto more;
@ -850,8 +850,7 @@ initscanner(char *srcfile)
typedefbraces = -1; /* initial typedef braces count */
ident_start = 0; /* start of previously found identifier */
if (my_yytext)
*my_yytext = '\0';
if (my_yytext) { *my_yytext = '\0'; }
my_yyleng = 0;
BEGIN(INITIAL);
@ -886,9 +885,8 @@ initscanner(char *srcfile)
}
#define MY_YY_ALLOCSTEP 1000
static void
my_yymore(void)
{
static
void my_yymore(void) {
static size_t yytext_size = 0;
/* my_yytext is an ever-growing buffer. It will not ever