X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=binutils%2Fsyslex.l;h=853d728b51972d67784febff6546d74cfe08061c;hb=3cb5a3a16af2cae1a5059b7571c514b3fa575df9;hp=7e3f29861ba72cf6a86fbeffdef269331584d9ce;hpb=cfdf38f2b4e7a22ee9f405e347bd8ebcb8a19454;p=deliverable%2Fbinutils-gdb.git diff --git a/binutils/syslex.l b/binutils/syslex.l index 7e3f29861b..853d728b51 100644 --- a/binutils/syslex.l +++ b/binutils/syslex.l @@ -1,7 +1,7 @@ -%option noinput nounput +%option noinput nounput noyywrap %{ -/* Copyright 2001, 2003, 2005, 2007 Free Software Foundation, Inc. +/* Copyright (C) 2001-2019 Free Software Foundation, Inc. This file is part of GNU Binutils. @@ -20,7 +20,8 @@ Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ -#include "config.h" +/* Note: config.h is #included via syslex_wrap.c. */ + #ifdef HAVE_STRING_H #include #else @@ -28,12 +29,11 @@ #include #endif #endif + #include "sysinfo.h" +#ifndef YY_NO_UNPUT #define YY_NO_UNPUT - -#ifndef yywrap -static int yywrap (void) { return 1; } #endif extern int yylex (void); @@ -44,7 +44,7 @@ extern int yylex (void); "[" { return '[';} "]" { return ']';} " " { ; } -";".* { ; } +";".* { ; } "\t" { ; } "\n" { ; } "\""[^\"]*"\"" {