aboutsummaryrefslogtreecommitdiff
path: root/contrib/flex
Commit message (Collapse)AuthorAgeFilesLines
* contrib/flex: Drop local __dead2 patchAlex Richardson2021-04-211-7/+1
| | | | | | | | Upstream flex has added a yynoreturn macro, so this diff is no longer needed. Partially reverts r181269. Reviewed By: jkim Differential Revision: https://reviews.freebsd.org/D29679
* Revert "contrib/flex: Drop local __dead2 patch"Alex Richardson2021-04-211-1/+7
| | | | | | | | I missed the review comment to commit the changes separately, will reland in multiple smaller commits. Requested By: jkim This reverts commit bbd421cdf6d8c6102e6fd3979c5bec21ace3c2e3.
* contrib/flex: Drop local __dead2 patchAlex Richardson2021-04-201-7/+1
| | | | | | | | | | Upstream flex has added a yynoreturn, so this diff is no longer needed. Partially reverts r181269. Also regenerate the pre-generated files that are used for bootstrapping. Reviewed By: jkim Differential Revision: https://reviews.freebsd.org/D29679
* lex: Do not let input() return 0 when end-of-file is reachedJung-uk Kim2021-02-171-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Importing flex 2.6.4 has introduced a regression: input() now returns 0 instead of EOF to indicate that the end of input was reached, just like traditional AT&T and POSIX lex. Note the behavior contradicts flex(1). See "INCOMPATIBILITIES WITH LEX AND POSIX" section for information. This incompatibility traces back to the original version and documented in its manual page by the Vern Paxson. Apparently, it has been reported in a few places, e.g., https://github.com/westes/flex/issues/448 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911415 Unfortunately, this also breaks the scanner used by libdtrace and dtrace is unable to resolve some probe argument types as a result. See PR253440 for more information. Note the regression was introduced by the following upstream commit without any explanation or documentation change: https://github.com/westes/flex/commit/f863c9490e6912ffcaeb12965fb3a567a10745ff Now we restore the traditional flex behavior unless lex-compatibility mode is set with "-l" option because I believe the author originally wanted to make it more lex and POSIX compatible. PR: 253440 Reported by: markj
* lex: Use NULL instead of 0 for pointersJung-uk Kim2021-02-111-1/+1
| | | | | Note araujo tried to fix it in r298241 but he only touched generated files for bootstrap. This commit properly fixes the problem.
* [flex] Fix compilation issue under mips-gcc-6.4Adrian Chadd2020-07-141-1/+1
| | | | | | | This was triggering a pointer-losing-constness error. Notes: svn path=/head/; revision=363171
* Remove the unnecessary configure.ac.Jung-uk Kim2020-06-181-184/+0
| | | | Notes: svn path=/head/; revision=362334
* MFV: r362286Jung-uk Kim2020-06-1838-2227/+5091
| | | | | | | Merge flex 2.6.4. Notes: svn path=/head/; revision=362333
* Terminate filter_create_ext() args with NULL, not 0.Brooks Davis2018-08-081-1/+1
| | | | | | | | | | | | | filter_create_ext() is documented to take a NULL terminated set of arguments. 0 is promoted to an int so this would fail on 64-bit systems if the value was not passed in a register. On all currently supported 64-bit architectures it is. Obtained from: CheriBSD Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=337508
* Enable GNU m4 compatibility mode.Jung-uk Kim2013-05-211-1/+1
| | | | Notes: svn path=/head/; revision=250879
* Allow YY_NO_UNPUT to disable unput() for backward compatibility.Jung-uk Kim2013-05-211-0/+5
| | | | Notes: svn path=/head/; revision=250878
* Define yy_current_buffer for backward compatibility.Jung-uk Kim2013-05-211-0/+1
| | | | Notes: svn path=/head/; revision=250877
* Do not use log10(3) to get rid of libm dependency. It is really not useful.Jung-uk Kim2013-05-213-3/+5
| | | | Notes: svn path=/head/; revision=250876
* Reduce compiler warnings.Jung-uk Kim2013-05-219-9/+16
| | | | Notes: svn path=/head/; revision=250875
* Apply still relevant local changes.Jung-uk Kim2013-05-2113-101/+108
| | | | | | | | | | | | r124183: Work around a `label defined but not used' warning. r179549: De-register declarations. r179657: De-register declarations in non-dot-c files. r181269: Mark yy_fatal_error() as __dead2. r228992: Spelling fixes. r240518: Correct double "the the". Notes: svn path=/head/; revision=250874
* Add flex 2.5.37 from flex.sourceforge.net to contrib.Jung-uk Kim2013-05-2137-0/+28800
Notes: svn path=/head/; revision=250873