LIBS = @LIBINTL@ @LIBS@
skel.c: flex.skl mkskel.sh
- $(m4) -P $(srcdir)/flex.skl | $(SHELL) $(srcdir)/mkskel.sh >skel.c
+ $(m4) -P -DVERSION=$(VERSION) $(srcdir)/flex.skl | $(SHELL) $(srcdir)/mkskel.sh >skel.c
$(man_MANS): $(srcdir)/main.c
for i in $(man_MANS) ; do \
+m4_changecom
%# -*-C-*- vi: set ft=c:
/* A lexical scanner generated by flex */
%# and affect the generation of the scanner. The possible control codes are
%# listed and processed in misc.c.
%#
-%# %# - A comment. The current line is ommited from the generated scanner.
+%# %# - A comment. The current line is omitted from the generated scanner.
%# %push - Push the current state of the skel processing
%# A push is typically followed by one of the commands below.
%# %pop - Pop the state.
%# edit the skeleton.
%#
#define FLEX_SCANNER
-#define YY_FLEX_MAJOR_VERSION 2
-#define YY_FLEX_MINOR_VERSION 5
+#define YY_FLEX_VERSION VERSION
/* First, we deal with platform-specific or compiler-specific issues. */
@item
The name @code{FLEX_SCANNER} is @code{#define}'d so scanners may be
written for use with either @code{flex} or @code{lex}. Scanners also
-include @code{YY_FLEX_MAJOR_VERSION} and @code{YY_FLEX_MINOR_VERSION}
-indicating which version of @code{flex} generated the scanner (for
-example, for the 2.5 release, these defines would be 2 and 5
-respectively).
+include @code{YY_FLEX_VERSION} indicating which version of @code{flex} generated the scanner.
@end itemize
@cindex POSIX, non-POSIX features of flex