X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=binutils%2Fdeflex.l;h=1ada969f6dd012c41dfe19147d2e7ecaaed5aa65;hb=36231dfc188426d9b887af2d1c6c2cbb1c746cb3;hp=54e62c2690c10f52138e5fa63dddb2a608ac75db;hpb=3aade68889268c7d15e121d6d63cb1b753ec12fa;p=deliverable%2Fbinutils-gdb.git diff --git a/binutils/deflex.l b/binutils/deflex.l index 54e62c2690..1ada969f6d 100644 --- a/binutils/deflex.l +++ b/binutils/deflex.l @@ -1,8 +1,8 @@ -%option noinput nounput +%option noinput nounput noyywrap %{/* deflex.l - Lexer for .def files */ -/* Copyright (C) 1995-2015 Free Software Foundation, Inc. +/* Copyright (C) 1995-2020 Free Software Foundation, Inc. This file is part of GNU Binutils. @@ -63,7 +63,7 @@ int linenumber; [0-9][x0-9A-Fa-f]* { yylval.number = strtol (yytext,0,0); return NUMBER; } -(@)?[A-Za-z$:\-\_?][A-Za-z0-9/$:\<\>\-\_@?]* { +(@)?[A-Za-z$:\-\_?][A-Za-z0-9/$:\<\>\-\_@?+]* { yylval.id = xstrdup (yytext); return ID; } @@ -91,7 +91,3 @@ int linenumber; "@" { return '@';} "," { return ',';} %% -#ifndef yywrap -/* Needed for lex, though not flex. */ -int yywrap(void) { return 1; } -#endif