summaryrefslogtreecommitdiff
path: root/usr.bin/lex
AgeCommit message (Collapse)Author
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@
2015-10-10Some of these large so easy to contain, with "stdio rpath".Theo de Raadt
ok doug
2015-09-21remove an unsightly paragraph break;Jason McIntyre
2015-09-21Mention lex and flex++, from Rob Pierce. ok jmcNicholas Marriott
2015-09-07add missing file system path (.Pa) macros.Igor Sobrado
2015-03-13remove the first comma from constructs like ", and," and ", or,": you can useJason McIntyre
"and" and "or" to join sentence clauses, and you can use commas, but both hinders reading;
2015-02-17Mark up email addresses semantically with Mt.Anthony J. Bentley
ok schwarze@
2015-02-15Use "In" to mark up include files, instead of wrongly wrapping with Aq.Anthony J. Bentley
Aq is not the same as <> in non-ASCII situations, so this caused incorrect output in some places. And it provided no semantics besides. ok schwarze@
2014-03-23put a pointer to the "incompatibilities with lex and posix" into STANDARDSJason McIntyre
(big thanks to whoever took the trouble to write that one!), and while there fix a couple of typos in said section;
2014-03-16lint is dead (long live the lint!), so stop using it as a cpp conditionalPhilip Guenther
(namespace pollution!) or talking about its opinion on code. ok krw@
2014-02-14consistent usage of .At and .Nm;Ingo Schwarze
based on a patch from Jan Stary <hans at stare dot cz>, tweaked by me
2014-02-12for a display containing a tab character, use literal context;Ingo Schwarze
issue noticed by Jan Stary <hans at stare dot cz>
2013-11-04Use proper ANSI function definitions for functions that take noTodd C. Miller
arguments. Avoids warnings when -Wold-style-definition is used. OK deraadt@
2013-10-27If a constant string needs a name, use a static const array instead of aPhilip Guenther
pointer or non-const array, as that minimizes the symbols, maximizes the placement into read-only memory, and avoids warnings from gcc -Wformat=2 when they're used as format strings. ok deraadt@
2013-07-16use .Mt for email addresses; from Jan Stary <hans at stare dot cz>; ok jmc@Ingo Schwarze
2013-06-18make sure the target directory gets created in the includes targetRobert Nagy
and add a trailing / as well to avoid problems
2013-01-18command-line (adj.) -> command line (n.);Jason McIntyre
2012-12-05Remove excessive sys/cdefs.h inclusionTheo de Raadt
ok guenther millert kettenis
2012-04-08no more lint;Jason McIntyre
2011-06-08do not document the -c flag: it was added for posix compliance,Jason McIntyre
but posix deprecated this option in issue 6 (code remains though); from Daniel Dickman ok otto millert
2010-10-18remove references to now removed usd/psd/smm docs;Jason McIntyre