aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/yacc
Commit message (Collapse)AuthorAgeFilesLines
* Add __unused to the declaration of yyrcsid in a more portable way.Chad David2003-02-121-1/+4
| | | | | | | Discussed with: alfred, bde, jmallett, obrien Notes: svn path=/head/; revision=110767
* Backout my previous commit as requested. This solution generatesChad David2003-02-081-2/+1
| | | | | | | parsers that are non-portable. Notes: svn path=/head/; revision=110550
* Add __unused to the declaration of yyrcsid.Chad David2003-02-071-1/+2
| | | | Notes: svn path=/head/; revision=110482
* mdoc(7) police: back out unproved changes from previous revision.Ruslan Ermilov2002-11-261-1/+1
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107269
* Add section number to .Xr directive.Philippe Charnier2002-10-161-6/+6
| | | | Notes: svn path=/head/; revision=105262
* Replace various spelling with FALLTHROUGH which is lint()ablePhilippe Charnier2002-08-251-2/+2
| | | | Notes: svn path=/head/; revision=102412
* Use the constants from <limits.h> for the sizes of integral C typesRobert Drehmel2002-06-115-12/+10
| | | | | | | rather than defining them ourselves. Notes: svn path=/head/; revision=98116
* Note that this appeared at least as early as PWB UNIX.Juli Mallett2002-06-101-0/+4
| | | | | | | Use the literal string 'PWB UNIX', as we still have no .At macro for it. Notes: svn path=/head/; revision=98107
* mdoc(7) police: tidy up the markup.Ruslan Ermilov2002-05-301-13/+7
| | | | Notes: svn path=/head/; revision=97550
* Restore some of the original variable names, but fix the warnings theirDavid E. O'Brien2002-04-231-21/+19
| | | | | | | renaming addressed by removing the global variants instead. Notes: svn path=/head/; revision=95324
* Use `The .Nm utility'Philippe Charnier2002-04-201-4/+6
| | | | Notes: svn path=/head/; revision=95124
* mdoc police: use .El to end the list in the ENVIRONMENT section.Bill Fenner2002-04-171-0/+1
| | | | Notes: svn path=/head/; revision=94965
* Quiet uninitialized warnings.David E. O'Brien2002-04-102-0/+2
| | | | Notes: svn path=/head/; revision=94333
* No longer needed to #ifdef __FBSDID, this is now handled by Makefile.inc1.Ruslan Ermilov2002-04-0912-24/+0
| | | | Notes: svn path=/head/; revision=94276
* Revert the "tell the program name in diagnostics". What was I thinking??David E. O'Brien2002-04-052-66/+58
| | | | | | | warnx() already does this for us. Notes: svn path=/head/; revision=93856
* Minor reordering of declarations to reduce diffs to OpenBSD/NetBSD.David E. O'Brien2002-04-042-17/+18
| | | | Notes: svn path=/head/; revision=93834
* Allow to compile errorlessly with GCC 3.1.David E. O'Brien2002-04-041-3/+1
| | | | Notes: svn path=/head/; revision=93832
* Fix signal race.David E. O'Brien2002-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) Notes: svn path=/head/; revision=93831
* Revert revision 1.3. This is WARNS=4 clean w/o it and it only increasesDavid E. O'Brien2002-04-041-1/+1
| | | | | | | the diffs to Open/NetBSD. Notes: svn path=/head/; revision=93830
* Fix style regression introduced in rev 1.11 during a WARNS cleanup.David E. O'Brien2002-04-041-1/+2
| | | | Notes: svn path=/head/; revision=93829
* Add STANDARDS, ENVIRONMENT, and TABLES sections.David E. O'Brien2002-04-041-11/+39
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=93822
* Minor word smithing.David E. O'Brien2002-04-041-1/+1
| | | | Notes: svn path=/head/; revision=93820
* Follow suit with OpenBSD and NetBSD and tell the program name in diagnostics.David E. O'Brien2002-04-041-6/+6
| | | | Notes: svn path=/head/; revision=93819
* Follow suit with OpenBSD and NetBSD and tell the program name in diagnostics.David E. O'Brien2002-04-041-53/+59
| | | | Notes: svn path=/head/; revision=93817
* remove __PWarner Losh2002-03-2212-178/+177
| | | | Notes: svn path=/head/; revision=92922
* Remove NO_WERRORs and WARNS=n's. To be revisited after GCC3.Mark Murray2002-02-081-1/+0
| | | | Notes: svn path=/head/; revision=90416
* WARNS=2 fix, but do not set this im Makefile, because this ill be theMark Murray2001-12-112-2/+1
| | | | | | | default for src/usr.bin/ Notes: svn path=/head/; revision=87673
* Style improvements recommended by Bruce as a follow up to someDavid Malone2001-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. Notes: svn path=/head/; revision=87628
* Only use __FBSDID if it is defined. This fixes the 4.4-release (butWarner Losh2001-12-0812-0/+24
| | | | | | | | | not stable) -> current upgrade path. Reviewed by: markm Notes: svn path=/head/; revision=87517
* Use __FBSDID().Mark Murray2001-12-0212-42/+56
| | | | Notes: svn path=/head/; revision=87234
* WARNS=2 and s/register//.Mark Murray2001-12-0114-416/+420
| | | | | | | | Set NO_WERROR=true because there are some flex(1) issues that need to be dealt with. Notes: svn path=/head/; revision=87171
* Properly static'ize increase_maxtable().David E. O'Brien2001-10-051-1/+1
| | | | | | | Submitted by: db@db.net Notes: svn path=/head/; revision=84506
* Fix the output so it really does dynamically resize the table.David E. O'Brien2001-10-051-14/+44
| | | | | | | Submitted by: Diane Bruce <db@db.net> Notes: svn path=/head/; revision=84503
* Increase the table size by an order of magnitude.David E. O'Brien2001-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> Notes: svn path=/head/; revision=84501
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79535
* beforeinstall -> SCRIPTS.Ruslan Ermilov2001-04-071-6/+3
| | | | Notes: svn path=/head/; revision=75286
* MAN[1-9] -> MAN.Ruslan Ermilov2001-03-271-1/+1
| | | | Notes: svn path=/head/; revision=74848
* Have yacc use a prototype for yygrowstack(void) on ANSI compilers.Peter Wemm2001-02-191-0/+4
| | | | | | | This fixes a gcc warning with -Wmissing-prototypes. Notes: svn path=/head/; revision=72676
* ConstifyKris Kennaway2000-11-263-2/+2
| | | | Notes: svn path=/head/; revision=69204
* Fix breakage introduced in rev.1.7. yystacksize and yysslim are global andNick 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. Notes: svn path=/head/; revision=65572
* Fixed breakage of K&R support in rev.1.26. yyparse() was defined asBruce Evans2000-01-171-7/+7
| | | | | | | | | `int yyparse(;) ; { ... }' in K&R mode. Getting rid of the second unwanted semicolon in this made the ifdef tangle more tangled than before. Fixed a backwards comment in the tangle. Notes: svn path=/head/; revision=56137
* Fixed breakage of K&R support in rev.1.8 of output.c: don't generateBruce Evans2000-01-172-2/+5
| | | | | | | | #elif. Cleaned up rev.1.8 a bit more: generate the #include of <stdio.h> closer to the code that needs it. Notes: svn path=/head/; revision=56135
* malloc more space for temp file nameKris Kennaway2000-01-101-1/+1
| | | | | | | Noticed by: marcel Notes: svn path=/head/; revision=55781
* Feed mkstemp() some more X's to keep it safe.Kris Kennaway2000-01-102-5/+5
| | | | Notes: svn path=/head/; revision=55732
* Make "YYPARSE_PARAM" and "YYPARSE_PARAM_TYPE" C++/ANSI-C clean.David E. O'Brien1999-10-281-4/+15
| | | | Notes: svn path=/head/; revision=52594
* Allow a user specified parameter to 'yyparse()', in a manner similar toDavid E. O'Brien1999-10-271-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | that used by bison. The names are consistent with the bison implementation but this one also allows the type of the parameter to be specified. For a desired prototype of: int yyparse __P((struct yyresult *)); and compile like this: yacc -dv grammar.y cc -c -DYYPARSE_PARAM_TYPE="struct yyresult *" \ -DYYPARSE_PARAM="parm" y.tab.c and use like this: ${ #include "usrtypes.h" #include "usrproto.h" }$ %token NUMBER %% goal : NUMBER { parm->value = yylval; } ; If YYPARSE_PARAM_TYPE isn't specified then "void *" is the default type. If YYPARSE_PARAM is not specified then the generated code behaves exactly as traditional byacc. PR: 13562 Submitted by: W Gerald Hicks <wghicks@bellsouth.net> Notes: svn path=/head/; revision=52569
* Emit YYERRCODE into y.tab.h to help `lex' report scanning errors back toDavid E. O'Brien1999-10-271-3/+9
| | | | | | | | | | Yacc. PR: 13562 Submitted by: W Gerald Hicks <wghicks@bellsouth.net> Notes: svn path=/head/; revision=52567
* $Id$ -> $FreeBSD$Peter Wemm1999-08-2816-16/+16
| | | | Notes: svn path=/head/; revision=50477
* Revert the past 3 commits to what should have been the rev 1.18 -> rev 1.19David E. O'Brien1999-07-301-1/+1
| | | | | | | change. (doesn't anybody read commit logs and look at the diffs?) Notes: svn path=/head/; revision=49285
* Hyphens are not legal characters in a C identifier.Dag-Erling Smørgrav1999-07-301-1/+1
| | | | | | | Broken by: hoek Notes: svn path=/head/; revision=49284