* deflex.l: Accept '?' in symbol names, for VC++ mangled names.

From Mikey <jeffdb@netzone.com>.
This commit is contained in:
Ian Lance Taylor 1998-02-12 20:53:49 +00:00
parent 46b6795a39
commit 9a455e6bd6
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,8 @@
Thu Feb 12 14:13:46 1998 Ian Lance Taylor <ian@cygnus.com> Thu Feb 12 14:13:46 1998 Ian Lance Taylor <ian@cygnus.com>
* deflex.l: Accept '?' in symbol names, for VC++ mangled names.
From Mikey <jeffdb@netzone.com>.
* addr2line.c (usage): Update bug-gnu-utils address. * addr2line.c (usage): Update bug-gnu-utils address.
* ar.c (usage): Likewise. * ar.c (usage): Likewise.
* nlmconv.c (show_usage): Likewise. * nlmconv.c (show_usage): Likewise.

View File

@ -42,7 +42,7 @@ int linenumber;
"SECTIONS" { return SECTIONS;} "SECTIONS" { return SECTIONS;}
"EXPORTS" { return EXPORTS;} "EXPORTS" { return EXPORTS;}
"IMPORTS" { return IMPORTS;} "IMPORTS" { return IMPORTS;}
"VERSION" { return VERSION;} "VERSION" { return VERSIONK;}
"BASE" { return BASE;} "BASE" { return BASE;}
"CONSTANT" { return CONSTANT; } "CONSTANT" { return CONSTANT; }
"NONAME" { return NONAME; } "NONAME" { return NONAME; }
@ -54,7 +54,7 @@ int linenumber;
[0-9][x0-9A-Fa-f]* { yylval.number = strtol (yytext,0,0); [0-9][x0-9A-Fa-f]* { yylval.number = strtol (yytext,0,0);
return NUMBER; } return NUMBER; }
[A-Za-z$:\-\_][A-Za-z0-9/$:\-\_@]+ { [A-Za-z$:\-\_?][A-Za-z0-9/$:\-\_@?]+ {
yylval.id = xstrdup (yytext); yylval.id = xstrdup (yytext);
return ID; return ID;
} }