* arlex.l: Make work with lex, for what it's worth.
authorPer Bothner <per@bothner.com>
Fri, 22 May 1992 20:41:25 +0000 (20:41 +0000)
committerPer Bothner <per@bothner.com>
Fri, 22 May 1992 20:41:25 +0000 (20:41 +0000)
binutils/arlex.l

index 47f8361bce1915bb6a02e6e8ff8acdcf698e987c..409aaa97a334ec99302b1eb98983b35d5d610082 100644 (file)
@@ -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