summaryrefslogtreecommitdiff
path: root/usr.bin/lex
AgeCommit message (Collapse)Author
2024-11-09tweak flex.1 a bit to not mention atoi/atof: they don't add value hereOmar Polo
ok miod@
2024-11-09ANSI-fy lexOmar Polo
while here remove the unused function action_m4_define() and two unused variables: `opt' in scanopt_err() and `num' in filter_fix_linedirs() ok miod@
2023-10-21delete whitespaces that end up in output filesTheo de Raadt
2022-12-26spelling fixes; from paul tagliamonteJason McIntyre
amendments to his diff are noted on tech
2021-11-30Fix indentation of return in yy_try_NUL_trans().Todd C. Miller
M4_YY_NOOP_GUTS_VAR is a no-op in most cases but its indentation remains, leading to double indentation of the return statement. This fixes "misleading indentation" warnings from clang. OK tb@
2021-06-23substantially shorten the usage() messageTheo de Raadt
pieces by jmc, pieces by me
2021-03-08Add some references, most of these were removed when we stopped buildingJonathan Gray
and installing USD/SMM/PSD docs. jmc@ agrees with the direction, ok millert@ on an earlier diff
2020-12-03grammar fixes from Varik "The Genuine Article!!!" Valefor;Jason McIntyre
2020-08-06Wow, the indentation is totally messed up, to the point where compilersTheo de Raadt
complain (actually useful this time) ok millert
2019-10-31declare HAVE_DECL___FUNC__ so flex_die() output can include __func__.miko
ok millert@
2019-09-22Apply a patch from upstream to avoid triggering assert() in sf_pop()miko
when input contains an unbalanced ')' in the rules section. ok millert@
2019-09-16fix lex build to actually get assert under proper conditions.Marc Espie
from Michael Mikonos okay millert@
2017-08-30Remove unused variable; no binary change.Lawrence Teo
From Michael W. Bombardieri, thanks!
2017-08-17combine malloc/memset into calloc. from Michael W. BombardieriTed Unangst
2017-08-17delete some not used code. from Michael W. BombardieriTed Unangst
2017-05-31we can just use void for functions that always return 0.Ted Unangst
from Michael W. Bombardieri
2017-05-02Update yy_buf_size after yyrealloc(). The fix has been mergedTodd C. Miller
upstream as well.
2017-04-30Move FlexLexer.h from /usr/include/g++ to /usr/include. It is notTodd C. Miller
a g++-specific header and this matches most other systems. Needed to use flex++ with clang. OK espie@ kettenis@
2017-04-12isblank() is ANSI C since C99, no need to provide a replacement.Todd C. Miller
OK deraadt@
2017-01-21Nuke whitespace foolish enough to expose itself during the greatKenneth R Westerback
"warning:" rectification.
2016-12-25Add some {}'s to eliminate "ambiguous else" warnings from gcc.Kenneth R Westerback
ok tb@ millert@
2016-12-18Nuke more unused variables.Kenneth R Westerback
ok millert@
2016-03-30for some time now mandoc has not required MLINKS to functionJason McIntyre
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
2015-12-11Remove a few NULL-checks before free(). I've already removed thesemmcc
upstream.
2015-11-22remove the init files that we don't build. if they are ever needed forTed Unangst
bootstrapping, they are available in the attic, but they clutter up the directory.
2015-11-22return to size_t typedef for yy_size_t.Ted Unangst
kettenis found and fixed the bug in the ld lexer.
2015-11-21change type of yy_size_t back to int for now. we have some prebuiltTed Unangst
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
2015-11-20switch back to yaccing parse.y, it seems to work.Ted Unangst
2015-11-20ansiTed Unangst
2015-11-20Always use the system m4; OK tedu@Todd C. Miller
2015-11-20Back out rev 1.22 which somehow had unreported merge conflicts.Todd C. Miller
2015-11-20Always use the system m4.Todd C. Miller
2015-11-20Cast two ctype args to u_char.mmcc
2015-11-19burn down all the gratutious alloca() compatability that autofuck injectedTed Unangst
to ensure nobody uses alloca by accident.
2015-11-19make sure parse.c depends on initparse.cTed Unangst
2015-11-19remove the LGPL gettext.h since we aren't using it anyway.Ted Unangst
spotted by nicm
2015-11-19split out some variable initialization to be easierTed Unangst
2015-11-19Replace Char (defined as unsigned char) with u_char.mmcc
ok tedu@
2015-11-19it is not necessary to cast the result of malloc/calloc.Ted Unangst
also replace some 0s with the modern concept of NULL
2015-11-19flex_alloc and flex_free are nothing more than malloc and free, so replaceTed Unangst
them with the real functions so as to not trick people into thinking they are special
2015-11-19it should be safe to assume the presence of memset these days instead ofTed Unangst
implementing a local version.
2015-11-19remove VMS and MSDOS supportTed Unangst
2015-11-19mechanical knfTed Unangst
2015-11-19orbital strike from moonbase knfTed Unangst
2015-11-19typically indentation decreases after a block is closedTed Unangst
2015-11-19repair some of the preposterously damaged indentationTed Unangst
2015-11-19we don't keep vim modelines in filesTed Unangst
2015-11-19add back flex++.1 link noticed by sthenTed Unangst
2015-11-19Update flex from ancient 2.5.4 to the recent 2.5.39.Ted Unangst
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.
2015-10-15Cast arguments of ctype functions to Char, a lexism defined as unsignedmmcc
char. Part of a larger attempt to audit ctype function argument types with Coccinelle. ok deraadt@