Commit Graph

2297 Commits

Author SHA1 Message Date
Jesse Thilo
c9c4ffaa5d Don't define PACKAGE here, since config.h defines it. 1999-01-08 21:17:26 +00:00
Jesse Thilo
74a53b4b48 Update copyright date. 1998-12-30 06:54:16 +00:00
Jesse Thilo
a889d44ce2 Ditch sprintf to statically-sized buffers in fatal/warn functions in
favor of output directly to stderr (avoids buffer overruns).
1998-12-30 06:29:42 +00:00
Jesse Thilo
e6011337c3 Some checks for premature EOF. 1998-12-30 06:07:25 +00:00
Jesse Thilo
d2729d44ab Use prototypes if the compiler understands them. 1998-12-30 05:27:11 +00:00
Jesse Thilo
bd088c911c Honor TMPDIR on Unix hosts.
Use prototypes if the compiler understands them.
1998-12-30 05:22:02 +00:00
Jesse Thilo
118fb2053c Fix a couple of buffer overrun bugs.
Use prototypes if the compiler understands them.
1998-12-30 05:21:02 +00:00
Jesse Thilo
7bb4d91420 Include unistd.h and ctype.h.
Use #ifdef instead of #if for NLS symbols.
1998-12-30 05:19:09 +00:00
Jesse Thilo
bd2a2393ed Use VERSION symbol from automake for version number. 1998-12-29 21:54:26 +00:00
Jesse Thilo
c55c697eb1 Add non-RCS files from /gd/gnu/bison. 1998-11-26 00:44:18 +00:00
Jesse Thilo
6f82addcd5 Build version.c automatically. 1998-11-25 23:17:35 +00:00
Jesse Thilo
5b2e3c8982 Fix token numbering (used to start at 258, not 257). 1998-11-25 22:13:09 +00:00
Jesse Thilo
d968a24b6e Include config.h. 1998-11-25 22:12:45 +00:00
Jesse Thilo
5c9ba6311a Update bug report address. 1998-11-25 22:09:19 +00:00
Jesse Thilo
11443f4acf Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org. 1998-11-25 21:40:21 +00:00
Richard M. Stallman
e0672a6170 (openfiles): [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
find a temporary directory, if possible.  Do not unlink files while
they are open.
1998-01-05 00:25:39 +00:00
Richard M. Stallman
aba5ca6dea (stack_offset;): Change some warni to warns. 1997-08-25 19:40:12 +00:00
Richard M. Stallman
b0180c64a5 (literalchar): Use warns, not warni. 1997-08-25 19:38:57 +00:00
Richard M. Stallman
7d369561eb Add a Bison version comment. 1997-06-28 19:41:24 +00:00
Richard M. Stallman
319ce53328 (fatal, warn, berror): Use program_name. 1997-06-28 19:31:35 +00:00
Richard M. Stallman
3d05a5de82 (fatal, warn, berror): Make error messages standard.
(toomany): Improve error message text.
1997-06-18 17:09:27 +00:00
Richard M. Stallman
7612000cb0 new.h renamed to alloc.h. 1997-06-18 06:40:45 +00:00
Richard M. Stallman
5ce94c2964 (literalchar): Fix the code for escaping \, " and '.
(lex): Avoid trouble when there are many chars
to discard in a char literal with just several chars in it.
1997-05-24 08:04:42 +00:00
Richard M. Stallman
70ddf8972a Use malloc, if using alloca is troublesome.
(YYSTACK_USE_ALLOCA): New flag macro.
Define it for some systems and compilers.
(YYSTACK_ALLOC): New macro.
(yyparse): Use YYSTACK_ALLOC to allocate stack.
If it was malloc'd, free it.
1997-05-17 18:44:24 +00:00
Richard M. Stallman
3054a9cdfb (alloca) [__hpux]: Always define as __builtin_alloca. 1997-04-23 18:01:25 +00:00
Richard M. Stallman
009b94d421 [__hpux]: Include alloca.h (right for HPUX 10)
instead of declaring alloca (right for HPUX 9).
1997-04-22 22:23:48 +00:00
Richard M. Stallman
5e02f2ada1 (__yy_memcpy): Declare arg `count' as unsigned int.
(yyparse): Cast third arg to __yy_memcpy to unsigned int.
1997-04-22 22:19:12 +00:00
Richard M. Stallman
8f047e5ecf [__STDC__ or _MSC_VER]:
Declare calloc and realloc to return void *.
1997-01-03 01:24:27 +00:00
Richard M. Stallman
d36e30d8c2 [_MSC_VER]: Include stdlib.h and process.h.
[_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1997-01-02 07:03:45 +00:00
Richard M. Stallman
42f95d63c2 (main): Return FAILURE as a value.
(printable_version): Declare arg as int, not char.
1997-01-02 06:59:56 +00:00
Richard M. Stallman
6a5705cfe8 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined. 1996-12-19 08:24:56 +00:00
Paul Eggert
1b1816515e (yyparse): If __GNUC__ and YYPARSE_PARAM are both defined,
declare yyparse to have a void * argument.
1996-12-18 02:18:10 +00:00
Richard M. Stallman
2f9040d9ba (nbits): Add some casts. 1996-12-17 06:20:27 +00:00
Richard M. Stallman
32d5c018d8 Test _MSDOS as well as _MSDOS_. 1996-08-12 22:17:15 +00:00
Richard M. Stallman
b6287af6f6 [__sun && __i386]: Include alloca.h. 1996-07-31 19:18:57 +00:00
Richard M. Stallman
444fbf65fb Comment change. 1996-07-30 04:37:37 +00:00
Richard M. Stallman
db245ba812 Test _MSDOS_, not MSDOS. 1996-07-30 04:37:16 +00:00
Richard M. Stallman
a083fbbf22 Insert `_' macro around many string constants. 1996-06-01 22:10:15 +00:00
Richard M. Stallman
2934057149 Insert `_' macro around many string constants.
(main): Call setlocale, bindtextdomain and textdomain.
1996-06-01 22:07:27 +00:00
Richard M. Stallman
f2d78a995d [HAVE_LOCALE_H]: Include locale.h.
[! HAVE_LOCALE_H] (setlocale): Define as no-op.
[ENABLE_NLS]: Include libintl.h.
[ENABLE_NLS] (gettext): Define.
[! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
(N_, PACKAGE, LOCALEDIR): New macros.
1996-06-01 22:06:24 +00:00
Richard M. Stallman
4cf401b28e (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t. 1996-05-12 22:17:15 +00:00
Richard M. Stallman
c245d0d38d (__yy_memcpy): Really reorder the args, as was supposedly done on Feb 14 1995.
(yyparse): Calls changed accordingly.
1996-05-11 19:19:55 +00:00
Richard M. Stallman
ba2e357c0d (output_rule_data): Test YYERROR_VERBOSE in the conditional
around the definition of ttyname.
1996-01-27 08:26:26 +00:00
Richard M. Stallman
a8a7082ea6 Fix line numbers in #line commands. 1995-12-29 04:29:18 +00:00
Richard M. Stallman
30f5b1ccd3 (YYPARSE_PARAM_DECL): In C++, make it always null.
(YYPARSE_PARAM_ARG): New macro.
(yyparse): Use YYPARSE_PARAM_ARG.
1995-12-27 12:43:49 +00:00
Richard M. Stallman
a73039ebb7 Version 1.25. 1995-10-16 14:12:01 +00:00
Richard M. Stallman
6dd6d21286 Added -n, -k, and -raw switches.
(noparserflag, toknumflag, rawtoknumflag): New variables.
1995-10-15 20:22:50 +00:00
Richard M. Stallman
984a8a8a40 (SALIAS): New #define for adding aliases to %token.
(struct bucket): Added `alias' field.
1995-10-15 20:19:02 +00:00
Richard M. Stallman
d129c2c0e7 (reduce_grammar): Revise error message.
(print_notices): Remove final `.' from error message.
1995-10-15 20:18:29 +00:00
Richard M. Stallman
943819bf46 (reader_output_yylsp): New function.
(readgram): Use `#if 0' around code that accepted %command
inside grammar rules:  The documentation doesn't allow it,
and it will fail since the %command processors scan for the next %.
(parse_token_decl):  Extended the %token
declaration to allow a multi-character symbol as an alias.
(parse_thong_decl): New function.
(read_declarations): Added %thong declarations.
(read_declarations): Handle NOOP to deal with allowing
% declarations as another means to specify the flags.
(readgram): Allow %prec prior to semantics embedded in a rule.
(skip_to_char, read_declarations, copy_definition)
(parse_token_decl, parse_start_decl, parse_type_decl)
(parse_assoc_decl, parse_union_decl, parse_expect_decl)
(get_type_name, copy_guard, copy_action, readgram)
(get_type, packsymbols):  Revised most error messages.
Changed `fatal' to `warnxxx' to avoid aborting for error.
Revised and use multiple warnxxx functions to avoid using VARARGS1.
(read_declarations): Improve the error message for
an invalid character.  Do not abort.
(read_declarations, copy_guard, copy_action): Use
printable_version to avoid unprintable characters in printed output.
(parse_expect_decl): Error if argument to %expect exceeds 10 digits.
(parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
Allow the type of a non-terminal can be given
more than once, as long as all specifications give the same type.
1995-10-15 20:17:23 +00:00