summaryrefslogtreecommitdiffstats
path: root/usr.bin/yacc
Commit message (Collapse)AuthorAgeFilesLines
* Build usr.bin/ with WARNS=6 by default.ed2010-01-021-0/+2
| | | | Also add some missing $FreeBSD$ to keep svn happy.
* Let both yacc and lex generate code that passes -Wold-style-definition.ed2009-12-301-0/+4
| | | | | Both these tools emit code where several functions have no `void' keyword placed in the arugment list when the function has no arguments.
* remove external reference to not (or at least no longer) existing variable ↵rse2009-12-171-1/+0
| | | | 'myname'
* Setting a variable to the same value twice doesn't actually make itcperciva2008-08-041-2/+0
| | | | | | more likely to have the right value. Remove superfluous assignments. Found by: LLVM/Clang Static Checker
* Mark functions as __dead2 in order to help the LLVM static checkercperciva2008-08-041-24/+24
| | | | | | | understand which code paths aren't possible. This commit eliminates 117 false positive bug reports of the form "allocate memory; error out if pointer is NULL; use pointer".
* Indent the else path, reduce diff against OpenBSD.delphij2008-07-181-1/+1
|
* Fix a longstanding bug, from Otto Moerbeck:kevlo2008-07-181-1/+5
| | | | | | | | | if we're reducing a rule that has an empty right hand side and the yacc stackpointer is pointing at the very end of the allocated stack, we end up accessing the stack out of bounds by the implicit $$ = $1 action Obtained from: OpenBSD
* Sort sections.ru2005-01-181-4/+4
|
* Mechanically kill hard sentence breaks.ru2004-07-021-1/+2
|
* Use getopt instead of hand-rolled argument parsing. Usage remainswes2004-03-051-72/+15
| | | | | | | | the same, no man page changes required. PR: bin/48313 Submitted by: Stefan Farfeleder <stefan@fafoe.dyndns.org> Reviewed by: joe@
* Add __unused to the declaration of yyrcsid in a more portable way.davidc2003-02-121-1/+4
| | | | Discussed with: alfred, bde, jmallett, obrien
* Backout my previous commit as requested. This solution generatesdavidc2003-02-081-2/+1
| | | | parsers that are non-portable.
* Add __unused to the declaration of yyrcsid.davidc2003-02-071-1/+2
|
* mdoc(7) police: back out unproved changes from previous revision.ru2002-11-261-1/+1
| | | | Approved by: re
* Add section number to .Xr directive.charnier2002-10-161-6/+6
|
* Replace various spelling with FALLTHROUGH which is lint()ablecharnier2002-08-251-2/+2
|
* Use the constants from <limits.h> for the sizes of integral C typesrobert2002-06-115-12/+10
| | | | rather than defining them ourselves.
* Note that this appeared at least as early as PWB UNIX.jmallett2002-06-101-0/+4
| | | | Use the literal string 'PWB UNIX', as we still have no .At macro for it.
* mdoc(7) police: tidy up the markup.ru2002-05-301-13/+7
|
* Restore some of the original variable names, but fix the warnings theirobrien2002-04-231-21/+19
| | | | renaming addressed by removing the global variants instead.
* Use `The .Nm utility'charnier2002-04-201-4/+6
|
* mdoc police: use .El to end the list in the ENVIRONMENT section.fenner2002-04-171-0/+1
|
* Quiet uninitialized warnings.obrien2002-04-102-0/+2
|
* No longer needed to #ifdef __FBSDID, this is now handled by Makefile.inc1.ru2002-04-0912-24/+0
|
* Revert the "tell the program name in diagnostics". What was I thinking??obrien2002-04-052-66/+58
| | | | warnx() already does this for us.
* Minor reordering of declarations to reduce diffs to OpenBSD/NetBSD.obrien2002-04-042-17/+18
|
* Allow to compile errorlessly with GCC 3.1.obrien2002-04-041-3/+1
|
* Fix signal race.obrien2002-04-041-4/+8
| | | | | | | Use strlen() rather than magic number. Use _PATH_TMP. Obtained from: OpenBSD rev 1.13 (sig race) & rev 1.9 (strlen)
* Revert revision 1.3. This is WARNS=4 clean w/o it and it only increasesobrien2002-04-041-1/+1
| | | | the diffs to Open/NetBSD.
* Fix style regression introduced in rev 1.11 during a WARNS cleanup.obrien2002-04-041-1/+2
|
* Add STANDARDS, ENVIRONMENT, and TABLES sections.obrien2002-04-041-11/+39
| | | | Obtained from: OpenBSD
* Minor word smithing.obrien2002-04-041-1/+1
|
* Follow suit with OpenBSD and NetBSD and tell the program name in diagnostics.obrien2002-04-041-6/+6
|
* Follow suit with OpenBSD and NetBSD and tell the program name in diagnostics.obrien2002-04-041-53/+59
|
* remove __Pimp2002-03-2212-178/+177
|
* Remove NO_WERRORs and WARNS=n's. To be revisited after GCC3.markm2002-02-081-1/+0
|
* WARNS=2 fix, but do not set this im Makefile, because this ill be themarkm2001-12-112-2/+1
| | | | default for src/usr.bin/
* Style improvements recommended by Bruce as a follow up to somedwmalone2001-12-1012-60/+72
| | | | | | | | of the recent WARNS commits. The idea is: 1) FreeBSD id tags should follow vendor tags. 2) Vendor tags should not be compiled (though copyrights probably should). 3) There should be no blank line between including cdefs and __FBSDIF.
* Only use __FBSDID if it is defined. This fixes the 4.4-release (butimp2001-12-0812-0/+24
| | | | | | not stable) -> current upgrade path. Reviewed by: markm
* Use __FBSDID().markm2001-12-0212-42/+56
|
* WARNS=2 and s/register//.markm2001-12-0114-416/+420
| | | | | Set NO_WERROR=true because there are some flex(1) issues that need to be dealt with.
* Properly static'ize increase_maxtable().obrien2001-10-051-1/+1
| | | | Submitted by: db@db.net
* Fix the output so it really does dynamically resize the table.obrien2001-10-051-14/+44
| | | | Submitted by: Diane Bruce <db@db.net>
* Increase the table size by an order of magnitude.obrien2001-10-051-1/+1
| | | | | | | The previous version was too small and YACC core dumped on the during the hybrid-7 build. Submitted by: Diane Bruce <db@db.net>
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* beforeinstall -> SCRIPTS.ru2001-04-071-6/+3
|
* MAN[1-9] -> MAN.ru2001-03-271-1/+1
|
* Have yacc use a prototype for yygrowstack(void) on ANSI compilers.peter2001-02-191-0/+4
| | | | This fixes a gcc warning with -Wmissing-prototypes.
* Constifykris2000-11-263-2/+2
|
* Fix breakage introduced in rev.1.7. yystacksize and yysslim are global andn_hibma2000-09-071-0/+4
| | | | | | | should be prefixed by YYPREFIX as well. Only relevant if -p <yyprefix> is used. Used in cases where multiple parsers are used in executable.
OpenPOWER on IntegriCloud