ru
31b96e8df8
Sort sections.
2005-01-18 13:43:56 +00:00
ru
1fd830331f
Mechanically kill hard sentence breaks.
2004-07-02 22:22:35 +00:00
wes
9d8c709609
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@
2004-03-05 01:52:09 +00:00
davidc
b3d002fa88
Add __unused to the declaration of yyrcsid in a more portable way.
...
Discussed with: alfred, bde, jmallett, obrien
2003-02-12 18:03:55 +00:00
davidc
0d6c1ceaf1
Backout my previous commit as requested. This solution generates
...
parsers that are non-portable.
2003-02-08 17:23:22 +00:00
davidc
15429f03c6
Add __unused to the declaration of yyrcsid.
2003-02-07 03:39:27 +00:00
ru
ff082ea4aa
mdoc(7) police: back out unproved changes from previous revision.
...
Approved by: re
2002-11-26 15:34:18 +00:00
charnier
483c4159ed
Add section number to .Xr directive.
2002-10-16 15:46:43 +00:00
charnier
b6a9884512
Replace various spelling with FALLTHROUGH which is lint()able
2002-08-25 13:23:09 +00:00
robert
080b5734db
Use the constants from <limits.h> for the sizes of integral C types
...
rather than defining them ourselves.
2002-06-11 11:27:20 +00:00
jmallett
110dcc0dbb
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.
2002-06-10 22:59:59 +00:00
ru
b94a191463
mdoc(7) police: tidy up the markup.
2002-05-30 06:56:43 +00:00
obrien
96b8e2229b
Restore some of the original variable names, but fix the warnings their
...
renaming addressed by removing the global variants instead.
2002-04-23 20:30:30 +00:00
charnier
a426ff29b9
Use `The .Nm utility'
2002-04-20 12:18:28 +00:00
fenner
1ce0c49f85
mdoc police: use .El to end the list in the ENVIRONMENT section.
2002-04-17 21:34:47 +00:00
obrien
08b63b3489
Quiet uninitialized warnings.
2002-04-10 03:00:50 +00:00
ru
95e914ce15
No longer needed to #ifdef __FBSDID, this is now handled by Makefile.inc1.
2002-04-09 11:39:05 +00:00
obrien
a8d0189043
Revert the "tell the program name in diagnostics". What was I thinking??
...
warnx() already does this for us.
2002-04-05 03:21:41 +00:00
obrien
f3efa362aa
Minor reordering of declarations to reduce diffs to OpenBSD/NetBSD.
2002-04-04 22:25:04 +00:00
obrien
a46213c87c
Allow to compile errorlessly with GCC 3.1.
2002-04-04 22:15:56 +00:00
obrien
e84390824b
Fix signal race.
...
Use strlen() rather than magic number.
Use _PATH_TMP.
Obtained from: OpenBSD rev 1.13 (sig race) & rev 1.9 (strlen)
2002-04-04 22:15:13 +00:00
obrien
92f60c6c29
Revert revision 1.3. This is WARNS=4 clean w/o it and it only increases
...
the diffs to Open/NetBSD.
2002-04-04 22:10:23 +00:00
obrien
bb1490e620
Fix style regression introduced in rev 1.11 during a WARNS cleanup.
2002-04-04 21:59:10 +00:00
obrien
a2ee33c52f
Add STANDARDS, ENVIRONMENT, and TABLES sections.
...
Obtained from: OpenBSD
2002-04-04 21:31:03 +00:00
obrien
7a96106c7c
Minor word smithing.
2002-04-04 21:24:19 +00:00
obrien
e92e2ab0a6
Follow suit with OpenBSD and NetBSD and tell the program name in diagnostics.
2002-04-04 21:09:06 +00:00
obrien
d21e802597
Follow suit with OpenBSD and NetBSD and tell the program name in diagnostics.
2002-04-04 20:58:27 +00:00
imp
6b8e9d623c
remove __P
2002-03-22 01:42:45 +00:00
markm
fcaa25d991
Remove NO_WERRORs and WARNS=n's. To be revisited after GCC3.
2002-02-08 23:07:37 +00:00
markm
7e7169839f
WARNS=2 fix, but do not set this im Makefile, because this ill be the
...
default for src/usr.bin/
2001-12-11 22:13:02 +00:00
dwmalone
7a4ad1e332
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.
2001-12-10 21:13:08 +00:00
imp
3d4e5333f7
Only use __FBSDID if it is defined. This fixes the 4.4-release (but
...
not stable) -> current upgrade path.
Reviewed by: markm
2001-12-08 02:28:16 +00:00
markm
1f4c08b27b
Use __FBSDID().
2001-12-02 21:24:03 +00:00
markm
ea8f3638f3
WARNS=2 and s/register//.
...
Set NO_WERROR=true because there are some flex(1) issues that need
to be dealt with.
2001-12-01 17:34:42 +00:00
obrien
0571ee49a7
Properly static'ize increase_maxtable().
...
Submitted by: db@db.net
2001-10-05 03:02:04 +00:00
obrien
77918bde9a
Fix the output so it really does dynamically resize the table.
...
Submitted by: Diane Bruce <db@db.net>
2001-10-05 02:09:43 +00:00
obrien
3130809650
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>
2001-10-05 00:46:22 +00:00
ru
ecbb298b07
mdoc(7) police: removed HISTORY info from the .Os call.
2001-07-10 14:16:33 +00:00
ru
2ac87222ba
beforeinstall -> SCRIPTS.
2001-04-07 11:21:35 +00:00
ru
8ec47de9c3
MAN[1-9] -> MAN.
2001-03-27 10:52:19 +00:00
peter
6690e50dc2
Have yacc use a prototype for yygrowstack(void) on ANSI compilers.
...
This fixes a gcc warning with -Wmissing-prototypes.
2001-02-19 01:10:01 +00:00
kris
c275e51041
Constify
2000-11-26 11:07:45 +00:00
n_hibma
f62bdbe95f
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.
2000-09-07 15:01:18 +00:00
bde
b8e4beb151
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.
2000-01-17 02:04:06 +00:00
bde
bfe0406281
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.
2000-01-17 01:51:29 +00:00
kris
e3fff9e0de
malloc more space for temp file name
...
Noticed by: marcel
2000-01-10 20:26:24 +00:00
kris
6daca88507
Feed mkstemp() some more X's to keep it safe.
2000-01-10 08:54:09 +00:00
obrien
2bb47d8a45
Make "YYPARSE_PARAM" and "YYPARSE_PARAM_TYPE" C++/ANSI-C clean.
1999-10-28 15:18:05 +00:00
obrien
57cd2b1ec0
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>
1999-10-27 17:51:37 +00:00
obrien
87996aca56
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>
1999-10-27 17:46:41 +00:00