aboutsummaryrefslogtreecommitdiff
path: root/binutils/deflex.l
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2009-10-23 14:53:57 +0000
committerKai Tietz <kai.tietz@onevision.com>2009-10-23 14:53:57 +0000
commitbf201fddaaaae8fbd048f6d58b315080f5069b9f (patch)
tree61af7147e3b585fbd897a63f51be9cd3b6055107 /binutils/deflex.l
parent6a0fa04300e300a1df9cc137f868a91be3854225 (diff)
downloadgdb-bf201fddaaaae8fbd048f6d58b315080f5069b9f.zip
gdb-bf201fddaaaae8fbd048f6d58b315080f5069b9f.tar.gz
gdb-bf201fddaaaae8fbd048f6d58b315080f5069b9f.tar.bz2
2009-10-23 Kai Tietz <kai.tietz@onevision.com>
* deflex.l: Allow '<' and '>' in ID names. * defparse.y (EQUAL): New token constant. (opt_import_name): New rule for emptry or '==' ID. (expline): Add opt_import_name as last line element. (impline): Likewise. * dlltool.c (ifunct): New member its_name. (export): Likewise. (append_import): Add its_name argument. (defexports): Likewise. (defimport): Likewise. (scan_drectve_symbols): Adjust calls to def_exports. (dump_def_info): Print new optinal import/export table symbol name. (generate_idata_ofile): Use its_name member. (make_one_lib_file): Likewise. (nfunc): Take its_name in account on sort. * dlltool.h (def_exports): Add its_name as argument. (def_import): Likewise. * doc/binutils.texi: Add new def file syntax extension. * deflex.l (EQUAL): Add rule for '=='. * NEWS: Mention new feature. 2009-10-23 Kai Tietz <kai.tietz@onevision.com> * binutils-all/dlltool.exp: Add new test. * binutils-all/alias-2.def: New file.
Diffstat (limited to 'binutils/deflex.l')
-rw-r--r--binutils/deflex.l3
1 files changed, 2 insertions, 1 deletions
diff --git a/binutils/deflex.l b/binutils/deflex.l
index bd8fbdc..317f6be 100644
--- a/binutils/deflex.l
+++ b/binutils/deflex.l
@@ -64,7 +64,7 @@ int linenumber;
[0-9][x0-9A-Fa-f]* { yylval.number = strtol (yytext,0,0);
return NUMBER; }
-(@)?[A-Za-z$:\-\_?][A-Za-z0-9/$:\-\_@?]* {
+(@)?[A-Za-z$:\-\_?][A-Za-z0-9/$:\<\>\-\_@?]* {
yylval.id = xstrdup (yytext);
return ID;
}
@@ -86,6 +86,7 @@ int linenumber;
"\t" { }
"\r" { }
"\n" { linenumber ++ ;}
+"==" { return EQUAL;}
"=" { return '=';}
"." { return '.';}
"@" { return '@';}