diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-26 20:46:29 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-26 20:46:29 +0000 |
commit | 892ddc0ba0bf5e6599754eb41d36373c28c6dafd (patch) | |
tree | 27440eaaf98fbf2af99eb43aab5fbd3ed413014d /gcc/gengtype-lex.l | |
parent | f8be92ce6dc6fbd49c39502c27b6c4b26d005f98 (diff) | |
download | gcc-892ddc0ba0bf5e6599754eb41d36373c28c6dafd.tar.gz |
* gengtype-lex.l: Remove rules for parsing pointer-to-function
typedefs that use the old PARAMS macro.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123227 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gengtype-lex.l')
-rw-r--r-- | gcc/gengtype-lex.l | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/gcc/gengtype-lex.l b/gcc/gengtype-lex.l index 27802e6e29c..8ae86bc6794 100644 --- a/gcc/gengtype-lex.l +++ b/gcc/gengtype-lex.l @@ -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; |