gengtype-lex.l: Remove rules for parsing pointer-to-function typedefs that use the old PARAMS macro.
* gengtype-lex.l: Remove rules for parsing pointer-to-function typedefs that use the old PARAMS macro. From-SVN: r123227
This commit is contained in:
parent
cff4720f62
commit
d287ace688
2 changed files with 3 additions and 34 deletions
|
@ -1,5 +1,8 @@
|
|||
2007-03-26 Zack Weinberg <zackw@panix.com>
|
||||
|
||||
* gengtype-lex.l: Remove rules for parsing pointer-to-function
|
||||
typedefs that use the old PARAMS macro.
|
||||
|
||||
* gengtype-lex.l: Remove all rules and states relating to yacc
|
||||
input files.
|
||||
* gengtype-yacc.y: Similarly.
|
||||
|
|
|
@ -129,23 +129,6 @@ ITYPE {IWORD}({WS}{IWORD})*
|
|||
update_lineno (yytext, yyleng);
|
||||
}
|
||||
|
||||
[^[:alnum:]_]typedef{WS}{ID}{WS}{ID}{WS}PARAMS {
|
||||
char *namestart;
|
||||
size_t namelen;
|
||||
struct type *t;
|
||||
|
||||
for (namestart = yytext + yyleng - 7; ISSPACE (*namestart); namestart--)
|
||||
;
|
||||
for (namelen = 1; !ISSPACE (namestart[-namelen]); namelen++)
|
||||
;
|
||||
namestart -= namelen - 1;
|
||||
|
||||
t = create_scalar_type ("function type", sizeof ("function type")-1);
|
||||
do_typedef ((const char *) xmemdup (namestart, namelen, namelen+1), t,
|
||||
&lexer_line);
|
||||
update_lineno (yytext, yyleng);
|
||||
}
|
||||
|
||||
[^[:alnum:]_]typedef{WS}{ID}{WS}{ID}{WS}"(" {
|
||||
char *namestart;
|
||||
size_t namelen;
|
||||
|
@ -163,23 +146,6 @@ ITYPE {IWORD}({WS}{IWORD})*
|
|||
update_lineno (yytext, yyleng);
|
||||
}
|
||||
|
||||
[^[:alnum:]_]typedef{WS}{ID}{WS}?"*"?{WS}?"("{WS}?"*"{WS}?{ID}{WS}?")"{WS}?PARAMS {
|
||||
char *namestart;
|
||||
size_t namelen;
|
||||
struct type *t;
|
||||
|
||||
for (namestart = yytext + yyleng - 7; !ISIDNUM (*namestart); namestart--)
|
||||
;
|
||||
for (namelen = 1; ISIDNUM (namestart[-namelen]); namelen++)
|
||||
;
|
||||
namestart -= namelen - 1;
|
||||
|
||||
t = create_scalar_type ("function type", sizeof ("function type")-1);
|
||||
do_typedef ((const char *) xmemdup (namestart, namelen, namelen+1), t,
|
||||
&lexer_line);
|
||||
update_lineno (yytext, yyleng);
|
||||
}
|
||||
|
||||
[^[:alnum:]_]typedef{WS}{ID}{WS}?"*"?{WS}?"("{WS}?"*"{WS}?{ID}{WS}?")"{WS}?"(" {
|
||||
char *namestart;
|
||||
size_t namelen;
|
||||
|
|
Loading…
Add table
Reference in a new issue