aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1992-05-22 20:41:25 +0000
committerPer Bothner <per@bothner.com>1992-05-22 20:41:25 +0000
commit31f62b897660f88537af9f541fa946e263e31cb9 (patch)
tree6f8933b577e6f9db8e84a5597356d03d2ffdbedf /binutils
parent11ad114b76c6e3b2e0f1034b9a1cf16e19f0ae33 (diff)
downloadgdb-31f62b897660f88537af9f541fa946e263e31cb9.zip
gdb-31f62b897660f88537af9f541fa946e263e31cb9.tar.gz
gdb-31f62b897660f88537af9f541fa946e263e31cb9.tar.bz2
* arlex.l: Make work with lex, for what it's worth.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/arlex.l7
1 files changed, 6 insertions, 1 deletions
diff --git a/binutils/arlex.l b/binutils/arlex.l
index 47f8361..409aaa9 100644
--- a/binutils/arlex.l
+++ b/binutils/arlex.l
@@ -66,7 +66,7 @@ int linenumber;
"(" { return '('; }
")" { return ')'; }
"," { return ','; }
-[A-Za-z0-9/$:.\-]+ {
+[A-Za-z0-9/$:.\-\_]+ {
yylval.name = strdup(yytext);
return FILENAME;
}
@@ -75,3 +75,8 @@ int linenumber;
" " { }
"\n" { linenumber ++; return NEWLINE; }
+%%
+#ifndef yywrap
+/* Needed for lex, though not flex. */
+int yywrap() { return 1; }
+#endif