Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | remove __P | imp | 2002-03-22 | 12 | -178/+177 |
| | |||||
* | Remove NO_WERRORs and WARNS=n's. To be revisited after GCC3. | markm | 2002-02-08 | 1 | -1/+0 |
| | |||||
* | WARNS=2 fix, but do not set this im Makefile, because this ill be the | markm | 2001-12-11 | 2 | -2/+1 |
| | | | | default for src/usr.bin/ | ||||
* | Style improvements recommended by Bruce as a follow up to some | dwmalone | 2001-12-10 | 12 | -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 (but | imp | 2001-12-08 | 12 | -0/+24 |
| | | | | | | not stable) -> current upgrade path. Reviewed by: markm | ||||
* | Use __FBSDID(). | markm | 2001-12-02 | 12 | -42/+56 |
| | |||||
* | WARNS=2 and s/register//. | markm | 2001-12-01 | 14 | -416/+420 |
| | | | | | Set NO_WERROR=true because there are some flex(1) issues that need to be dealt with. | ||||
* | Properly static'ize increase_maxtable(). | obrien | 2001-10-05 | 1 | -1/+1 |
| | | | | Submitted by: db@db.net | ||||
* | Fix the output so it really does dynamically resize the table. | obrien | 2001-10-05 | 1 | -14/+44 |
| | | | | Submitted by: Diane Bruce <db@db.net> | ||||
* | Increase the table size by an order of magnitude. | obrien | 2001-10-05 | 1 | -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. | ru | 2001-07-10 | 1 | -1/+1 |
| | |||||
* | beforeinstall -> SCRIPTS. | ru | 2001-04-07 | 1 | -6/+3 |
| | |||||
* | MAN[1-9] -> MAN. | ru | 2001-03-27 | 1 | -1/+1 |
| | |||||
* | Have yacc use a prototype for yygrowstack(void) on ANSI compilers. | peter | 2001-02-19 | 1 | -0/+4 |
| | | | | This fixes a gcc warning with -Wmissing-prototypes. | ||||
* | Constify | kris | 2000-11-26 | 3 | -2/+2 |
| | |||||
* | Fix breakage introduced in rev.1.7. yystacksize and yysslim are global and | n_hibma | 2000-09-07 | 1 | -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. | ||||
* | Fixed breakage of K&R support in rev.1.26. yyparse() was defined as | bde | 2000-01-17 | 1 | -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. | ||||
* | Fixed breakage of K&R support in rev.1.8 of output.c: don't generate | bde | 2000-01-17 | 2 | -2/+5 |
| | | | | | #elif. Cleaned up rev.1.8 a bit more: generate the #include of <stdio.h> closer to the code that needs it. | ||||
* | malloc more space for temp file name | kris | 2000-01-10 | 1 | -1/+1 |
| | | | | Noticed by: marcel | ||||
* | Feed mkstemp() some more X's to keep it safe. | kris | 2000-01-10 | 2 | -5/+5 |
| | |||||
* | Make "YYPARSE_PARAM" and "YYPARSE_PARAM_TYPE" C++/ANSI-C clean. | obrien | 1999-10-28 | 1 | -4/+15 |
| | |||||
* | Allow a user specified parameter to 'yyparse()', in a manner similar to | obrien | 1999-10-27 | 1 | -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> | ||||
* | Emit YYERRCODE into y.tab.h to help `lex' report scanning errors back to | obrien | 1999-10-27 | 1 | -3/+9 |
| | | | | | | | Yacc. PR: 13562 Submitted by: W Gerald Hicks <wghicks@bellsouth.net> | ||||
* | $Id$ -> $FreeBSD$ | peter | 1999-08-28 | 16 | -16/+16 |
| | |||||
* | Revert the past 3 commits to what should have been the rev 1.18 -> rev 1.19 | obrien | 1999-07-30 | 1 | -1/+1 |
| | | | | change. (doesn't anybody read commit logs and look at the diffs?) | ||||
* | Hyphens are not legal characters in a C identifier. | des | 1999-07-30 | 1 | -1/+1 |
| | | | | Broken by: hoek | ||||
* | Even better fix for last commit: rename rcsid[] to _yacc-parser_rcsid[] | hoek | 1999-07-30 | 1 | -2/+2 |
| | | | | (one always gets these ideas just after the commit). | ||||
* | Don't output rcsid into the output parser. It may have already been | hoek | 1999-07-30 | 1 | -2/+2 |
| | | | | | defined in an input file such as src/bin/sh/arith.y. #if 0 it out. I did not add $Id$ back into the comment header (as removed from last commit). | ||||
* | Only output `rcsid' (set to our Id string) into the resulting parser file. | obrien | 1999-07-30 | 1 | -4/+2 |
| | | | | | | Don't output `sccsid' (set to an anchient UCB Id string) into the parser file. Submitted by: bde | ||||
* | Follow the directions in the comments and add our Id string to the output | obrien | 1999-07-29 | 1 | -1/+2 |
| | | | | file. | ||||
* | Check that user supplied the required argument; and if not, show usage(). | obrien | 1999-07-29 | 1 | -0/+5 |
| | | | | Obtained from: OpenBSD | ||||
* | * Don't assume realloc() can take NULL as first arg. Yacc needs to | obrien | 1999-07-29 | 1 | -3/+11 |
| | | | | | | | generate portable code... * Correctly define yyparse() (ie, K&R vs. C++/ANSI-C) Obtained from: OpenBSD revs 1.5 & 1.10 | ||||
* | YYRECOVERING(), not YYRECOVERING. | obrien | 1999-07-29 | 1 | -2/+2 |
| | | | | Obtained from: OpenBSD rev 1.8 (approved by Robert Corbett) | ||||
* | Add support for Bison's "%expect <int>" directive. | obrien | 1999-07-29 | 3 | -7/+65 |
| | | | | | | | I originally coded this myself, and now I realize {Net,Open}BSD had already coded this. I have tossed my version to reduce diffs between the projects. Obtained from: OpenBSD 2.5 | ||||
* | Regenerate to match changes made in the embedded yacc parser. | hoek | 1999-07-23 | 1 | -28/+70 |
| | |||||
* | Regenerate this file. This fixes a y2k bogon. As an unintentional side-effect, | hoek | 1999-07-23 | 1 | -33/+75 |
| | | | | | | | | it also fixes that fact that this file badly needed to be regenerated due to changes in yacc. Not done by: pst (in misc/1380) Almost done by: danny (in ftp.y) | ||||
* | Clean up some ambiguous nested if/elses. | billf | 1999-07-04 | 1 | -2/+3 |
| | |||||
* | Clean up the skeleton code a little. There was a #ifdef to avoid | peter | 1999-04-18 | 1 | -9/+1 |
| | | | | | stdlib.h unless on C++. However, we already included it above, so there was no point using the redundant declarations instead. | ||||
* | "19%02", tm.year -> "%d", tm.year+1900 | danny | 1999-01-18 | 1 | -2/+2 |
| | |||||
* | Use mkstemp rather than mktemp for yacc's temp files. This change was made | imp | 1998-06-09 | 1 | -7/+20 |
| | | | | | to OpenBSD a long time ago and to my tree shortly thereafter. I think theo made this change, or one similar to it, but I could be wrong. | ||||
* | Add #include <string.h> to get prototypes. | jb | 1998-02-20 | 1 | -1/+2 |
| | |||||
* | Use err(3). Rewrote man page in mdoc format. The user visible change is that | charnier | 1997-08-28 | 5 | -171/+148 |
| | | | | | report of s/r and r/r conflicts is now printed in two separate lines beginning by `yacc: '. | ||||
* | Add back the description of the -o option. | steve | 1997-05-14 | 1 | -1/+13 |
| | | | | Threatened PR by: Tim Vanderhoek :) | ||||
* | #include <stdlib.h> in the C++ case and declare getenv and realloc | steve | 1997-04-29 | 1 | -1/+11 |
| | | | | | | | in the C case so that we don't have to depend on stdlib.h being present. Submitted by: Bruce Evans <bde@freefall.freebsd.org> | ||||
* | Keep style consistent. | steve | 1997-04-29 | 1 | -7/+7 |
| | | | | Submitted by: Bruce Evans <bde@freefall.freebsd.org> | ||||
* | Fix problems using -Wwrite-strings and -Wcast-qual with yacc generated | steve | 1997-04-28 | 2 | -16/+8 |
| | | | | | | parsers. Closes PR #2792. Submitted by: Tim Vanderhoek | ||||
* | ``appears'' -> ``appeared'' (closes PR#3393, Submitted-by: Josh Gilliam) | jmg | 1997-04-27 | 1 | -7/+9 |
| | | | | | add missing Id's other minor clean ups | ||||
* | Don't generate invalid C++ code (for implicit conversion from `void *' in | bde | 1997-03-22 | 1 | -3/+3 |
| | | | | assignment). | ||||
* | Revert $FreeBSD$ to $Id$ | peter | 1997-02-22 | 14 | -14/+14 |
| | |||||
* | Implement the -o commandline switch. This does almost exactly | steve | 1997-02-16 | 1 | -12/+61 |
| | | | | | | | what bison does with -o, except it DTRT with respect to naming the .code file when the -r switch is also used. Submitted by: bde |