259065 |
07-Dec-2013 |
gjb |
- Copy stable/10 (r259064) to releng/10.0 as part of the 10.0-RELEASE cycle. - Update __FreeBSD_version [1] - Set branch name to -RC1
[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so start releng/10.0 at '100' so the branch is started with a value ending in zero.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
256281 |
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
235723 |
21-May-2012 |
bapt |
Import byacc from invisible island, it brings us lots of compatibilities with bison, keeping full compatibility with our previous yacc implementation.
Also bring the ability to create reentrant parser
This fix bin/140309 [1]
PR: bin/140309 [1] Submitted by: Philippe Pepiot <ksh@philpep.org> [1] Approved by: des (mentor) MFC after: 1 month
|
228992 |
30-Dec-2011 |
uqs |
Spelling fixes for usr.bin/
|
216370 |
11-Dec-2010 |
joel |
Remove the advertising clause from UCB copyrighted files in usr.bin. This is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
Also add $FreeBSD$ to a few files to keep svn happy.
Discussed with: imp, rwatson
|
215027 |
09-Nov-2010 |
obrien |
Fix the build on 64-bit hosts. WARNS=6 fails on them.
|
214990 |
08-Nov-2010 |
obrien |
Back out r214961 for skeleton.c -- it broke the groff build.
|
214964 |
08-Nov-2010 |
obrien |
Add '-y' for bison compatibility.
Obtained from: http://invisible-island.net
|
214963 |
07-Nov-2010 |
obrien |
Inherit WARNS from parent directory.
Submitted by: marius
|
214961 |
07-Nov-2010 |
obrien |
Directly use memory allocation functions and remove needless casts in their usage. Also use associated modern types instead of k&r ones.
|
214959 |
07-Nov-2010 |
obrien |
Change to ANSI-C function definitions.
|
201386 |
02-Jan-2010 |
ed |
Build usr.bin/ with WARNS=6 by default.
Also add some missing $FreeBSD$ to keep svn happy.
|
201289 |
30-Dec-2009 |
ed |
Let both yacc and lex generate code that passes -Wold-style-definition.
Both these tools emit code where several functions have no `void' keyword placed in the arugment list when the function has no arguments.
|
200626 |
17-Dec-2009 |
rse |
remove external reference to not (or at least no longer) existing variable 'myname'
|
181278 |
04-Aug-2008 |
cperciva |
Setting a variable to the same value twice doesn't actually make it more likely to have the right value. Remove superfluous assignments.
Found by: LLVM/Clang Static Checker
|
181269 |
04-Aug-2008 |
cperciva |
Mark functions as __dead2 in order to help the LLVM static checker 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".
|
180602 |
18-Jul-2008 |
delphij |
Indent the else path, reduce diff against OpenBSD.
|
180597 |
18-Jul-2008 |
kevlo |
Fix a longstanding bug, from Otto Moerbeck: 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
|
140420 |
18-Jan-2005 |
ru |
Sort sections.
|
131491 |
02-Jul-2004 |
ru |
Mechanically kill hard sentence breaks.
|
126623 |
05-Mar-2004 |
wes |
Use getopt instead of hand-rolled argument parsing. Usage remains the same, no man page changes required.
PR: bin/48313 Submitted by: Stefan Farfeleder <stefan@fafoe.dyndns.org> Reviewed by: joe@
|
110767 |
12-Feb-2003 |
davidc |
Add __unused to the declaration of yyrcsid in a more portable way.
Discussed with: alfred, bde, jmallett, obrien
|
110550 |
08-Feb-2003 |
davidc |
Backout my previous commit as requested. This solution generates parsers that are non-portable.
|
110482 |
07-Feb-2003 |
davidc |
Add __unused to the declaration of yyrcsid.
|
107269 |
26-Nov-2002 |
ru |
mdoc(7) police: back out unproved changes from previous revision.
Approved by: re
|
105262 |
16-Oct-2002 |
charnier |
Add section number to .Xr directive.
|
102412 |
25-Aug-2002 |
charnier |
Replace various spelling with FALLTHROUGH which is lint()able
|
98116 |
11-Jun-2002 |
robert |
Use the constants from <limits.h> for the sizes of integral C types rather than defining them ourselves.
|
98107 |
10-Jun-2002 |
jmallett |
Note that this appeared at least as early as PWB UNIX.
Use the literal string 'PWB UNIX', as we still have no .At macro for it.
|
97550 |
30-May-2002 |
ru |
mdoc(7) police: tidy up the markup.
|
95324 |
23-Apr-2002 |
obrien |
Restore some of the original variable names, but fix the warnings their renaming addressed by removing the global variants instead.
|
95124 |
20-Apr-2002 |
charnier |
Use `The .Nm utility'
|
94965 |
17-Apr-2002 |
fenner |
mdoc police: use .El to end the list in the ENVIRONMENT section.
|
94333 |
10-Apr-2002 |
obrien |
Quiet uninitialized warnings.
|
94276 |
09-Apr-2002 |
ru |
No longer needed to #ifdef __FBSDID, this is now handled by Makefile.inc1.
|
93856 |
05-Apr-2002 |
obrien |
Revert the "tell the program name in diagnostics". What was I thinking?? warnx() already does this for us.
|
93834 |
04-Apr-2002 |
obrien |
Minor reordering of declarations to reduce diffs to OpenBSD/NetBSD.
|
93832 |
04-Apr-2002 |
obrien |
Allow to compile errorlessly with GCC 3.1.
|
93831 |
04-Apr-2002 |
obrien |
Fix signal race. Use strlen() rather than magic number. Use _PATH_TMP.
Obtained from: OpenBSD rev 1.13 (sig race) & rev 1.9 (strlen)
|
93830 |
04-Apr-2002 |
obrien |
Revert revision 1.3. This is WARNS=4 clean w/o it and it only increases the diffs to Open/NetBSD.
|
93829 |
04-Apr-2002 |
obrien |
Fix style regression introduced in rev 1.11 during a WARNS cleanup.
|
93822 |
04-Apr-2002 |
obrien |
Add STANDARDS, ENVIRONMENT, and TABLES sections.
Obtained from: OpenBSD
|
93820 |
04-Apr-2002 |
obrien |
Minor word smithing.
|
93819 |
04-Apr-2002 |
obrien |
Follow suit with OpenBSD and NetBSD and tell the program name in diagnostics.
|
93817 |
04-Apr-2002 |
obrien |
Follow suit with OpenBSD and NetBSD and tell the program name in diagnostics.
|
92922 |
22-Mar-2002 |
imp |
remove __P
|
90416 |
08-Feb-2002 |
markm |
Remove NO_WERRORs and WARNS=n's. To be revisited after GCC3.
|
87673 |
11-Dec-2001 |
markm |
WARNS=2 fix, but do not set this im Makefile, because this ill be the default for src/usr.bin/
|
87628 |
10-Dec-2001 |
dwmalone |
Style improvements recommended by Bruce as a follow up to some 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.
|
87517 |
08-Dec-2001 |
imp |
Only use __FBSDID if it is defined. This fixes the 4.4-release (but not stable) -> current upgrade path.
Reviewed by: markm
|
87234 |
02-Dec-2001 |
markm |
Use __FBSDID().
|
87171 |
01-Dec-2001 |
markm |
WARNS=2 and s/register//.
Set NO_WERROR=true because there are some flex(1) issues that need to be dealt with.
|
84506 |
05-Oct-2001 |
obrien |
Properly static'ize increase_maxtable().
Submitted by: db@db.net
|
84503 |
05-Oct-2001 |
obrien |
Fix the output so it really does dynamically resize the table.
Submitted by: Diane Bruce <db@db.net>
|
84501 |
05-Oct-2001 |
obrien |
Increase the table size by an order of magnitude. The previous version was too small and YACC core dumped on the during the hybrid-7 build.
Submitted by: Diane Bruce <db@db.net>
|
79535 |
10-Jul-2001 |
ru |
mdoc(7) police: removed HISTORY info from the .Os call.
|
75286 |
07-Apr-2001 |
ru |
beforeinstall -> SCRIPTS.
|
74848 |
27-Mar-2001 |
ru |
MAN[1-9] -> MAN.
|
72676 |
19-Feb-2001 |
peter |
Have yacc use a prototype for yygrowstack(void) on ANSI compilers. This fixes a gcc warning with -Wmissing-prototypes.
|
69204 |
26-Nov-2000 |
kris |
Constify
|
65572 |
07-Sep-2000 |
n_hibma |
Fix breakage introduced in rev.1.7. yystacksize and yysslim are global and should be prefixed by YYPREFIX as well.
Only relevant if -p <yyprefix> is used. Used in cases where multiple parsers are used in executable.
|
56137 |
17-Jan-2000 |
bde |
Fixed breakage of K&R support in rev.1.26. yyparse() was defined as `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.
|
56135 |
17-Jan-2000 |
bde |
Fixed breakage of K&R support in rev.1.8 of output.c: don't generate #elif. Cleaned up rev.1.8 a bit more: generate the #include of <stdio.h> closer to the code that needs it.
|
55781 |
10-Jan-2000 |
kris |
malloc more space for temp file name
Noticed by: marcel
|
55732 |
10-Jan-2000 |
kris |
Feed mkstemp() some more X's to keep it safe.
|
52594 |
28-Oct-1999 |
obrien |
Make "YYPARSE_PARAM" and "YYPARSE_PARAM_TYPE" C++/ANSI-C clean.
|
52569 |
27-Oct-1999 |
obrien |
Allow a user specified parameter to 'yyparse()', in a manner similar to 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>
|
52567 |
27-Oct-1999 |
obrien |
Emit YYERRCODE into y.tab.h to help `lex' report scanning errors back to Yacc.
PR: 13562 Submitted by: W Gerald Hicks <wghicks@bellsouth.net>
|
50477 |
28-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
49285 |
30-Jul-1999 |
obrien |
Revert the past 3 commits to what should have been the rev 1.18 -> rev 1.19 change. (doesn't anybody read commit logs and look at the diffs?)
|
49284 |
30-Jul-1999 |
des |
Hyphens are not legal characters in a C identifier.
Broken by: hoek
|
49277 |
30-Jul-1999 |
hoek |
Even better fix for last commit: rename rcsid[] to _yacc-parser_rcsid[] (one always gets these ideas just after the commit).
|
49274 |
30-Jul-1999 |
hoek |
Don't output rcsid into the output parser. It may have already been 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).
|
49244 |
30-Jul-1999 |
obrien |
Only output `rcsid' (set to our Id string) into the resulting parser file. Don't output `sccsid' (set to an anchient UCB Id string) into the parser file.
Submitted by: bde
|
49214 |
29-Jul-1999 |
obrien |
Follow the directions in the comments and add our Id string to the output file.
|
49212 |
29-Jul-1999 |
obrien |
Check that user supplied the required argument; and if not, show usage().
Obtained from: OpenBSD
|
49211 |
29-Jul-1999 |
obrien |
* Don't assume realloc() can take NULL as first arg. Yacc needs to generate portable code... * Correctly define yyparse() (ie, K&R vs. C++/ANSI-C)
Obtained from: OpenBSD revs 1.5 & 1.10
|
49209 |
29-Jul-1999 |
obrien |
YYRECOVERING(), not YYRECOVERING.
Obtained from: OpenBSD rev 1.8 (approved by Robert Corbett)
|
49208 |
29-Jul-1999 |
obrien |
Add support for Bison's "%expect <int>" directive.
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
|
49042 |
23-Jul-1999 |
hoek |
Regenerate to match changes made in the embedded yacc parser.
|
49041 |
23-Jul-1999 |
hoek |
Regenerate this file. This fixes a y2k bogon. As an unintentional side-effect, 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)
|
48566 |
04-Jul-1999 |
billf |
Clean up some ambiguous nested if/elses.
|
45776 |
18-Apr-1999 |
peter |
Clean up the skeleton code a little. There was a #ifdef to avoid stdlib.h unless on C++. However, we already included it above, so there was no point using the redundant declarations instead.
|
42816 |
18-Jan-1999 |
danny |
"19%02", tm.year -> "%d", tm.year+1900
|
36790 |
09-Jun-1998 |
imp |
Use mkstemp rather than mktemp for yacc's temp files. This change was made 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.
|
33645 |
20-Feb-1998 |
jb |
Add #include <string.h> to get prototypes.
|
28856 |
28-Aug-1997 |
charnier |
Use err(3). Rewrote man page in mdoc format. The user visible change is that report of s/r and r/r conflicts is now printed in two separate lines beginning by `yacc: '.
|
25805 |
14-May-1997 |
steve |
Add back the description of the -o option. Threatened PR by: Tim Vanderhoek :)
|
25266 |
29-Apr-1997 |
steve |
#include <stdlib.h> in the C++ case and declare getenv and realloc 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>
|
25264 |
29-Apr-1997 |
steve |
Keep style consistent.
Submitted by: Bruce Evans <bde@freefall.freebsd.org>
|
25234 |
28-Apr-1997 |
steve |
Fix problems using -Wwrite-strings and -Wcast-qual with yacc generated parsers. Closes PR #2792.
Submitted by: Tim Vanderhoek
|
25189 |
27-Apr-1997 |
jmg |
``appears'' -> ``appeared'' (closes PR#3393, Submitted-by: Josh Gilliam)
add missing Id's other minor clean ups
|
24096 |
22-Mar-1997 |
bde |
Don't generate invalid C++ code (for implicit conversion from `void *' in assignment).
|
23012 |
22-Feb-1997 |
peter |
Revert $FreeBSD$ to $Id$
|
22776 |
16-Feb-1997 |
steve |
Implement the -o commandline switch. This does almost exactly 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
|
21673 |
14-Jan-1997 |
jkh |
Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
|
21623 |
12-Jan-1997 |
steve |
Add RCS id's since these files have left the default branch.
|
21622 |
12-Jan-1997 |
steve |
This doesn't change any functionality, it simple makes yacc(1) compile -Wall clean.
|
21583 |
12-Jan-1997 |
steve |
Revert the '-o output_file_name' option changes.
|
21358 |
06-Jan-1997 |
steve |
Merge Lite2 mods.
|
21353 |
06-Jan-1997 |
steve |
Implement and document a '-o output_file_name' option to allow the generated code to be written to a file other than the default, y.tab.c.
Inspired by: bde and brian@mediacity.com
|
19407 |
04-Nov-1996 |
hsu |
Add YYLEX and YYEMPTY macros to make byacc look more like bison. Obtained from: Cygnus source tree, with permission. Original commit by Jim Wilson, wilson@cygnus.com.
|
18455 |
22-Sep-1996 |
steve |
Fix for PR# 1427, yacc-generated parser generates warnings with -Wall. Tim's work with some minor additions by me.
Submitted by: Tim Vanderhoek <hoek@freenet.hamilton.on.ca>
|
18011 |
03-Sep-1996 |
peter |
Fix -Wall warning in skeleton parser
|
18008 |
03-Sep-1996 |
joerg |
Make the yacc skeleton aware of C++. It was previously broken in the YYDEBUG case (getenv() declared wrong).
|
13344 |
08-Jan-1996 |
peter |
Install yacc with a link as byacc (and the man page). Some gnu autoconf scripts that check for features/fixes in bison also check for byacc and dont find it unless there is a 'byacc' in the path.
|
13320 |
07-Jan-1996 |
phk |
Make all the tables "const" so that they don't clutter our data-segment.
|
9701 |
25-Jul-1995 |
bde |
Change `install' to `${INSTALL}' so that default install flags can be specified in the top level Makefiles.
|
8874 |
30-May-1995 |
rgrimes |
Remove trailing whitespace.
|
2026 |
11-Aug-1994 |
jkh |
Fix man extents from .0 to .1 Submitted by: jkh
|
1591 |
27-May-1994 |
rgrimes |
This commit was generated by cvs2svn to compensate for changes in r1590, which included commits to RCS files with non-trunk default branches.
|