summaryrefslogtreecommitdiff
path: root/usr.bin/yacc
AgeCommit message (Collapse)Author
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@
2014-01-08Remove CALLOC, MALLOC, FREE and REALLOC macros and just call calloc(),Todd C. Miller
nalloc(), free() and realloc() directly. The macros were casting to the wrong (pre-C89) types and there is no need for them in a C89 world. OK matthew@
2013-10-30Make yystacksize unsigned to avoid a warning about sign comparisionTodd C. Miller
mismatches. Also store the result of "yyssp - yyss" in a long, not an int. We could use ptrdiff_t but don't want to rely on that type being defined for portability on old systems without it. OK deraadt@
2013-08-15add the lalr paper;Jason McIntyre
from jan stary
2012-05-30Replace a loop with a memset, from Michael W Bombardieri. White hereNicholas Marriott
also remove an unnecessary assignment pointed out by millert@. ok millert
2012-04-15* Use NULL instead of 0 for pointersCharles Longeau
* Replace loop with memcpy() in function get_literal() * Style tweak: "for(" -> "for (" From Michael W. Bombardieri ok nicm@ millert@
2012-04-10remove unused variable.Charles Longeau
ok nicm millert
2012-03-03Replace some loops with calloc/memset. From Michael W Bombardieri.Nicholas Marriott
ok millert
2011-09-22Make use of the filename argument to open_error(), pointed out byNicholas Marriott
Michael W Bombardieri. ok millert
2011-04-03Trim some very long unused debugging functions, from Michael WNicholas Marriott
Bombardieri. ok millert
2011-04-01Add calls to some existing but previously unused free functions. AlsoNicholas Marriott
replace a loop with a memset. From Michael W Bombardieri. ok millert
2010-10-18remove references to now removed usd/psd/smm docs;Jason McIntyre