X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=binutils%2Fnlmheader.y;h=1bf01e07ec93640fdcc3b0002155a929b06968c6;hb=616dcb87abe148edf7278581e04cf23aff97411e;hp=192aafa3fb9099be6ab5821a4eb57407fb30118f;hpb=3db64b009284dda3a1ce10a91beb1297475e60a7;p=deliverable%2Fbinutils-gdb.git diff --git a/binutils/nlmheader.y b/binutils/nlmheader.y index 192aafa3fb..1bf01e07ec 100644 --- a/binutils/nlmheader.y +++ b/binutils/nlmheader.y @@ -1,22 +1,22 @@ %{/* nlmheader.y - parse NLM header specification keywords. - Copyright 1993, 1994, 1995, 1997, 1998, 2001, 2002, 2003, 2007 - Free Software Foundation, Inc. + Copyright (C) 1993-2018 Free Software Foundation, Inc. -This file is part of GNU Binutils. + This file is part of GNU Binutils. -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, + MA 02110-1301, USA. */ /* Written by Ian Lance Taylor . @@ -116,7 +116,7 @@ static char *xstrdup (const char *); /* The reserved words. */ -%token CHECK CODESTART COPYRIGHT CUSTOM DATE DEBUG DESCRIPTION EXIT +%token CHECK CODESTART COPYRIGHT CUSTOM DATE DEBUG_K DESCRIPTION EXIT %token EXPORT FLAG_ON FLAG_OFF FULLMAP HELP IMPORT INPUT MAP MESSAGES %token MODULE MULTIPLE OS_DOMAIN OUTPUT PSEUDOPREEMPTION REENTRANT %token SCREENNAME SHARELIB STACK START SYNCHRONIZE @@ -201,7 +201,7 @@ command: if (version_hdr->year < 1900 || version_hdr->year > 3000) nlmheader_warn (_("illegal year"), -1); } - | DEBUG + | DEBUG_K { debug_info = TRUE; } @@ -493,7 +493,7 @@ string_list: /* If strerror is just a macro, we want to use the one from libiberty since it will handle undefined values. */ #undef strerror -extern char *strerror PARAMS ((int)); +extern char *strerror (int); /* The lexer is simple, too simple for flex. Keywords are only recognized at the start of lines. Everything else must be an @@ -592,7 +592,7 @@ static struct keyword_tokens_struct keyword_tokens[] = { "COPYRIGHT", COPYRIGHT }, { "CUSTOM", CUSTOM }, { "DATE", DATE }, - { "DEBUG", DEBUG }, + { "DEBUG", DEBUG_K }, { "DESCRIPTION", DESCRIPTION }, { "EXIT", EXIT }, { "EXPORT", EXPORT },