X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=binutils%2Farlex.l;h=8ee5ce0d397e66a98f25b96f41b226bb5e49b863;hb=39ec04904ff172dd67fd43ed3720f26d854732bf;hp=2cda0a23d3635cd9a0a1a583dc6c9fee14424c9b;hpb=4b95cf5c0c75d6efc1b2f96af72317aecca079f1;p=deliverable%2Fbinutils-gdb.git diff --git a/binutils/arlex.l b/binutils/arlex.l index 2cda0a23d3..8ee5ce0d39 100644 --- a/binutils/arlex.l +++ b/binutils/arlex.l @@ -1,9 +1,9 @@ -%option noinput nounput +%option noinput nounput noyywrap %{ /* arlex.l - Strange script language lexer */ -/* Copyright (C) 1992-2014 Free Software Foundation, Inc. +/* Copyright (C) 1992-2020 Free Software Foundation, Inc. This file is part of GNU Binutils. @@ -33,7 +33,7 @@ #ifndef YY_NO_UNPUT #define YY_NO_UNPUT #endif - + extern int yylex (void); int linenumber; @@ -78,17 +78,13 @@ int linenumber; "(" { return '('; } ")" { return ')'; } "," { return ','; } -[A-Za-z0-9/\\$:.\-\_]+ { +[A-Za-z0-9/\\$:.\-\_]+ { yylval.name = xstrdup (yytext); return FILENAME; } "*".* { } ";".* { } " " { } -"\n" { linenumber ++; return NEWLINE; } +"\n" { linenumber ++; return NEWLINE; } %% -#ifndef yywrap -/* Needed for lex, though not flex. */ -int yywrap(void) { return 1; } -#endif