Alien-flex
view release on metacpan or search on metacpan
patch/flex-2.6.4.diff view on Meta::CPAN
#undef STDC_HEADERS
+/* Enable extensions on AIX 3, Interix. */
+#ifndef _ALL_SOURCE
+# undef _ALL_SOURCE
+#endif
+/* Enable GNU extensions on systems that have them. */
+#ifndef _GNU_SOURCE
+# undef _GNU_SOURCE
+#endif
+/* Enable threading extensions on Solaris. */
+#ifndef _POSIX_PTHREAD_SEMANTICS
+# undef _POSIX_PTHREAD_SEMANTICS
+#endif
+/* Enable extensions on HP NonStop. */
+#ifndef _TANDEM_SOURCE
+# undef _TANDEM_SOURCE
+#endif
+/* Enable general extensions on Solaris. */
+#ifndef __EXTENSIONS__
+# undef __EXTENSIONS__
patch/flex-2.6.4.diff view on Meta::CPAN
-#endif
-
-
#ifndef YYTABLES_TYPES
#define YYTABLES_TYPES
/** Possible values for td_id field. Each one corresponds to a
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 2cb51df..f5a5ad0 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -333,7 +333,7 @@ pthread_pthread_LDADD = @LIBPTHREAD@
# specify how to process .l files in order to test the flex built by make all
-FLEX = $(top_builddir)/src/flex
+FLEX = $(FLEXexe)
.l.c: $(FLEX)
$(AM_V_LEX)$(FLEX) -o $@ $<
@@ -445,7 +445,7 @@ top.h: top.c
# things) and the resultant list is both long an unenlightening. And
patch/flex-2.6.4.diff view on Meta::CPAN
+ ./$(DEPDIR)/lineno_nr.Po ./$(DEPDIR)/lineno_r.Po \
+ ./$(DEPDIR)/lineno_trailing.Po ./$(DEPDIR)/mem_nr.Po \
+ ./$(DEPDIR)/mem_r.Po ./$(DEPDIR)/multiple_scanners_nr_1.Po \
+ ./$(DEPDIR)/multiple_scanners_nr_2.Po \
+ ./$(DEPDIR)/multiple_scanners_nr_main.Po \
+ ./$(DEPDIR)/multiple_scanners_r_1.Po \
+ ./$(DEPDIR)/multiple_scanners_r_2.Po \
+ ./$(DEPDIR)/multiple_scanners_r_main.Po \
+ ./$(DEPDIR)/no_bison_stub.Po ./$(DEPDIR)/posix.Po \
+ ./$(DEPDIR)/posixly_correct.Po ./$(DEPDIR)/prefix_nr.Po \
+ ./$(DEPDIR)/prefix_r.Po ./$(DEPDIR)/pthread.Po \
+ ./$(DEPDIR)/quote_in_comment.Po ./$(DEPDIR)/quotes.Po \
+ ./$(DEPDIR)/rescan_nr.direct.Po ./$(DEPDIR)/rescan_r.direct.Po \
+ ./$(DEPDIR)/string_nr.Po ./$(DEPDIR)/string_r.Po \
+ ./$(DEPDIR)/top.Po ./$(DEPDIR)/top_main.Po \
+ ./$(DEPDIR)/yyextra.Po
am__mv = mv -f
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
@@ -709,6 +752,7 @@ AM_V_CXXLD = $(am__v_CXXLD_@AM_V@)
am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@)
patch/flex-2.6.4.diff view on Meta::CPAN
pdfdir = @pdfdir@
+pkgconfigdir = @pkgconfigdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
-runstatedir = @runstatedir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
@@ -1640,135 +1687,135 @@ dist_check_SCRIPTS = \
pthread_pthread_LDADD = @LIBPTHREAD@
# specify how to process .l files in order to test the flex built by make all
-FLEX = $(top_builddir)/src/flex
+FLEX = $(FLEXexe)
tableopts_opt_nr_Ca_opt_SOURCES = tableopts.l4
tableopts_opt_nr_Ce_opt_SOURCES = tableopts.l4
tableopts_opt_nr_Cf_opt_SOURCES = tableopts.l4
-tableopts_opt_nr_CF_opt_SOURCES = tableopts.l4
+tableopts_opt_nr_C_F_opt_SOURCES = tableopts.l4
tableopts_opt_nr_Cm_opt_SOURCES = tableopts.l4
patch/flex-2.6.4.diff view on Meta::CPAN
- tableopts_ver_r-CaeF.ver.tables tableopts_ver_r-Cam.ver.tables \
- tableopts_ver_r-Caem.ver.tables
+ tableopts_ver_r-Cae_F.ver.tables \
+ tableopts_ver_r-Cam.ver.tables tableopts_ver_r-Caem.ver.tables
tableopts := -Ca -Ce -Cf -CF -Cm -Cem -Cae -Caef -CaeF -Cam -Caem
tableopts_opt_tests := $(foreach opt,$(tableopts), tableopts_opt_nr$(opt) tableopts_opt_r$(opt))
tableopts_sertests := $(foreach opt,$(tableopts), tableopts_ser_nr$(opt) tableopts_ser_r$(opt))
@@ -1785,7 +1832,7 @@ all: all-am
.SUFFIXES:
.SUFFIXES: .c .cc .cn .cn$(EXEEXT) .direct .direct$(EXEEXT) .i3 .i3$(EXEEXT) .l .ll .lll .lo .log .o .obj .one .one$(EXEEXT) .opt .opt$(EXEEXT) .pthread .pthread$(EXEEXT) .reject .reject$(EXEEXT) .ser .ser$(EXEEXT) .table .table$(EXEEXT) .trs .ver ....
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/tableopts.am $(am__configure_deps)
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/tableopts.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
@@ -1802,17 +1849,17 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
*config.status*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
*) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
patch/flex-2.6.4.diff view on Meta::CPAN
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/multiple_scanners_nr_2.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/multiple_scanners_nr_main.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/multiple_scanners_r_1.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/multiple_scanners_r_2.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/multiple_scanners_r_main.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/no_bison_stub.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/posix.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/posixly_correct.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/prefix_nr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/prefix_r.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pthread.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/quote_in_comment.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/quotes.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rescan_nr.direct.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rescan_r.direct.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/string_nr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/string_r.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/top.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/top_main.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/yyextra.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/alloc_extra.Po@am__quote@ # am--include-marker
patch/flex-2.6.4.diff view on Meta::CPAN
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/multiple_scanners_nr_2.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/multiple_scanners_nr_main.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/multiple_scanners_r_1.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/multiple_scanners_r_2.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/multiple_scanners_r_main.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/no_bison_stub.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/posix.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/posixly_correct.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/prefix_nr.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/prefix_r.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pthread.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/quote_in_comment.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/quotes.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rescan_nr.direct.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rescan_r.direct.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/string_nr.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/string_r.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/top.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/top_main.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/yyextra.Po@am__quote@ # am--include-marker
+
patch/flex-2.6.4.diff view on Meta::CPAN
+ -rm -f ./$(DEPDIR)/multiple_scanners_nr_2.Po
+ -rm -f ./$(DEPDIR)/multiple_scanners_nr_main.Po
+ -rm -f ./$(DEPDIR)/multiple_scanners_r_1.Po
+ -rm -f ./$(DEPDIR)/multiple_scanners_r_2.Po
+ -rm -f ./$(DEPDIR)/multiple_scanners_r_main.Po
+ -rm -f ./$(DEPDIR)/no_bison_stub.Po
+ -rm -f ./$(DEPDIR)/posix.Po
+ -rm -f ./$(DEPDIR)/posixly_correct.Po
+ -rm -f ./$(DEPDIR)/prefix_nr.Po
+ -rm -f ./$(DEPDIR)/prefix_r.Po
+ -rm -f ./$(DEPDIR)/pthread.Po
+ -rm -f ./$(DEPDIR)/quote_in_comment.Po
+ -rm -f ./$(DEPDIR)/quotes.Po
+ -rm -f ./$(DEPDIR)/rescan_nr.direct.Po
+ -rm -f ./$(DEPDIR)/rescan_r.direct.Po
+ -rm -f ./$(DEPDIR)/string_nr.Po
+ -rm -f ./$(DEPDIR)/string_r.Po
+ -rm -f ./$(DEPDIR)/top.Po
+ -rm -f ./$(DEPDIR)/top_main.Po
+ -rm -f ./$(DEPDIR)/yyextra.Po
-rm -f Makefile
patch/flex-2.6.4.diff view on Meta::CPAN
+ -rm -f ./$(DEPDIR)/multiple_scanners_nr_2.Po
+ -rm -f ./$(DEPDIR)/multiple_scanners_nr_main.Po
+ -rm -f ./$(DEPDIR)/multiple_scanners_r_1.Po
+ -rm -f ./$(DEPDIR)/multiple_scanners_r_2.Po
+ -rm -f ./$(DEPDIR)/multiple_scanners_r_main.Po
+ -rm -f ./$(DEPDIR)/no_bison_stub.Po
+ -rm -f ./$(DEPDIR)/posix.Po
+ -rm -f ./$(DEPDIR)/posixly_correct.Po
+ -rm -f ./$(DEPDIR)/prefix_nr.Po
+ -rm -f ./$(DEPDIR)/prefix_r.Po
+ -rm -f ./$(DEPDIR)/pthread.Po
+ -rm -f ./$(DEPDIR)/quote_in_comment.Po
+ -rm -f ./$(DEPDIR)/quotes.Po
+ -rm -f ./$(DEPDIR)/rescan_nr.direct.Po
+ -rm -f ./$(DEPDIR)/rescan_r.direct.Po
+ -rm -f ./$(DEPDIR)/string_nr.Po
+ -rm -f ./$(DEPDIR)/string_r.Po
+ -rm -f ./$(DEPDIR)/top.Po
+ -rm -f ./$(DEPDIR)/top_main.Po
+ -rm -f ./$(DEPDIR)/yyextra.Po
-rm -f Makefile
patch/flex-2.6.4.diff view on Meta::CPAN
+TABLEOPTS_TESTS = tableopts_opt_nr-Ca.opt tableopts_opt_nr-Ce.opt tableopts_opt_nr-Cf.opt tableopts_opt_nr-C_F.opt tableopts_opt_nr-Cm.opt tableopts_opt_nr-Cem.opt tableopts_opt_nr-Cae.opt tableopts_opt_nr-Caef.opt tableopts_opt_nr-Cae_F.opt tableop...
-tableopts_tables = tableopts_ser_nr-Ca.ser.tables tableopts_ser_nr-Ce.ser.tables tableopts_ser_nr-Cf.ser.tables tableopts_ser_nr-CF.ser.tables tableopts_ser_nr-Cm.ser.tables tableopts_ser_nr-Cem.ser.tables tableopts_ser_nr-Cae.ser.tables tableopts_...
+tableopts_tables = tableopts_ser_nr-Ca.ser.tables tableopts_ser_nr-Ce.ser.tables tableopts_ser_nr-Cf.ser.tables tableopts_ser_nr-C_F.ser.tables tableopts_ser_nr-Cm.ser.tables tableopts_ser_nr-Cem.ser.tables tableopts_ser_nr-Cae.ser.tables tableopts...
diff --git a/tests/tableopts.sh b/tests/tableopts.sh
index c1ac19e..497829e 100755
--- a/tests/tableopts.sh
+++ b/tests/tableopts.sh
@@ -17,7 +17,11 @@ tableopts_tables=""
for kind in opt ser ver ; do
for threading in nr r ; do
for opt in -Ca -Ce -Cf -CF -Cm -Cem -Cae -Caef -CaeF -Cam -Caem ; do
- testname=tableopts_${kind}_${threading}${opt}.${kind}
+ bare_opt=${opt#-}
+ # The filenames must work on case-insensitive filesystems.
+ bare_opt=`echo ${bare_opt}| sed 's/F$/_F/'`
+
+ testname=tableopts_${kind}_${threading}-${bare_opt}.${kind}
if [ "${TABLEOPTS_TESTS}" = "" ] ;then
TABLEOPTS_TESTS=${testname}
if [ "$kind" = "ser" ] || [ "$kind" = "ver" ] ; then
@@ -30,11 +34,10 @@ for kind in opt ser ver ; do
fi
fi
- bare_opt=${opt#-}
cat << EOF
tableopts_${kind}_${threading}_${bare_opt}_${kind}_SOURCES = tableopts.l4
-${testname}\$(EXEEXT): tableopts_${kind}_${threading}${opt}.\$(OBJEXT)
+${testname}\$(EXEEXT): tableopts_${kind}_${threading}-${bare_opt}.\$(OBJEXT)
\$(AM_V_CCLD)\$(LINK) -o \$@ \$<
EOF
diff --git a/tests/testwrapper-direct.sh b/tests/testwrapper-direct.sh
index 589ad33..9160501 100755
--- a/tests/testwrapper-direct.sh
+++ b/tests/testwrapper-direct.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-set -vx
( run in 0.626 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )