From 0d8f3c8a7ab5a379c80caa26b64152c5a873942d Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Fri, 2 Feb 2001 14:56:44 +0000 Subject: [PATCH] * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37. * lib/xalloc.h, lib/xmalloc.c@ Update. --- ChangeLog | 10 ++++++++++ lib/malloc.c | 38 ++++++++++++++++++++++++++++++++++++++ lib/realloc.c | 44 ++++++++++++++++++++++++++++++++++++++++++++ lib/xalloc.h | 8 ++++---- lib/xmalloc.c | 7 +++---- po/cat-id-tbl.c | 3 +-- po/de.gmo | Bin 8417 -> 8417 bytes po/de.po | 16 ++++++++-------- po/es.po | 16 ++++++++-------- po/et.gmo | Bin 10791 -> 10791 bytes po/et.po | 16 ++++++++-------- po/fr.gmo | Bin 8356 -> 8356 bytes po/fr.po | 16 ++++++++-------- po/ja.gmo | Bin 8255 -> 8255 bytes po/ja.po | 16 ++++++++-------- po/nl.gmo | Bin 7374 -> 7374 bytes po/nl.po | 16 ++++++++-------- po/ru.gmo | Bin 11087 -> 11087 bytes po/ru.po | 16 ++++++++-------- src/lex.c | 23 +++++++++++------------ 20 files changed, 167 insertions(+), 78 deletions(-) create mode 100644 lib/malloc.c create mode 100644 lib/realloc.c diff --git a/ChangeLog b/ChangeLog index 069e4fa9..d3362a91 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2001-02-02 Akim Demaille + + * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37. + * lib/xalloc.h, lib/xmalloc.c@ Update. + +2001-01-19 Akim Demaille + + * src/conflicts.c (conflict_report): Report the difference with + expected number of s/r conflicts. + 2001-01-19 Akim Demaille Get rid of the ad hoc handling of token_buffer in the scanner: use diff --git a/lib/malloc.c b/lib/malloc.c new file mode 100644 index 00000000..5e7674bd --- /dev/null +++ b/lib/malloc.c @@ -0,0 +1,38 @@ +/* Work around bug on some systems where malloc (0) fails. + Copyright (C) 1997, 1998 Free Software Foundation, Inc. + + 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, 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. + + 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +/* written by Jim Meyering */ + +#if HAVE_CONFIG_H +# include +#endif +#undef malloc + +#include + +char *malloc (); + +/* Allocate an N-byte block of memory from the heap. + If N is zero, allocate a 1-byte block. */ + +char * +rpl_malloc (size_t n) +{ + if (n == 0) + n = 1; + return malloc (n); +} diff --git a/lib/realloc.c b/lib/realloc.c new file mode 100644 index 00000000..d0d3e4ab --- /dev/null +++ b/lib/realloc.c @@ -0,0 +1,44 @@ +/* Work around bug on some systems where realloc (NULL, 0) fails. + Copyright (C) 1997 Free Software Foundation, Inc. + + 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, 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. + + 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +/* written by Jim Meyering */ + +#if HAVE_CONFIG_H +# include +#endif +#undef realloc + +#include + +char *malloc (); +char *realloc (); + +/* Change the size of an allocated block of memory P to N bytes, + with error checking. If N is zero, change it to 1. If P is NULL, + use malloc. */ + +char * +rpl_realloc (p, n) + char *p; + size_t n; +{ + if (n == 0) + n = 1; + if (p == 0) + return malloc (n); + return realloc (p, n); +} diff --git a/lib/xalloc.h b/lib/xalloc.h index 8668e198..098a6c2e 100644 --- a/lib/xalloc.h +++ b/lib/xalloc.h @@ -1,5 +1,5 @@ /* xalloc.h -- malloc with out-of-memory checking - Copyright (C) 1990-1998, 1999 Free Software Foundation, Inc. + Copyright (C) 1990-1998, 1999, 2000 Free Software Foundation, Inc. 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 @@ -46,9 +46,9 @@ extern int xalloc_exit_failure; extern void (*xalloc_fail_func) PARAMS ((void)); /* If XALLOC_FAIL_FUNC is undefined or a function that returns, this - message must be non-NULL. It is translated via gettext. - The default value is "Memory exhausted". */ -extern char *const xalloc_msg_memory_exhausted; + message is output. It is translated via gettext. + Its value is "memory exhausted". */ +extern char const xalloc_msg_memory_exhausted[]; /* This function is always triggered when memory is exhausted. It is in charge of honoring the three previous items. This is the diff --git a/lib/xmalloc.c b/lib/xmalloc.c index 8206a947..e9cd47bc 100644 --- a/lib/xmalloc.c +++ b/lib/xmalloc.c @@ -1,5 +1,5 @@ /* xmalloc.c -- malloc with out of memory checking - Copyright (C) 1990-1997, 98, 99 Free Software Foundation, Inc. + Copyright (C) 1990-1999, 2000 Free Software Foundation, Inc. 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 @@ -63,7 +63,7 @@ void (*xalloc_fail_func) PARAMS ((void)) = 0; /* If XALLOC_FAIL_FUNC is NULL, or does return, display this message before exiting when memory is exhausted. Goes through gettext. */ -char *const xalloc_msg_memory_exhausted = N_("Memory exhausted"); +char const xalloc_msg_memory_exhausted[] = N_("memory exhausted"); void xalloc_die (void) @@ -91,8 +91,7 @@ xmalloc (size_t n) } /* Change the size of an allocated block of memory P to N bytes, - with error checking. - If P is NULL, run xmalloc. */ + with error checking. */ void * xrealloc (void *p, size_t n) diff --git a/po/cat-id-tbl.c b/po/cat-id-tbl.c index ed269d5b..72696884 100644 --- a/po/cat-id-tbl.c +++ b/po/cat-id-tbl.c @@ -181,7 +181,6 @@ reduced %s defines %d terminal%s, %d nonterminal%s, and %d production%s.\n", 126 {"memory exhausted", 139}, {"`", 140}, {"'", 141}, - {"Memory exhausted", 142}, }; -int _msg_tbl_length = 142; +int _msg_tbl_length = 141; diff --git a/po/de.gmo b/po/de.gmo index 210d574f60b00a0ff424374e17fc7c1ce7123686..b366aadfe3b49a599d058304a18dfb6364d515fa 100644 GIT binary patch delta 23 fcmaFp_|S2~7a=YqT?0b}Lvt%5)6M^c9`gbKZoCMg delta 23 fcmaFp_|S2~7a=Y~T|)~6Lvt%r\n" "Language-Team: German \n" @@ -217,34 +217,34 @@ msgid "unexpected end of file" msgstr "Datei endet unerwartet" # Oder soll man den Begriff "Escapezeichen" verwenden? -#: src/lex.c:154 +#: src/lex.c:160 msgid "unescaped newline in constant" msgstr "nicht maskiertes Zeilenendezeichen in Konstante" -#: src/lex.c:196 +#: src/lex.c:202 #, c-format msgid "octal value outside range 0...255: `\\%o'" msgstr "oktaler Zahlenwert außerhalb des Bereichs 0...255: »\\%o«" -#: src/lex.c:221 +#: src/lex.c:227 #, c-format msgid "hexadecimal value above 255: `\\x%x'" msgstr "hexadezimaler Zahlenwert größer als 255: »\\x%x«" -#: src/lex.c:233 +#: src/lex.c:239 #, c-format msgid "unknown escape sequence: `\\' followed by `%s'" msgstr "unbekanntes Fluchtzeichen: »\\« gefolgt von »%s«" -#: src/lex.c:326 +#: src/lex.c:335 msgid "unterminated type name at end of file" msgstr "unerwarteter Typname am Ende der Datei" -#: src/lex.c:329 +#: src/lex.c:338 msgid "unterminated type name" msgstr "unerwarteter Typname" -#: src/lex.c:422 +#: src/lex.c:430 msgid "use \"...\" for multi-character literal tokens" msgstr "für Literal mit mehreren Zeichen bitte \"...\" verwenden" diff --git a/po/es.po b/po/es.po index 15702bc7..1d31f512 100644 --- a/po/es.po +++ b/po/es.po @@ -30,7 +30,7 @@ msgid "" msgstr "" "Project-Id-Version: GNU bison 1.25\n" -"POT-Creation-Date: 2001-01-18 17:53+0100\n" +"POT-Creation-Date: 2001-02-01 17:25+0100\n" "PO-Revision-Date: 1998-09-21 10:19+0200\n" "Last-Translator: Nicolás García-Pedrajas \n" "Language-Team: Spanish \n" @@ -277,35 +277,35 @@ msgid "unexpected end of file" msgstr "Fin de fichero inesperado" # ¿unescaped? -#: src/lex.c:154 +#: src/lex.c:160 msgid "unescaped newline in constant" msgstr "salto de línea en constante sin secuencia de escape" -#: src/lex.c:196 +#: src/lex.c:202 #, c-format msgid "octal value outside range 0...255: `\\%o'" msgstr "valor octal fuera del rango 0...255: `\\%o'" -#: src/lex.c:221 +#: src/lex.c:227 #, c-format msgid "hexadecimal value above 255: `\\x%x'" msgstr "valor hexadecimal mayor que 255: `\\x%x'" -#: src/lex.c:233 +#: src/lex.c:239 #, c-format msgid "unknown escape sequence: `\\' followed by `%s'" msgstr "secuencia de escape desconocida: `\\' seguido de `%s'" -#: src/lex.c:326 +#: src/lex.c:335 msgid "unterminated type name at end of file" msgstr "nombre de tipo sin terminar al final del fichero" -#: src/lex.c:329 +#: src/lex.c:338 msgid "unterminated type name" msgstr "nombre de tipo sin terminar" # ¿multicarácter o multicaracteres? sv -#: src/lex.c:422 +#: src/lex.c:430 msgid "use \"...\" for multi-character literal tokens" msgstr "use \"...\" para terminales literales multicarácter" diff --git a/po/et.gmo b/po/et.gmo index 4707dff4efa8b8908a6dd4984bc66034b7b6f08e..40931051db113335cc201ed3595a0e3548821329 100644 GIT binary patch delta 23 ecmZ1;vOHu1uOyd|u7RO~p}Ccj>1J_B0YLy#@&&{I delta 23 ecmZ1;vOHu1uOyeDuAzm3p}Cc*@n&&J0YLy$O$E#V diff --git a/po/et.po b/po/et.po index 08f9ae47..a0f879a5 100644 --- a/po/et.po +++ b/po/et.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: bison 1.25\n" -"POT-Creation-Date: 2001-01-18 17:53+0100\n" +"POT-Creation-Date: 2001-02-01 17:25+0100\n" "PO-Revision-Date: 2000-04-11 22:19+02:00\n" "Last-Translator: Toomas Soome \n" "Language-Team: Estonian \n" @@ -240,34 +240,34 @@ msgstr "l msgid "unexpected end of file" msgstr "ootamatu faililõpp" -#: src/lex.c:154 +#: src/lex.c:160 msgid "unescaped newline in constant" msgstr "paojadata reavahetus konstandis" -#: src/lex.c:196 +#: src/lex.c:202 #, c-format msgid "octal value outside range 0...255: `\\%o'" msgstr "kaheksandväärtus väljaspool piire 0...255: `\\%o'" -#: src/lex.c:221 +#: src/lex.c:227 #, c-format msgid "hexadecimal value above 255: `\\x%x'" msgstr "kuueteistkümnendväärtus suurem, kui above 255: `\\x%x'" -#: src/lex.c:233 +#: src/lex.c:239 #, c-format msgid "unknown escape sequence: `\\' followed by `%s'" msgstr "tundmatu paojada: `\\' järgneb `%s'" -#: src/lex.c:326 +#: src/lex.c:335 msgid "unterminated type name at end of file" msgstr "lõpetamata tüübinimi faili lõpus" -#: src/lex.c:329 +#: src/lex.c:338 msgid "unterminated type name" msgstr "lõpetamata tüübinimi" -#: src/lex.c:422 +#: src/lex.c:430 msgid "use \"...\" for multi-character literal tokens" msgstr "kasuta mitmesümboliliste literaalidega \"...\" konstruktsiooni" diff --git a/po/fr.gmo b/po/fr.gmo index eb697f73d2a430553437bf4696d004dfe84be313..75479f153914af93e2046b726af3a7aa5676a806 100644 GIT binary patch delta 23 fcmZ4DxWsY87a=YqT?0b}Lvt%5)6M^cmhl1rW5x&S delta 23 fcmZ4DxWsY87a=Y~T|)~6Lvt%r\n" "Language-Team: French \n" @@ -223,34 +223,34 @@ msgstr "le commentaire ne se termine pas" msgid "unexpected end of file" msgstr "Fin de fichier inattendue" -#: src/lex.c:154 +#: src/lex.c:160 msgid "unescaped newline in constant" msgstr "retour de chariot sans échappement dans une constante" -#: src/lex.c:196 +#: src/lex.c:202 #, c-format msgid "octal value outside range 0...255: `\\%o'" msgstr "valeur octale à l'extérieur de l'intervalle 0...255: \\%o" -#: src/lex.c:221 +#: src/lex.c:227 #, c-format msgid "hexadecimal value above 255: `\\x%x'" msgstr "valeur hexadécimale supérieure à 255: \\x%x" -#: src/lex.c:233 +#: src/lex.c:239 #, c-format msgid "unknown escape sequence: `\\' followed by `%s'" msgstr "séquence d'échappement inconnue: `\\' suivie de `%s'" -#: src/lex.c:326 +#: src/lex.c:335 msgid "unterminated type name at end of file" msgstr "le nom de type ne se termine pas avant la fin de fichier" -#: src/lex.c:329 +#: src/lex.c:338 msgid "unterminated type name" msgstr "le nom de type ne se termine pas" -#: src/lex.c:422 +#: src/lex.c:430 msgid "use \"...\" for multi-character literal tokens" msgstr "utilisez \"...\" pour les terminaux litéraux de plusieurs caractères" diff --git a/po/ja.gmo b/po/ja.gmo index 89e8ae01f0c672e6c701895dfa9b4ddeb0e436a7..4e6531061268eaade9d61f791ac3302e982fba31 100644 GIT binary patch delta 23 ecmdn*u-{?Ba$znbT?0b}Lvt%5)6E-&`*;9hg$Hc_ delta 23 ecmdn*u-{?Ba$zn*T|)~6Lvt%r\n" "Language-Team: Japanese \n" @@ -222,34 +222,34 @@ msgstr " msgid "unexpected end of file" msgstr "ͽ´ü¤·¤Ê¤¤¥Õ¥¡¥¤¥ë¤Î½ªÃ¼¤Ç¤¹" -#: src/lex.c:154 +#: src/lex.c:160 msgid "unescaped newline in constant" msgstr "Äê¿ô¤ÎÃæ¤Ë¥¨¥¹¥±¡¼¥×¤µ¤ì¤Æ¤¤¤Ê¤¤²þ¹Ô¤¬¤¢¤ê¤Þ¤¹" -#: src/lex.c:196 +#: src/lex.c:202 #, c-format msgid "octal value outside range 0...255: `\\%o'" msgstr "8 ¿Ê¿ô¤ÎÃͤ¬ 0...255 ¤ÎÈϰϳ°¤Ç¤¹: `\\%o'" -#: src/lex.c:221 +#: src/lex.c:227 #, c-format msgid "hexadecimal value above 255: `\\x%x'" msgstr "16 ¿Ê¿ô¤ÎÃͤ¬ 255 ¤ò±Û¤¨¤Æ¤¤¤Þ¤¹: `\\x%x'" -#: src/lex.c:233 +#: src/lex.c:239 #, c-format msgid "unknown escape sequence: `\\' followed by `%s'" msgstr "̤ÃΤΥ¨¥¹¥±¡¼¥×¥·¡¼¥±¥ó¥¹: `\\' ¤Î¸å¤Ë `%s'" -#: src/lex.c:326 +#: src/lex.c:335 msgid "unterminated type name at end of file" msgstr "ÊĤ¸¤é¤ì¤Æ¤¤¤Ê¤¤¥¿¥¤¥×̾¤¬¡¢¥Õ¥¡¥¤¥ëËöÈø¤Ë¤¢¤ê¤Þ¤¹" -#: src/lex.c:329 +#: src/lex.c:338 msgid "unterminated type name" msgstr "ÊĤ¸¤é¤ì¤Æ¤¤¤Ê¤¤¥¿¥¤¥×̾¤¬¤¢¤ê¤Þ¤¹" -#: src/lex.c:422 +#: src/lex.c:430 msgid "use \"...\" for multi-character literal tokens" msgstr "Ê£¿ôʸ»ú¤Î¥ê¥Æ¥é¥ë¥È¡¼¥¯¥ó¤Ë¤Ï \"...\" ¤ò»È¤¤¤Þ¤·¤ç¤¦" diff --git a/po/nl.gmo b/po/nl.gmo index adf0728efa2b3b7aceaffd673b7b65fbef4c3270..225cdb8f75128f670cc9025a3abed24d52176b14 100644 GIT binary patch delta 23 ecmX?SdCqc!t{|6@u7RO~p}Ccj>1K1m>D&NVUD&NVy9Sj2 diff --git a/po/nl.po b/po/nl.po index 3f4bd094..6e78558b 100644 --- a/po/nl.po +++ b/po/nl.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: bison 1.25\n" -"POT-Creation-Date: 2001-01-18 17:53+0100\n" +"POT-Creation-Date: 2001-02-01 17:25+0100\n" "PO-Revision-Date: 1996-08-27 15:34 MET DST\n" "Last-Translator: Erick Branderhorst \n" "Language-Team: Dutch \n" @@ -222,34 +222,34 @@ msgstr "ongetermineerd commentaar" msgid "unexpected end of file" msgstr "Onverwacht bestandseinde" -#: src/lex.c:154 +#: src/lex.c:160 msgid "unescaped newline in constant" msgstr "niet geescapete nieuwe regel in constante" -#: src/lex.c:196 +#: src/lex.c:202 #, c-format msgid "octal value outside range 0...255: `\\%o'" msgstr "octale waarde buiten domein 0...255: `\\%o'" -#: src/lex.c:221 +#: src/lex.c:227 #, c-format msgid "hexadecimal value above 255: `\\x%x'" msgstr "hexadecimale waarde boven 255: `\\x%x'" -#: src/lex.c:233 +#: src/lex.c:239 #, c-format msgid "unknown escape sequence: `\\' followed by `%s'" msgstr "onbekende escape reeks: `\\' gevolgd door `%s'" -#: src/lex.c:326 +#: src/lex.c:335 msgid "unterminated type name at end of file" msgstr "niet getermineerd type naam aan het einde van bestand" -#: src/lex.c:329 +#: src/lex.c:338 msgid "unterminated type name" msgstr "niet getermineerd type naam" -#: src/lex.c:422 +#: src/lex.c:430 msgid "use \"...\" for multi-character literal tokens" msgstr "gebruik \"...\" voor meerdere karakters literal tekens" diff --git a/po/ru.gmo b/po/ru.gmo index 2e56aa9c15e603d1ce0108ffb60036538e3741a3..31f5ad223f839304665d898c437718f078f9ad1b 100644 GIT binary patch delta 23 ecmX>fc0OzapCp%&u7RO~p}Ccj>1GK@b0Gj)iv~gf delta 23 ecmX>fc0OzapCp%|uAzm3p}Cc*@n#80b0Gj)<_1at diff --git a/po/ru.po b/po/ru.po index f923aea9..76657671 100644 --- a/po/ru.po +++ b/po/ru.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: bison 1.28a\n" -"POT-Creation-Date: 2001-01-18 17:53+0100\n" +"POT-Creation-Date: 2001-02-01 17:25+0100\n" "PO-Revision-Date: 2000-04-12 13:16+04:00\n" "Last-Translator: Dmitry S. Sivachenko \n" "Language-Team: Russian \n" @@ -242,34 +242,34 @@ msgstr " msgid "unexpected end of file" msgstr "ÎÅÏÖÉÄÁÎÎÙÊ ËÏÎÅà ÆÁÊÌÁ" -#: src/lex.c:154 +#: src/lex.c:160 msgid "unescaped newline in constant" msgstr "ÎÅÜËÒÁÎÉÒÏ×ÁÎÎÙÊ ÐÅÒÅ×ÏÄ ÓÔÒÏËÉ × ËÏÎÓÔÁÎÔÅ" -#: src/lex.c:196 +#: src/lex.c:202 #, c-format msgid "octal value outside range 0...255: `\\%o'" msgstr "×ÏÓØÍÅÒÉÞÎÁÑ ×ÅÌÉÞÉÎÁ ÚÁ ÐÒÅÄÅÌÁÍÉ ÄÉÁÐÁÚÏÎÁ 0...255: `\\%o'" -#: src/lex.c:221 +#: src/lex.c:227 #, c-format msgid "hexadecimal value above 255: `\\x%x'" msgstr "ÛÅÓÔÎÁÄÃÁÔÅÒÉÞÎÁÑ ×ÅÌÉÞÉÎÁ ÐÒÅ×ÙÛÁÅÔ 255: `\\x%x'" -#: src/lex.c:233 +#: src/lex.c:239 #, c-format msgid "unknown escape sequence: `\\' followed by `%s'" msgstr "ÎÅÉÚ×ÅÓÔÎÁÑ escape-ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÏÓÔØ: `%s' ÐÏÓÌÅ `\\'" -#: src/lex.c:326 +#: src/lex.c:335 msgid "unterminated type name at end of file" msgstr "ÎÅÚÁËÏÎÞÅÎÎÏÅ ÉÍÑ ÔÉÐÁ × ËÏÎÃÅ ÆÁÊÌÁ" -#: src/lex.c:329 +#: src/lex.c:338 msgid "unterminated type name" msgstr "ÎÅÚÁËÏÎÞÅÎÎÏÅ ÉÍÑ ÔÉÐÁ" -#: src/lex.c:422 +#: src/lex.c:430 msgid "use \"...\" for multi-character literal tokens" msgstr "ÉÓÐÏÌØÚÕÊÔÅ \"...\" ÄÌÑ ÍÎÏÇÏÓÉÍ×ÏÌØÎÙÈ ÌÉÔÅÒÁÌØÎÙÈ ÌÅËÓÅÍ" diff --git a/src/lex.c b/src/lex.c index 987777be..4eefa737 100644 --- a/src/lex.c +++ b/src/lex.c @@ -535,14 +535,14 @@ struct percent_table_struct percent_table[] = { "nonassoc", NULL, tok_nonassoc }, { "binary", NULL, tok_nonassoc }, { "prec", NULL, tok_prec }, - { "locations", &locations_flag, tok_noop }, /* -l */ - { "no_lines", &no_lines_flag, tok_noop }, /* -l */ - { "raw", &raw_flag, tok_noop }, /* -r */ - { "token_table", &token_table_flag, tok_noop }, /* -k */ - { "yacc", &yacc_flag, tok_noop }, /* -y */ - { "fixed_output_files",&yacc_flag, tok_noop }, /* -y */ - { "defines", &defines_flag, tok_noop }, /* -d */ - { "no_parser", &no_parser_flag, tok_noop }, /* -n */ + { "locations", &locations_flag, tok_noop }, /* -l */ + { "no_lines", &no_lines_flag, tok_noop }, /* -l */ + { "raw", &raw_flag, tok_noop }, /* -r */ + { "token_table", &token_table_flag, tok_noop }, /* -k */ + { "yacc", &yacc_flag, tok_noop }, /* -y */ + { "fixed_output_files",&yacc_flag, tok_noop }, /* -y */ + { "defines", &defines_flag, tok_noop }, /* -d */ + { "no_parser", &no_parser_flag, tok_noop }, /* -n */ #if 0 /* For the time being, this is not enabled yet, while it's possible though, since we use obstacks. The only risk is with semantic @@ -552,12 +552,11 @@ struct percent_table_struct percent_table[] = { "file_prefix", &spec_file_prefix, tok_setopt }, /* -b */ { "name_prefix", &spec_name_prefix, tok_setopt }, /* -p */ #endif - { "verbose", &verbose_flag, tok_noop }, /* -v */ - { "debug", &debug_flag, tok_noop }, /* -t */ + { "verbose", &verbose_flag, tok_noop }, /* -v */ + { "debug", &debug_flag, tok_noop }, /* -t */ { "semantic_parser", &semantic_parser, tok_noop }, { "pure_parser", &pure_parser, tok_noop }, -/* {"help", , tok_noop}, *//* -h */ -/* {"version", , tok_noop}, *//* -V */ + { NULL, NULL, tok_illegal} }; -- 2.50.0