summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* doc: mark 2.6.2 release datev2.6.2Will Estes2016-10-241-1/+1
|
* build: switch xz to lzipWill Estes2016-10-243-2/+4
|
* Fix M4 quotation in section 2 prologue and refactor duplicated codeDemi Obenour2016-10-232-22/+32
|
* Update flex.texi: Removed repedative wordingAlex Kennedy2016-10-211-1/+1
| | | "Flex used to" was written twice at the beginning of Chapter 9, paragraph 2.
* Improved M4 quotationDemi Obenour2016-10-198-74/+84
| | | | | | | | | | | This fixes M4 quotation of certain strings beginning with `yy` (in section 3 of the input file only) and character literals. The new quotation method is also less brittle and faster. Tests that relied on the old behavior were fixed. Also, `yyconst` is no longer defined; use `const` (which it unconditionally was defined to) instead.
* build: for automake, flex is foreignWill Estes2016-10-192-2/+2
|
* doc: mv README to README.mdWill Estes2016-10-191-0/+0
|
* doc: touch up READMEWill Estes2016-10-191-5/+0
|
* doc: README no longer mentions sourceforgeWill Estes2016-10-191-10/+2
|
* doc: update NEWS with more post-2.6.1 additionsWill Estes2016-10-061-0/+15
|
* Fix M4 quoting of section 3.Demi Obenour2016-10-0528-145/+177
| | | | | | | | | | This fixes M4 quoting of section 3 of the input file, including escape sequences and character constants. Tests were added to verify the behavior in section 3 with respect to quoting. Both escaping of quotes and quoting of potential macro-start characters are tested. Existing tests were also fixed to account for the new -- and now correct -- behavior. Many tests relied on the old behavior of expanding M4 macros in section 3. They needed to be updated for the new behavior.
* Fix yyrestart(NULL) SEGV.Mightyjo2016-10-055-1/+60
|
* scanner: M4 quoting fixesDemi Obenour2016-09-251-16/+25
|
* Support `make indent` for out of source buildsDemi Obenour2016-09-251-0/+1
|
* Simplify some shell codeDemi Obenour2016-09-252-11/+9
|
* no longer generate K&R C scannersDemi Obenour2016-09-2513-430/+102
|
* Fix escaping of `[[` and `]]` in stringsDemi Obenour2016-09-041-1/+3
| | | | | | | | Previously, `[[` and `]]` were not escaped in strings, which led to bad interactions with m4. Also, don't break strings on newline, as GCC et al support whitespace between a backslash and the subsequent newline.
* new sv translationTranslation Project2016-06-202-429/+358
|
* Delete action_m4_define from misc.cDemetri Obenour2016-05-231-24/+0
| | | This function was not used and always triggered a fatal error when run.
* test: run direct tests from srcdirWill Estes2016-05-202-2/+20
|
* Exited with error code on some conditions in include testsEgor Pugin2016-05-203-3/+24
|
* test: drop .exe when making input file namesWill Estes2016-05-201-4/+4
|
* test: removed dependencies for include testsWill Estes2016-05-201-6/+0
|
* Avoid realloc on every call of sf_push()Tobias Klauser2016-04-281-1/+2
| | | | | | | | | | | | | | | | | | Currently, every call to sf_push() realloc()'s _sf_stack, even if the maximum size _sf_max wasn't changed. As the indentation beneath the "if" clause already indicates, the realloc() should only be executed if _sf_max was increased. Found by compiling flex with the -Wmisleading-indentation flags of gcc, which leads to the following warning: scanflags.c: In function ‘sf_push’: scanflags.c:42:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if (_sf_top_ix + 1 >= _sf_max) ^~ scanflags.c:44:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’ _sf_stk = realloc(_sf_stk, sizeof(scanflags_t) * _sf_max); ^~~~~~~
* build: prettified command to build man pageWill Estes2016-03-311-3/+5
|
* build: added man page to DISTCLEANFILESWill Estes2016-03-311-0/+1
|
* remove unused TODO, BUGS filesWill Estes2016-03-312-173/+0
|
* removed to.do/ directoryWill Estes2016-03-3117-18384/+0
|
* gettext: removed flex.skl from POTFILES.in file listWill Estes2016-03-311-1/+0
|
* fix skel.c dependency (missing tables_shared.c) andrlar2016-03-311-4/+4
| | | | | | polish build rule Also remove references to srcdir since skel.c is no longer mentioned in po/POTFILES.in.
* fix flex.1 dependencyrlar2016-03-311-6/+3
| | | | | | | | | | | | | git clean -fdx && ./autogen.sh && \ mkdir -p ../build && cd ../build && ../flex/configure && make -j10 && \ make dist failed with: > help2man: can't get `--help' info from ../../flex/src/flex Note: There is no dependency except for the flex binary.
* fix stage1scan.c and stage1scan.l dependencyrlar2016-03-311-6/+5
| | | | | | | | | | | | | | | git clean -fdx && ./autogen.sh && \ mkdir -p ../build && cd ../build && ../flex/configure && make -j10 failed with: > ../src/stage1flex -o stage1scan.c stage1scan.l > stage1flex: can't open stage1scan.l Note: stage1scan.c is not necessairy in the "make dist" generated tar.gz file. stage1flex will be build from scan.c (which is distributed), and this will then generate stage1scan.c from scan.l
* gettext: list src/flex.skl in po/POTFILES.inWill Estes2016-03-311-1/+1
|
* warning in generated code, with -Carlar2016-03-311-18/+4
| | | | warning: conversion to 'yy_state_type' from 'flex_uint32_t' may change the sign of the result [-Wsign-conversion]
* suppress `WARNINGFLAGS' for the almost obsolete `noansi' test casesrlar2016-03-311-0/+2
|
* configure option `--enable-warnings' and `WARNINGFLAGS'rlar2016-03-313-0/+18
| | | | | | | | | | | `WARNINGFLAGS' can be passed when invoking `configure' and when invoking `make' if configure switch `--enable-warnings' was given then default to something useful if we have `GCC' `WARNINGFLAGS' is not used when compiling `stage1flex' to avoid unnecessary clutter
* Fix potential buffer overflow in strncat()Tobias Klauser2016-03-311-1/+1
| | | | | | | | | | | | | | | When using clang/llvm 3.8 to compile flex, the following warning is emitted: main.c:378:27: warning: the value of the size argument in 'strncat' is too large, might lead to a buffer overflow [-Wstrncat-size] strncat(m4_path, m4, sizeof(m4_path)); ^~~~~~~~~~~~~~~ main.c:378:27: note: change the argument to be the free space in the destination buffer minus the terminating null byte strncat(m4_path, m4, sizeof(m4_path)); ^~~~~~~~~~~~~~~ sizeof(m4_path) - strlen(m4_path) - 1 Fix it up by using the solution proposed by the warning message.
* build: simplified dependency tracking so parallel make runs succeedRobert.Larice Robert Larice2016-03-291-35/+14
|
* avoid warning in generated code, with -Cfrlar2016-03-283-12/+7
| | | | warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Wsign-conversion]
* mention v2.6.2; summarize changes since 2.6.1Will Estes2016-03-182-1/+21
|
* doc: corrected example in manual, gh#67Will Estes2016-03-181-1/+1
|
* warning: conversion to 'size_t' from 'int' may change the sign of the result ↵rlar2016-03-183-4/+4
| | | | [-Wsign-conversion]
* warning: conversion to 'long unsigned int' from 'int' may change the sign of ↵rlar2016-03-183-3/+3
| | | | the result [-Wsign-conversion]
* warning: conversion to 'flex_uint32_t' from 'long unsigned int' may alter ↵rlar2016-03-181-4/+4
| | | | | | its value [-Wconversion] struct yytbl_reader, member bread is of type flex_uint32_t
* warning: redundant redeclaration of '...' [-Wredundant-decls]rlar2016-03-184-7/+0
|
* warning: no previous prototype for '...' [-Wmissing-prototypes]rlar2016-03-184-4/+4
|
* warning: unused variable 'fp' [-Wunused-variable]rlar2016-03-181-1/+0
|
* main(), warning: redundant redeclaration of 'main' [-Wredundant-decls]rlar2016-03-181-2/+0
|
* main(), warning: old-style function definition [-Wold-style-definition]rlar2016-03-184-12/+4
|
* main(), warning: old-style function definition [-Wold-style-definition]rlar2016-03-1820-20/+20
|