X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=binutils%2Fsyslex.l;h=254f52e7f06a370873303eb2272232af0ce8790b;hb=9108bc33b1ca0b2e930c0cce5b1a0394e33e86be;hp=abfa6783767c57f2a7fb20619eaa0c9011494055;hpb=894e93a83c10c0d408e2f2277ad6da8ea93ab3e9;p=deliverable%2Fbinutils-gdb.git diff --git a/binutils/syslex.l b/binutils/syslex.l index abfa678376..254f52e7f0 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, 2011 Free Software Foundation, Inc. +/* Copyright (C) 2001-2018 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,16 +29,13 @@ #include #endif #endif + #include "sysinfo.h" #ifndef YY_NO_UNPUT #define YY_NO_UNPUT #endif -#ifndef yywrap -static int yywrap (void) { return 1; } -#endif - extern int yylex (void); %} %% @@ -46,7 +44,7 @@ extern int yylex (void); "[" { return '[';} "]" { return ']';} " " { ; } -";".* { ; } +";".* { ; } "\t" { ; } "\n" { ; } "\""[^\"]*"\"" {