#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 <dirname.h>
#include <error.h>
#include <quotearg.h>
#include "files.h"
#include "scan-skel.h"
+int skel_lex (void);
+
#define QPUTS(String) \
fputs (quotearg_style (c_quoting_style, String), yyout)
#define BASE_QPUTS(File) \
- QPUTS (base_name (File))
+ QPUTS (last_component (File))
%}
%%
xfclose (yyout);
}
outname = xstrdup (file_name);
+ output_file_name_check (file_name);
yyout = xfopen (outname, "w");
lineno = 1;
}
skel__flex_debug = trace_flag & trace_skeleton;
skel_lex ();
/* Reclaim Flex's buffers. */
- yy_delete_buffer (YY_CURRENT_BUFFER);
+ yylex_destroy ();
}