| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
default for src/usr.bin/
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
not stable) -> current upgrade path.
Reviewed by: markm
|
| |
|
|
|
|
|
| |
Set NO_WERROR=true because there are some flex(1) issues that need
to be dealt with.
|
|
|
|
| |
Submitted by: db@db.net
|
|
|
|
| |
Submitted by: Diane Bruce <db@db.net>
|
|
|
|
|
|
|
| |
The previous version was too small and YACC core dumped on the during the
hybrid-7 build.
Submitted by: Diane Bruce <db@db.net>
|
| |
|
| |
|
| |
|
|
|
|
| |
This fixes a gcc warning with -Wmissing-prototypes.
|
| |
|
|
|
|
|
|
|
| |
should be prefixed by YYPREFIX as well.
Only relevant if -p <yyprefix> is used. Used in cases where multiple parsers
are used in executable.
|
|
|
|
|
|
| |
`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.
|
|
|
|
|
| |
#elif. Cleaned up rev.1.8 a bit more: generate the #include of
<stdio.h> closer to the code that needs it.
|
|
|
|
| |
Noticed by: marcel
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
Yacc.
PR: 13562
Submitted by: W Gerald Hicks <wghicks@bellsouth.net>
|
| |
|
|
|
|
| |
change. (doesn't anybody read commit logs and look at the diffs?)
|
|
|
|
| |
Broken by: hoek
|
|
|
|
| |
(one always gets these ideas just after the commit).
|
|
|
|
|
| |
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).
|
|
|
|
|
|
| |
Don't output `sccsid' (set to an anchient UCB Id string) into the parser file.
Submitted by: bde
|
|
|
|
| |
file.
|
|
|
|
| |
Obtained from: OpenBSD
|
|
|
|
|
|
|
| |
generate portable code...
* Correctly define yyparse() (ie, K&R vs. C++/ANSI-C)
Obtained from: OpenBSD revs 1.5 & 1.10
|
|
|
|
| |
Obtained from: OpenBSD rev 1.8 (approved by Robert Corbett)
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
| |
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)
|
| |
|
|
|
|
|
| |
stdlib.h unless on C++. However, we already included it above, so there
was no point using the redundant declarations instead.
|
| |
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
report of s/r and r/r conflicts is now printed in two separate lines beginning
by `yacc: '.
|
|
|
|
| |
Threatened PR by: Tim Vanderhoek :)
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Submitted by: Bruce Evans <bde@freefall.freebsd.org>
|
|
|
|
|
|
| |
parsers. Closes PR #2792.
Submitted by: Tim Vanderhoek
|
|
|
|
|
| |
add missing Id's
other minor clean ups
|
|
|
|
| |
assignment).
|
| |
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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.
|
| |
|