summaryrefslogtreecommitdiff
path: root/usr.bin/yacc
AgeCommit message (Collapse)Author
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
2021-02-03remove ancient malloc ? realloc dance. always use realloc.Theo de Raadt
ok millert tb
2020-12-19rename filenames ending in a periodDaniel Dickman
While windows may technically allow filenames to end in a period, the recommendation is to avoid this as the shell does not support such files. As of git 2.25, the behaviour was apparently changed to not allow files with names ending in a period to be checked out on windows. A second problem is upper/lower case conflicts for filenames. To allow the source tree to be checked out on windows we follow FreeBSD and rename a few files: ss.. -> ss_ ssA -> ss10 ssB -> ss11 (FreeBSD svn revision 210167 from 2010) as usual, this issue was extensively researched by jsg@
2020-09-03Switch use of '\0' to NULLTheo Buehler
Fix a clang 10 warning about comparing a pointer to a null character. The condition "if ((s = symnam[i]) == '\0')" used to be "if (s = symnam[i])" and the incorrect spelling of NULL was chosen in a -Wall cleanup 19 years ago (-r 1.6). Upstream uses a naked 0 instead of NULL, so does NetBSD. ok martijn millert
2020-05-24annotate I/O errors with the corresponding messageMarc Espie
(a full switch to err(3) would involve significant message changes) okay millert@
2020-05-24done() is no longer neededMarc Espie
okay millert@
2020-05-23those tempfiles no longer have namesMarc Espie
okay millert@
2020-05-23use rewind on tempfiles, so that we don't need to name themMarc Espie
switch to tmpfile() at the suggestion of millert@, so that the tempname creation code and the signal handlers/cleanup code can go away entirely. Small prototype tweak by Todd as well. okay millert@
2020-05-22extract the identical code that creates temp files into its own functionMarc Espie
okay millert@
2020-05-21separate cleanup from exit/signal logicMarc Espie
okay deraadt@
2020-05-21test FILE* against NULL and not 0Marc Espie
okay deraadt@
2017-05-25fix a variety of warnings. from Brian CallahanTed Unangst
2016-09-21Fix bad indentation. One already existed in 1.20, one introduced in 1.21;Otto Moerbeek
ok tedu@
2016-07-27it should not be necessary for yacc to use TMPDIR, /tmp is good enough.Ted Unangst
ok beck deraadt guenther
2016-03-22merge three obviously redundant adjacent if statementsmmcc
from Michael W. Bombardieri
2015-12-31Declare yyparse() so the generated code is safe withPhilip Guenther
-Werror-implicit-function-declaration ok millert@
2015-12-30Back out of 1.36 and 1.37, which made simplifications to allocationmmcc
logic based on C89. It broke a few C++ ports. Prompted by kettenis@
2015-12-30put back casts for realloc because c++ needs them. reported by naddyTed Unangst
2015-12-28realloc and free's behavior when passed NULL is defined by C89, so wemmcc
can safely assume it. ok millert@. Also discussed with deraadt@, sthen@, and espie@.
2015-12-11Remove NULL-checks before free().mmcc
2015-10-10fairly obvious pledges.Theo de Raadt
ok doug
2015-09-09The .Nd macro is intended to provide "a one line description", so avoidIngo Schwarze
multiple lines of input, in particular, don't use macros below .Nd; such bad style can confuse various apropos(1) tools. All deleted macros reappear later in the text, anyway, except for .Tn, which i'm deleting outright. Found while scanning the tree for good and bad practices in preparation for my EuroBSD2015 mdoc(7) tutorial on Oct 1 in Stockholm.
2014-12-05Rework the number handling to avoid an integer overflow/crashJonathan Gray
found with the afl fuzzer. This is tedu's simplified version of an earlier patch from me. ok tedu@
2014-12-02Remove dead stores found by llvm checker and mark functions thatTodd C. Miller
call done() as __dead to avoid false positives. OK otto@
2014-12-02Fix lowzero running out of bounds in pack_vector(). Problem seen byOtto Moerbeek
Andrey Skvortsov; ok millert@ deraadt@
2014-11-15Reduce instances of `` '' in manuals.Anthony J. Bentley
troff displays these as typographic quotes, but nroff implementations almost always print them literally, which rarely has the intended effect with modern fonts, even in stock xterm. These uses of `` '' can be replaced either with more semantic alternatives or with Dq, which prints typographic quotes in a UTF-8 locale (but will automatically fall back to `` '' in an ASCII locale). improvements and ok schwarze@
2014-10-09use reallocarray(). Leave the malloc/realloc cases in the skeletonTheo de Raadt
untouched because they have their own mult int overflow checks, and placing reallocarray there causes some incredible fireworks in other software. Discussed with millert.
2014-06-04TMPDIR is an extension;Jason McIntyre
2014-05-17remove unused variableCharles Longeau
ok tedu@
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-03-13collapse variable declarationsTed Unangst
2014-03-13last bits of indentation and styleTed Unangst
2014-03-13indentation styleTed Unangst
2014-03-13indent, add a touch of styleTed Unangst
2014-03-08reindentTed Unangst
2014-03-08reindentTed Unangst
2014-03-07a few other tweaks it's easier to see in the light of dayTed Unangst
2014-03-07drag this code into modern style. ok zhukTed Unangst
2014-02-21drop support for pre-standard C, it's time to move on. ok deraadtTed Unangst
2014-02-14clean up macro usage in the HISTORY section;Ingo Schwarze
triggered by a smaller patch from Jan Stary <hans at stare dot cz>
2014-01-28bit more info for the toplas article;Jason McIntyre
From: Jan Stary tweaked a bit by myself
2014-01-20Obvious .Xr fixes, found while testing mandocdb(8).Ingo Schwarze
2014-01-13Callers of get_state() and sole_reduction() always store the resultTodd C. Miller
as a short so make the return value match the type of the value we are returning. From Michael W. Bombardieri
2014-01-10Use strtoul() to do octal and hex character conversion instead ofTodd C. Miller
custom code.
2014-01-10revert previous; height is never changed, but top is changed.Stuart Henderson
ok espie@ who saw intermittent sigbus in ports/math/hc with this.
2014-01-09Remove useless variable "height" in function traverse(). It isTodd C. Miller
assigned the value of "top" but never changed so just use top instead. From Michael W. Bombardieri
2014-01-08We still need to cast the resulting pointer in NEW and NEW2 as itTodd C. Miller
is used in pointer arithmetic. Otherwise we do arithmetic on void * and corrupt the heap.
2014-01-08Add casts to unsigned char for ctype functions and other placesTodd C. Miller
where a char is stored in an int. Joint work with and OK deraadt@
2014-01-08Use calloc() instead of malloc() + memset. Based on a diff fromTodd C. Miller
Michael W. Bombardieri. OK deraadt@
2014-01-08Make allocate() take size_t and return void *. This lets us dropTodd C. Miller
some more useless casts. Also add missing arguments to a couple of prototypes while here. OK matthew@ pelikan@