From 31f62b897660f88537af9f541fa946e263e31cb9 Mon Sep 17 00:00:00 2001 From: Per Bothner Date: Fri, 22 May 1992 20:41:25 +0000 Subject: [PATCH] * arlex.l: Make work with lex, for what it's worth. --- binutils/arlex.l | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/binutils/arlex.l b/binutils/arlex.l index 47f8361bce1..409aaa97a33 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 -- 2.30.2