summaryrefslogtreecommitdiffstats
path: root/usr.bin/lex (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add some references, most of these were removed when we stopped buildingjsg2021-03-081-2/+11
| | | | | | and installing USD/SMM/PSD docs. jmc@ agrees with the direction, ok millert@ on an earlier diff
* grammar fixes from Varik "The Genuine Article!!!" Valefor;jmc2020-12-031-3/+3
|
* Wow, the indentation is totally messed up, to the point where compilersderaadt2020-08-061-8/+11
| | | | | complain (actually useful this time) ok millert
* declare HAVE_DECL___FUNC__ so flex_die() output can include __func__.miko2019-10-311-1/+3
| | | | ok millert@
* Apply a patch from upstream to avoid triggering assert() in sf_pop()miko2019-09-221-2/+8
| | | | | | when input contains an unbalanced ')' in the rules section. ok millert@
* fix lex build to actually get assert under proper conditions.espie2019-09-161-1/+3
| | | | | | from Michael Mikonos okay millert@
* Remove unused variable; no binary change.lteo2017-08-301-4/+2
| | | | From Michael W. Bombardieri, thanks!
* combine malloc/memset into calloc. from Michael W. Bombardieritedu2017-08-171-7/+5
|
* delete some not used code. from Michael W. Bombardieritedu2017-08-171-45/+1
|
* we can just use void for functions that always return 0.tedu2017-05-312-7/+5
| | | | from Michael W. Bombardieri
* Update yy_buf_size after yyrealloc(). The fix has been mergedmillert2017-05-021-1/+3
| | | | upstream as well.
* Move FlexLexer.h from /usr/include/g++ to /usr/include. It is notmillert2017-04-301-6/+2
| | | | | a g++-specific header and this matches most other systems. Needed to use flex++ with clang. OK espie@ kettenis@
* isblank() is ANSI C since C99, no need to provide a replacement.millert2017-04-121-6/+3
| | | | OK deraadt@
* Nuke whitespace foolish enough to expose itself during the greatkrw2017-01-211-10/+10
| | | | "warning:" rectification.
* Add some {}'s to eliminate "ambiguous else" warnings from gcc.krw2016-12-251-2/+3
| | | | ok tb@ millert@
* Nuke more unused variables.krw2016-12-181-5/+1
| | | | ok millert@
* for some time now mandoc has not required MLINKS to functionjmc2016-03-301-2/+1
| | | | | | | | | | | | correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
* Remove a few NULL-checks before free(). I've already removed thesemmcc2015-12-113-9/+6
| | | | upstream.
* remove the init files that we don't build. if they are ever needed fortedu2015-11-224-12259/+0
| | | | | bootstrapping, they are available in the attic, but they clutter up the directory.
* return to size_t typedef for yy_size_t.tedu2015-11-221-2/+2
| | | | kettenis found and fixed the bug in the ld lexer.
* change type of yy_size_t back to int for now. we have some prebuilttedu2015-11-211-2/+2
| | | | | | | lexers under gnu/ that define it this way, leading to badness. fuller assessment and repairs probably forthmcoming. discovered by deraadt on BE64 architectures (sparc64). ok deraadt
* switch back to yaccing parse.y, it seems to work.tedu2015-11-201-6/+4
|
* ansitedu2015-11-202-53/+43
|
* Always use the system m4; OK tedu@millert2015-11-201-5/+2
|
* Back out rev 1.22 which somehow had unreported merge conflicts.millert2015-11-201-21/+1
|
* Always use the system m4.millert2015-11-201-1/+21
|
* Cast two ctype args to u_char.mmcc2015-11-201-2/+2
|
* burn down all the gratutious alloca() compatability that autofuck injectedtedu2015-11-193-61/+3
| | | | to ensure nobody uses alloca by accident.
* make sure parse.c depends on initparse.ctedu2015-11-191-2/+2
|
* remove the LGPL gettext.h since we aren't using it anyway.tedu2015-11-192-71/+1
| | | | spotted by nicm
* split out some variable initialization to be easiertedu2015-11-191-9/+13
|
* Replace Char (defined as unsigned char) with u_char.mmcc2015-11-199-63/+62
| | | | ok tedu@
* it is not necessary to cast the result of malloc/calloc.tedu2015-11-193-69/+51
| | | | also replace some 0s with the modern concept of NULL
* flex_alloc and flex_free are nothing more than malloc and free, so replacetedu2015-11-1912-97/+48
| | | | | them with the real functions so as to not trick people into thinking they are special
* it should be safe to assume the presence of memset these days instead oftedu2015-11-193-31/+5
| | | | implementing a local version.
* remove VMS and MSDOS supporttedu2015-11-192-38/+2
|
* mechanical knftedu2015-11-192-294/+330
|
* orbital strike from moonbase knftedu2015-11-198-2889/+2900
|
* typically indentation decreases after a block is closedtedu2015-11-191-20/+18
|
* repair some of the preposterously damaged indentationtedu2015-11-191-26/+17
|
* we don't keep vim modelines in filestedu2015-11-1912-35/+12
|
* add back flex++.1 link noticed by sthentedu2015-11-191-2/+2
|
* Update flex from ancient 2.5.4 to the recent 2.5.39.tedu2015-11-1945-7474/+33775
| | | | | | | | | | | | | | | | | | | | This work was all done by Serguey Parkhomovsky. Thanks. Some changes from upstream: * Removed autotools cruft/localization/texinfo manual/etc * Kept the old manpage, as the new manpage is content-free * Used safe string handling functions and fixed several compiler warnings * pledge(2). Flex 2.5.39 now forks/execs its filter chains and needs proc exec in addition to what was previously pledged * Removed register keyword from all variable declarations * renamed parse.c, parse.h, scan.c, skel.c with init prefix so compiling flex outside of obj by accident wouldn't clobber the bootstrap files * Minor fixes (spelling, accessing buf[strlen(buf) - 1] for zero-length strings in initscan.c/scan.l, etc) that were already in our tree This is a huge change, so it's going in the tree code bomb style. I'm not excited about the growth in complexity (like now running m4 to _post_ process lexers) but hopefully this will be a one time update and we will now take "ownership" of the code.
* Cast arguments of ctype functions to Char, a lexism defined as unsignedmmcc2015-10-151-5/+5
| | | | | | | | | char. Part of a larger attempt to audit ctype function argument types with Coccinelle. ok deraadt@
* Some of these large so easy to contain, with "stdio rpath".deraadt2015-10-102-4/+12
| | | | ok doug
* remove an unsightly paragraph break;jmc2015-09-211-2/+1
|
* Mention lex and flex++, from Rob Pierce. ok jmcnicm2015-09-211-3/+14
|
* add missing file system path (.Pa) macros.sobrado2015-09-071-7/+7
|
* remove the first comma from constructs like ", and," and ", or,": you can usejmc2015-03-131-4/+4
| | | | | "and" and "or" to join sentence clauses, and you can use commas, but both hinders reading;
* Mark up email addresses semantically with Mt.bentley2015-02-171-4/+7
| | | | ok schwarze@