remove useless comments
This commit is contained in:
parent
9ef30ae49b
commit
ccdab83c06
@ -121,12 +121,10 @@ function_call {ws}*\(([*&[\]=,.]|{identifier}|{number}|{wsnl})*
|
|||||||
%\{ { /* lex/yacc C declarations/definitions */
|
%\{ { /* lex/yacc C declarations/definitions */
|
||||||
global = true;
|
global = true;
|
||||||
goto more;
|
goto more;
|
||||||
/* NOTREACHED */
|
|
||||||
}
|
}
|
||||||
%\} {
|
%\} {
|
||||||
global = false;
|
global = false;
|
||||||
goto more;
|
goto more;
|
||||||
/* NOTREACHED */
|
|
||||||
}
|
}
|
||||||
^%% { /* lex/yacc rules delimiter */
|
^%% { /* lex/yacc rules delimiter */
|
||||||
braces = 0;
|
braces = 0;
|
||||||
@ -163,7 +161,6 @@ function_call {ws}*\(([*&[\]=,.]|{identifier}|{number}|{wsnl})*
|
|||||||
last = first;
|
last = first;
|
||||||
my_yymore();
|
my_yymore();
|
||||||
return(FCNEND);
|
return(FCNEND);
|
||||||
/* NOTREACHED */
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -172,11 +169,9 @@ function_call {ws}*\(([*&[\]=,.]|{identifier}|{number}|{wsnl})*
|
|||||||
fcndef = true;
|
fcndef = true;
|
||||||
token = FCNDEF;
|
token = FCNDEF;
|
||||||
goto findident;
|
goto findident;
|
||||||
/* NOTREACHED */
|
|
||||||
}
|
}
|
||||||
<SDL>ENDSTATE[ \t] { /* end of an sdl state, treat as end of a function */
|
<SDL>ENDSTATE[ \t] { /* end of an sdl state, treat as end of a function */
|
||||||
goto endstate;
|
goto endstate;
|
||||||
/* NOTREACHED */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
\{ { /* count unmatched left braces for fcn def detection */
|
\{ { /* count unmatched left braces for fcn def detection */
|
||||||
@ -195,24 +190,20 @@ function_call {ws}*\(([*&[\]=,.]|{identifier}|{number}|{wsnl})*
|
|||||||
return(token);
|
return(token);
|
||||||
}
|
}
|
||||||
goto more;
|
goto more;
|
||||||
/* NOTREACHED */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
\#{ws}* { /* start a preprocessor line */
|
\#{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);
|
BEGIN(IN_PREPROC);
|
||||||
|
}
|
||||||
yyleng = 1; /* get rid of the blanks, if any */
|
yyleng = 1; /* get rid of the blanks, if any */
|
||||||
goto more;
|
goto more;
|
||||||
/* NOTREACHED */
|
|
||||||
}
|
}
|
||||||
<IN_PREPROC>endif([^a-zA-Z0-9_$\n].*)? { /* #endif */
|
<IN_PREPROC>endif([^a-zA-Z0-9_$\n].*)? { /* #endif */
|
||||||
/* delay treatment of #endif depending on whether an
|
/* delay treatment of #endif depending on whether an
|
||||||
* #if comes right after it, or not */
|
* #if comes right after it, or not */
|
||||||
/* HBB 20010619: new pattern allows trailing garbage
|
|
||||||
* after the #endif */
|
|
||||||
BEGIN(WAS_ENDIF);
|
BEGIN(WAS_ENDIF);
|
||||||
goto more;
|
goto more;
|
||||||
/* NOTREACHED */
|
|
||||||
}
|
}
|
||||||
<WAS_ENDIF>\n{wsnl}*#{ws}*if(ndef|def)?{ws}+ {
|
<WAS_ENDIF>\n{wsnl}*#{ws}*if(ndef|def)?{ws}+ {
|
||||||
/* attempt to correct erroneous brace count caused by:
|
/* attempt to correct erroneous brace count caused by:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user