From: Paul Eggert Date: Wed, 20 Jul 2005 21:23:35 +0000 (+0000) Subject: * src/scan-gram.l (gram_get_lineno, gram_get_in, gram_get_out): X-Git-Tag: BISON-2_1~67 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/dc9701e848f27ae64b6ddcf809580998667d60f2?hp=802b9687d00100af2e816fae6174f0000c1e2249 * src/scan-gram.l (gram_get_lineno, gram_get_in, gram_get_out): (gram_get_leng, gram_get_text, gram_set_lineno, gram_set_in): (gram_set_out, gram_get_debug, gram_set_debug, gram_lex_destroy): Add declarations to pacify "gcc -Wmissing-prototypes" when flex 2.5.31 is used. * src/scan-skel.l (skel_get_lineno, skel_get_in, skel_get_out): (skel_get_leng, skel_get_text, skel_set_lineno, skel_set_in): (skel_set_out, skel_get_debug, skel_set_debug, skel_lex_destroy): Likewise. --- diff --git a/src/scan-gram.l b/src/scan-gram.l index c7540d8e..98c5da47 100644 --- a/src/scan-gram.l +++ b/src/scan-gram.l @@ -48,6 +48,19 @@ } \ while (0) +/* Pacify "gcc -Wmissing-prototypes" when flex 2.5.31 is used. */ +int gram_get_lineno (void); +FILE *gram_get_in (void); +FILE *gram_get_out (void); +int gram_get_leng (void); +char *gram_get_text (void); +void gram_set_lineno (int); +void gram_set_in (FILE *); +void gram_set_out (FILE *); +int gram_get_debug (void); +void gram_set_debug (int); +int gram_lex_destroy (void); + /* Location of scanner cursor. */ boundary scanner_cursor; diff --git a/src/scan-skel.l b/src/scan-skel.l index 3cb2178a..951a9fda 100644 --- a/src/scan-skel.l +++ b/src/scan-skel.l @@ -34,6 +34,19 @@ int skel_lex (void); +/* Pacify "gcc -Wmissing-prototypes" when flex 2.5.31 is used. */ +int skel_get_lineno (void); +FILE *skel_get_in (void); +FILE *skel_get_out (void); +int skel_get_leng (void); +char *skel_get_text (void); +void skel_set_lineno (int); +void skel_set_in (FILE *); +void skel_set_out (FILE *); +int skel_get_debug (void); +void skel_set_debug (int); +int skel_lex_destroy (void); + #define QPUTS(String) \ fputs (quotearg_style (c_quoting_style, (String)), yyout)