summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* version 2.6.4Will Estes2017-05-06
| | | | * NEWS: Record release date.
* note previous versionWill Estes2017-05-06
|
* doc: update NEWS for upcoming releaseWill Estes2017-05-06
|
* doc: Correct typo in C code sample in manualviktor.shepel2017-05-06
|
* scanner: Mention %# comments are removed when building skel.cExplorer092017-05-06
|
* Honor user definitions of yy_* macrosDemi Obenour2017-05-03
| | | | | The user may have defined the yy_* macros themselves. In that case, don't clobber them.
* Don't leak macro definitions into header filesDemi Obenour2017-05-03
| | | | | | | This allowed unnamespaced definitions to leak into header files, breaking client code. Fixes #142
* scanner: Check for 0 bracecount when EOL ends quoted literal.Demi Obenour2017-05-03
| | | | | This can happen in the case of // comments (which Flex doesn't handle specially).
* scanner: when bracelevel is negative, treat as zero.Demi Obenour2017-05-03
| | | | | This really should never happen, but this at least fixes the breakage on Verilator.
* test: enable more silent building of tests.Jeff Smith2017-05-03
| | | | | | | | When running 'make V=0 check', some compile and link steps are made less verbose and some are not. This cleans up most steps that are not. These have no effect if V=0 is not specified.
* build: Delete comments from skeleton file.Demi Obenour2017-05-03
| | | | | | Since the comments in flex.skl are, by hypothesis, not needed in skel.c, we remove them. THis reduces the size of the resulting executable somewhat.
* build: do not generate lib/Makefile.in.Explorer092017-05-03
| | | | | | Files in lib/ are picked up and built using makefile directives in src/Makefile.am. Remove the need to generate lib/Makefile.in and the stub lib/Makefile.am.
* gettext: revert listing generated .c filesWill Estes2017-05-02
|
* FLEX_EXIT() is the preferred way to exit flexJeff Smith2017-05-02
|
* Fix myesc() 'sptr' conditionalsExplorer092017-05-02
| | | | | | | | | | * Don't call isascii() here. It's deprecated in POSIX and not needed for myesc's case. * The check of the character class and range here should match what's defined as {ESCSEQ} in scan.l, so for [[:xdigit:]] we use isxdigit(); for [0-7] we check '0' <= c <= '7' (not isdigit(c) because isdigit is locale-dependant in standard's sense) * Add missing length limit for "\x<hex>" (<hex> is at most 2 digits)
* Obsolete htoui() and otoui(); use strtoul().Explorer092017-05-02
| | | | | No sense to keep these two function when libc's strtoul() can do the same job, but better.
* scanner: update yy_buf_size after yyrealloc()Todd C. Miller2017-05-02
|
* build: use lowest versions for gettext, automake.Simon Sobisch2017-05-02
|
* gettext: more recent makevars; new script to update po files.Simon Sobisch2017-05-02
| | | | | | | | Previously, "make dist" and similar commands would cause the po files to be updated, which is incorrect. The more recent version now used should not do this. Replaced Rules-getpo by extra script to manually update and rebuild all po files.
* gettext: list generated files instead of flex, bison sources in POTFILES.in.Simon Sobisch2017-05-02
| | | | | | | | Listing the flex and bison sources -- as the gettext manual suggests -- causes warnings. Listing the generated C files for the lexer and parser removes the warnings. Since both files contain line directives, any translator who needs to refer back to those files should be able to find the context in which strings are needed.
* build: only touch ChangeLog if it does not existSimon Sobisch2017-05-02
|
* build: list earliest useable versions for automakeSimon Sobisch2017-05-02
|
* build: check for how to call libtoolize.Simon Sobisch2017-05-02
| | | | | | | | | | | Previously, we would call libtoolize and if that failed, we would call glibtoolize since some platforms have the libtoolize program under that name. Instead, we check to see if the environment variable LIBTOOLIZE is set and use that if so. Otherwise, we try to find a program "libtoolize" on the path and failing that glibtoolize. We alert the user if no suitable program can be found.
* build: support cross compiling.Alastair Hughes2017-02-23
| | | | | | | | | | | | | Check for cross compiling. If cross compiling, build stage1flex using a custom link command. We also override LDADD since that adds the replacement implementations that are cross compiled, and instead always use the replacement library implementations. We don't use BUILD_OBJEXT and BUILD_EXEEXT since it seems that automake does not support these. Fixes #78.
* build: Include <strings.h>; add strcasecmp() check to configure.Explorer092017-02-17
| | | | | | strings.h (not string.h) is the standard-defined include header for strcasecmp(). Include <strings.h> for portability (even though glibc exposes strcasecmp() declaration also in <string.h> by default).
* build: Let configure error if missing required functions, headers..Explorer092017-02-17
| | | | | | | | | | | | `configure` will now error if a required header or function is not found on the system. Also add comments on optional functions checks. Add sys/stats.h and sys/wait.h to list of required headers in configure. This fixes issue #180.
* scanner: compute powers of two faster.Explorer092017-02-16
| | | | | | Replace the naive "for" loop in determining power of two with a clever bitwise solution. This code is around the Internet already and is in Public Domain.
* test: skip pthread test when needed files missing.Explorer092017-02-16
| | | | | | | | | | | | "Unlisting" the pthread test when libpthread is not available is never a good idea. Should let it compile into a stub program that returns the "skip" status. configure.ac and tests/Makefile.am are edited so that pthread test can be built anyway, but only works (not as the stub) when both pthread.h and libpthread are detected on the system. Also fix a small typo in tests/pthread.l comments.
* build: mv scan.c when building dist.Will Estes2017-02-16
| | | | | | | | | Revert change to copy scan.c when building the distribution archive. Move it instead. This satisfies automake's notions of what should be clean and ensures that the distribution archive contains a just-built copy of scan.c. Fixes #186
* build: don't assume distdir/scan.c is writeableWill Estes2017-02-06
|
* build: Add dist-hook to force remake scan.c.Explorer092017-02-06
| | | | | | | | This will ensure the flex scanner included in release tarball being generated by exactly the flex version to be released. Here's one catch after this change: You may not run "make dist" or "make distdir" if you configure the flex source to be cross-compiled.
* build: respect '--localedir' from configure.Explorer092017-02-06
| | | | | Makefile shouldn't overwrite the 'localedir' variable, because that's what '--localedir' option in 'configure' is for.
* build: Remove "-I$(top_srcdir)/intl" from CPPFLAGS.Explorer092017-02-06
| | | | | | | | | | | | | | | | Revert commit e02c3d27eeb6b53ec82532ab080c23ce26813fd4 ("include the intl/ subdirectory when searching for include files") Flex doesn't come with libintl source code, so inclusion of $(top_srcdir)/intl subdirectory during compiling is unnecessary. This flag seems to be left after "remove intl from dist" (commit 8f45da06adbd7dbcdfdbdd5c20ff4c47fc504f35) without someone cleaning this up. Users who need to build with gettext functionality from libintl would use the '--with-libintl-prefix' configure option.
* scanner: fix regcomp's error reporting, double malloc.Explorer092017-02-06
| | | | | | | | Fix unneeded double malloc - let regerror(). Write its message after our "regcomp for (regex) failed: " string. Also, errbuf cannot be free()'d because of flexfatal containing a longjmp.
* test: Skip bison tests if bison is not availableExplorer092017-01-25
|
* build: remove repeated bison detection from configure.Explorer092017-01-25
| | | | | | | | | | | | | | | AC_PROG_YACC already detects the bison program. We can just use it, and make notice if [ $YACC != 'bison -y' ] Remove unused AC_SUBST([BISON], ...). Add AM_CONDITIONAL([HAVE_BISON], ...) so that we can skip bison tests in testsuite when bison is absent. We don't make any attempt to detect other yacc implementations since flex is developed with bison. While it would be possible, the need isn't there right now. It would be possible to add a --with-parser option that defaulted to bison if such a need cropped up.
* build: fix Makefile parse.h dependency clauses.Explorer092017-01-24
| | | | | | | | | | | The current clauses stating "main.c: parse.h" and "yylex.c: parse.h" do not work as expected. Make did not try to build parse.h upon building flex-main.o as it would think main.c exist already and ignore the clause. Fix this by explicitly stating that the .o files depend on parse.h instead. This dependency bug only happens if user builds flex from a checked-out repository.
* test: Remake *_scanner.c if *_scanner.h is missing.Explorer092017-01-24
| | | | | | | | If a ${foo}_scanner.c exists but the respective ${foo}_scanner.h is missing, then 'make' can halt. Fix this by deleting the ${foo}_scanner.c file and then remake it. This rule is the same as the automake-generated rule for .c files that require LEX or YACC (except automake will use ylwrap).
* test: remove BUILT_SOURCES; add missing dependencies.Explorer092017-01-24
| | | | | | | | | | | | | Without BUILT_SOURCES in Makefile, no test sources in tests/ will be built when using the default "make all" target. This is desireable for people who are just building flex but who do not want to run, and therefore, build any part of the test suite. Also fix missing sources dependencies: bison_nr_scanner.$(OBJEXT): bison_nr_parser.h bison_yylloc_scanner.$(OBJEXT): bison_yylloc_parser.h bison_yylval_scanner.$(OBJEXT): bison_yylval_parser.h
* build: detect overflow for [re]allocate_array.Explorer092017-01-24
| | | | | | | | | | | Use reallocarray() when we have it (i.e. in OpenBSD system). When we don't, use equivalent overflow detection for our allocate_array and reallocate_array functions. Remove lib/reallocarray.c from our LIBOBJS as we no longer need it. Provide a fallback SIZE_MAX macro definition in flexint.h (not preprocessor friendly, but enough for our reallocate_array use case).
* doc: v2.6.4Will Estes2017-01-23
|
* build: more BSD make and vpath build fixes.Thomas Klausner2017-01-23
| | | | | | BSD make doesn't like $< with more than one source specified. Additionally, make sure to specify srcdir when referring to source files since vpath builds depend on this.
* build: Fix skel.c generation with BSD makeThomas Klausner2017-01-23
|
* Add more defines in the non-reentrant part.Christos Zoulas2017-01-23
| | | | | Fix the reentrant part; don't "#define yyfoo yyfoo" because it breaks code that does #ifndef yywrap ..
* scanner: Add yyparse prototypeChristos Zoulas2017-01-23
|
* scanner: move comment for consistencyThomas Klausner2017-01-23
|
* scanner: Use array instead of pointerChristos Zoulas2017-01-23
|
* scanner: manage path to m4 better.Christos Zoulas2017-01-23
| | | | | Avoid alloca() for SSP; it is better anyway; since we don't need to strdup the path.
* scanner: Avoid creating unused labelChristos Zoulas2017-01-23
|
* Cast argument to avoid arithmetic on void *.Christos Zoulas2017-01-23
|