projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11ad114
)
* arlex.l: Make work with lex, for what it's worth.
author
Per Bothner
<per@bothner.com>
Fri, 22 May 1992 20:41:25 +0000
(20:41 +0000)
committer
Per Bothner
<per@bothner.com>
Fri, 22 May 1992 20:41:25 +0000
(20:41 +0000)
binutils/arlex.l
patch
|
blob
|
history
diff --git
a/binutils/arlex.l
b/binutils/arlex.l
index 47f8361bce1915bb6a02e6e8ff8acdcf698e987c..409aaa97a334ec99302b1eb98983b35d5d610082 100644
(file)
--- 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