X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/06f01bc4964795ec030c756e292f52b6f439a3d4..c1630a8b805234e4c5687883b64b161bb2f36cb7:/src/scan-skel.l?ds=sidebyside diff --git a/src/scan-skel.l b/src/scan-skel.l index c84eea13..e787d288 100644 --- a/src/scan-skel.l +++ b/src/scan-skel.l @@ -29,8 +29,11 @@ #undef skel_wrap #define skel_wrap() 1 -#include "system.h" +#define FLEX_NO_OBSTACK +#define FLEX_PREFIX(Id) skel_ ## Id +#include "flex-scanner.h" +#include #include #include @@ -39,25 +42,13 @@ #include "files.h" #include "scan-skel.h" -/* Pacify "gcc -Wmissing-prototypes" when flex 2.5.31 is used. */ int skel_lex (void); -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) #define BASE_QPUTS(File) \ - QPUTS (base_name (File)) + QPUTS (last_component (File)) %} %%