platform/upstream/bison.git
25 years agoBumped version number to 1.27. GNU_1_27
Jesse Thilo [Tue, 16 Feb 1999 11:05:48 +0000 (11:05 +0000)]
Bumped version number to 1.27.

25 years ago#Updated NEWS for 1.27.
Jesse Thilo [Tue, 16 Feb 1999 11:05:33 +0000 (11:05 +0000)]
#Updated NEWS for 1.27.

25 years agoAdded `bison.simple' to list of files removed by `make distclean'.
Jesse Thilo [Tue, 16 Feb 1999 11:05:16 +0000 (11:05 +0000)]
Added `bison.simple' to list of files removed by `make distclean'.

25 years agoDefined locations of parser files in config.h instead of Makefile.
Jesse Thilo [Fri, 12 Feb 1999 15:18:12 +0000 (15:18 +0000)]
Defined locations of parser files in config.h instead of Makefile.

25 years agoRemoved inappropriate use of $< macro.
Jesse Thilo [Tue, 9 Feb 1999 03:51:09 +0000 (03:51 +0000)]
Removed inappropriate use of $< macro.

25 years ago#
Jesse Thilo [Fri, 5 Feb 1999 15:06:29 +0000 (15:06 +0000)]
#

25 years agoAdd `po' directory skeleton.
Jesse Thilo [Fri, 5 Feb 1999 15:05:15 +0000 (15:05 +0000)]
Add `po' directory skeleton.

25 years ago#updated. GNU_1_26
Jesse Thilo [Wed, 27 Jan 1999 03:35:18 +0000 (03:35 +0000)]
#updated.

25 years agoDocument help-bison list.
Jesse Thilo [Wed, 27 Jan 1999 03:34:47 +0000 (03:34 +0000)]
Document help-bison list.

25 years agoAdd check for mkstemp().
Jesse Thilo [Wed, 27 Jan 1999 03:26:56 +0000 (03:26 +0000)]
Add check for mkstemp().

25 years ago#Remove static from dummy().
Jesse Thilo [Wed, 20 Jan 1999 22:56:40 +0000 (22:56 +0000)]
#Remove static from dummy().

25 years agoHush a few compiler warnings.
Jesse Thilo [Wed, 20 Jan 1999 22:55:06 +0000 (22:55 +0000)]
Hush a few compiler warnings.

25 years agoAdd tryclose(), which verifies that fclose was successful.
Jesse Thilo [Wed, 20 Jan 1999 22:53:23 +0000 (22:53 +0000)]
Add tryclose(), which verifies that fclose was successful.
Hush a couple of compiler warnings.

25 years agoChangeLog is now automatically generated. Include the old version as
Jesse Thilo [Wed, 20 Jan 1999 22:45:49 +0000 (22:45 +0000)]
ChangeLog is now automatically generated.  Include the old version as
OChangeLog.

25 years agoFix formatting glitch.
Jesse Thilo [Thu, 14 Jan 1999 15:08:17 +0000 (15:08 +0000)]
Fix formatting glitch.

25 years agoUpdate FSF address.
Jesse Thilo [Thu, 14 Jan 1999 14:58:38 +0000 (14:58 +0000)]
Update FSF address.

25 years agoDon't define PACKAGE here, since config.h defines it.
Jesse Thilo [Fri, 8 Jan 1999 21:17:26 +0000 (21:17 +0000)]
Don't define PACKAGE here, since config.h defines it.

25 years agoUpdate copyright date.
Jesse Thilo [Wed, 30 Dec 1998 06:54:16 +0000 (06:54 +0000)]
Update copyright date.

25 years agoDitch sprintf to statically-sized buffers in fatal/warn functions in
Jesse Thilo [Wed, 30 Dec 1998 06:29:42 +0000 (06:29 +0000)]
Ditch sprintf to statically-sized buffers in fatal/warn functions in
favor of output directly to stderr (avoids buffer overruns).

25 years agoSome checks for premature EOF.
Jesse Thilo [Wed, 30 Dec 1998 06:07:25 +0000 (06:07 +0000)]
Some checks for premature EOF.

25 years agoUse prototypes if the compiler understands them.
Jesse Thilo [Wed, 30 Dec 1998 05:27:11 +0000 (05:27 +0000)]
Use prototypes if the compiler understands them.

25 years agoDocument 1.26 highlights.
Jesse Thilo [Wed, 30 Dec 1998 05:24:36 +0000 (05:24 +0000)]
Document 1.26 highlights.

25 years agoDelete comment "consider using @set for edition number, etc..." since
Jesse Thilo [Wed, 30 Dec 1998 05:24:00 +0000 (05:24 +0000)]
Delete comment "consider using @set for edition number, etc..." since
we now are doing so.

25 years agoRequire Automake 1.3 or later.
Jesse Thilo [Wed, 30 Dec 1998 05:23:22 +0000 (05:23 +0000)]
Require Automake 1.3 or later.

25 years agoHonor TMPDIR on Unix hosts.
Jesse Thilo [Wed, 30 Dec 1998 05:22:02 +0000 (05:22 +0000)]
Honor TMPDIR on Unix hosts.
Use prototypes if the compiler understands them.

25 years agoFix a couple of buffer overrun bugs.
Jesse Thilo [Wed, 30 Dec 1998 05:21:02 +0000 (05:21 +0000)]
Fix a couple of buffer overrun bugs.
Use prototypes if the compiler understands them.

25 years agoInclude unistd.h and ctype.h.
Jesse Thilo [Wed, 30 Dec 1998 05:19:09 +0000 (05:19 +0000)]
Include unistd.h and ctype.h.
Use #ifdef instead of #if for NLS symbols.

25 years agoUse VERSION symbol from automake for version number.
Jesse Thilo [Tue, 29 Dec 1998 21:54:26 +0000 (21:54 +0000)]
Use VERSION symbol from automake for version number.

25 years agoAdd info dir entry.
Jesse Thilo [Sat, 28 Nov 1998 21:44:16 +0000 (21:44 +0000)]
Add info dir entry.

25 years agoDistribute original version of simple parser (bison.s1), not built
Jesse Thilo [Sat, 28 Nov 1998 21:31:37 +0000 (21:31 +0000)]
Distribute original version of simple parser (bison.s1), not built
version (bison.simple).

25 years ago#
Jesse Thilo [Sat, 28 Nov 1998 21:30:44 +0000 (21:30 +0000)]
#

25 years agoLet automake put version number into documentation.
Jesse Thilo [Sat, 28 Nov 1998 21:30:44 +0000 (21:30 +0000)]
Let automake put version number into documentation.

25 years agoAdd non-RCS files from /gd/gnu/bison.
Jesse Thilo [Thu, 26 Nov 1998 00:44:18 +0000 (00:44 +0000)]
Add non-RCS files from /gd/gnu/bison.

25 years agoDocument the BISON_HAIRY and BISON_SIMPLE variables.
Jesse Thilo [Thu, 26 Nov 1998 00:14:37 +0000 (00:14 +0000)]
Document the BISON_HAIRY and BISON_SIMPLE variables.

25 years ago#
Jesse Thilo [Wed, 25 Nov 1998 23:52:35 +0000 (23:52 +0000)]
#

25 years ago#
Jesse Thilo [Wed, 25 Nov 1998 23:40:54 +0000 (23:40 +0000)]
#

25 years agoRename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
Jesse Thilo [Wed, 25 Nov 1998 23:18:48 +0000 (23:18 +0000)]
Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).

25 years agoBuild version.c automatically.
Jesse Thilo [Wed, 25 Nov 1998 23:17:35 +0000 (23:17 +0000)]
Build version.c automatically.

25 years ago#
Jesse Thilo [Wed, 25 Nov 1998 23:17:05 +0000 (23:17 +0000)]
#

25 years agoAdd AUTHORS file.
Jesse Thilo [Wed, 25 Nov 1998 22:13:23 +0000 (22:13 +0000)]
Add AUTHORS file.

25 years agoFix token numbering (used to start at 258, not 257).
Jesse Thilo [Wed, 25 Nov 1998 22:13:09 +0000 (22:13 +0000)]
Fix token numbering (used to start at 258, not 257).

25 years agoInclude config.h.
Jesse Thilo [Wed, 25 Nov 1998 22:12:45 +0000 (22:12 +0000)]
Include config.h.

25 years agoClean up some formatting.
Jesse Thilo [Wed, 25 Nov 1998 22:11:01 +0000 (22:11 +0000)]
Clean up some formatting.

25 years agoUpdate bug report address.
Jesse Thilo [Wed, 25 Nov 1998 22:09:19 +0000 (22:09 +0000)]
Update bug report address.

25 years agoRename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
Jesse Thilo [Wed, 25 Nov 1998 21:55:23 +0000 (21:55 +0000)]
Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).

25 years agoGet latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
Jesse Thilo [Wed, 25 Nov 1998 21:40:21 +0000 (21:40 +0000)]
Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.

25 years agoAdd automake stuff.
Jesse Thilo [Wed, 25 Nov 1998 21:36:05 +0000 (21:36 +0000)]
Add automake stuff.

25 years ago#
Jesse Thilo [Wed, 25 Nov 1998 21:36:05 +0000 (21:36 +0000)]
#

26 years agoExplain better why to make a pure parser. GNU_ORIG
Richard M. Stallman [Tue, 5 May 1998 22:18:45 +0000 (22:18 +0000)]
Explain better why to make a pure parser.

26 years ago(openfiles): [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
Richard M. Stallman [Mon, 5 Jan 1998 00:25:39 +0000 (00:25 +0000)]
(openfiles): [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
find a temporary directory, if possible.  Do not unlink files while
they are open.

26 years ago(stack_offset;): Change some warni to warns.
Richard M. Stallman [Mon, 25 Aug 1997 19:40:12 +0000 (19:40 +0000)]
(stack_offset;): Change some warni to warns.

26 years ago(literalchar): Use warns, not warni.
Richard M. Stallman [Mon, 25 Aug 1997 19:38:57 +0000 (19:38 +0000)]
(literalchar): Use warns, not warni.

27 years ago(bison_version): New variable.
Richard M. Stallman [Sat, 28 Jun 1997 19:43:05 +0000 (19:43 +0000)]
(bison_version): New variable.
(dist): Use that variable.
(bison.s1): Substitute the Bison version into bison.simple.

27 years agoAdd a Bison version comment.
Richard M. Stallman [Sat, 28 Jun 1997 19:41:24 +0000 (19:41 +0000)]
Add a Bison version comment.

27 years ago(fatal, warn, berror): Use program_name.
Richard M. Stallman [Sat, 28 Jun 1997 19:31:35 +0000 (19:31 +0000)]
(fatal, warn, berror): Use program_name.

27 years ago(fatal, warn, berror): Make error messages standard.
Richard M. Stallman [Wed, 18 Jun 1997 17:09:27 +0000 (17:09 +0000)]
(fatal, warn, berror): Make error messages standard.
(toomany): Improve error message text.

27 years agonew.h renamed to alloc.h.
Richard M. Stallman [Wed, 18 Jun 1997 06:40:45 +0000 (06:40 +0000)]
new.h renamed to alloc.h.

27 years ago(literalchar): Fix the code for escaping \, " and '.
Richard M. Stallman [Sat, 24 May 1997 08:04:42 +0000 (08:04 +0000)]
(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.

27 years agoUse malloc, if using alloca is troublesome.
Richard M. Stallman [Sat, 17 May 1997 18:44:24 +0000 (18:44 +0000)]
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.

27 years ago(alloca) [__hpux]: Always define as __builtin_alloca.
Richard M. Stallman [Wed, 23 Apr 1997 18:01:25 +0000 (18:01 +0000)]
(alloca) [__hpux]: Always define as __builtin_alloca.

27 years ago[__hpux]: Include alloca.h (right for HPUX 10)
Richard M. Stallman [Tue, 22 Apr 1997 22:23:48 +0000 (22:23 +0000)]
[__hpux]: Include alloca.h (right for HPUX 10)
instead of declaring alloca (right for HPUX 9).

27 years ago(__yy_memcpy): Declare arg `count' as unsigned int.
Richard M. Stallman [Tue, 22 Apr 1997 22:19:12 +0000 (22:19 +0000)]
(__yy_memcpy): Declare arg `count' as unsigned int.
(yyparse): Cast third arg to __yy_memcpy to unsigned int.

27 years ago[__STDC__ or _MSC_VER]:
Richard M. Stallman [Fri, 3 Jan 1997 01:24:27 +0000 (01:24 +0000)]
[__STDC__ or _MSC_VER]:
Declare calloc and realloc to return void *.

27 years ago(dist): Explicitly check for symlinks, and copy them.
Richard M. Stallman [Thu, 2 Jan 1997 07:13:01 +0000 (07:13 +0000)]
(dist): Explicitly check for symlinks, and copy them.

27 years ago[_MSC_VER]: Include stdlib.h and process.h.
Richard M. Stallman [Thu, 2 Jan 1997 07:03:45 +0000 (07:03 +0000)]
[_MSC_VER]: Include stdlib.h and process.h.
[_MSC_VER] (getpid): Define as macro--translate it to _getpid.

27 years ago(main): Return FAILURE as a value.
Richard M. Stallman [Thu, 2 Jan 1997 06:59:56 +0000 (06:59 +0000)]
(main): Return FAILURE as a value.
(printable_version): Declare arg as int, not char.

27 years ago[_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
Richard M. Stallman [Thu, 19 Dec 1996 08:24:56 +0000 (08:24 +0000)]
[_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.

27 years ago(yyparse): If __GNUC__ and YYPARSE_PARAM are both defined,
Paul Eggert [Wed, 18 Dec 1996 02:18:10 +0000 (02:18 +0000)]
(yyparse): If __GNUC__ and YYPARSE_PARAM are both defined,
declare yyparse to have a void * argument.

27 years ago(nbits): Add some casts.
Richard M. Stallman [Tue, 17 Dec 1996 06:20:27 +0000 (06:20 +0000)]
(nbits): Add some casts.

27 years agoTest _MSDOS as well as _MSDOS_.
Richard M. Stallman [Mon, 12 Aug 1996 22:17:15 +0000 (22:17 +0000)]
Test _MSDOS as well as _MSDOS_.

28 years ago[__sun && __i386]: Include alloca.h.
Richard M. Stallman [Wed, 31 Jul 1996 19:18:57 +0000 (19:18 +0000)]
[__sun && __i386]: Include alloca.h.

28 years agoComment change.
Richard M. Stallman [Tue, 30 Jul 1996 04:37:37 +0000 (04:37 +0000)]
Comment change.

28 years agoTest _MSDOS_, not MSDOS.
Richard M. Stallman [Tue, 30 Jul 1996 04:37:16 +0000 (04:37 +0000)]
Test _MSDOS_, not MSDOS.

28 years agoInsert `_' macro around many string constants.
Richard M. Stallman [Sat, 1 Jun 1996 22:10:15 +0000 (22:10 +0000)]
Insert `_' macro around many string constants.

28 years agoInsert `_' macro around many string constants.
Richard M. Stallman [Sat, 1 Jun 1996 22:07:27 +0000 (22:07 +0000)]
Insert `_' macro around many string constants.

(main): Call setlocale, bindtextdomain and textdomain.

28 years ago[HAVE_LOCALE_H]: Include locale.h.
Richard M. Stallman [Sat, 1 Jun 1996 22:06:24 +0000 (22:06 +0000)]
[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.

28 years agoInitial revision
Richard M. Stallman [Sat, 1 Jun 1996 22:00:33 +0000 (22:00 +0000)]
Initial revision

28 years ago(allocate.o): Define target explicitly.
Richard M. Stallman [Sat, 1 Jun 1996 22:00:14 +0000 (22:00 +0000)]
(allocate.o): Define target explicitly.

28 years ago(CFLAGS): Set to @CFLAGS@.
Richard M. Stallman [Sat, 1 Jun 1996 21:53:20 +0000 (21:53 +0000)]
(CFLAGS): Set to @CFLAGS@.
(LDFLAGS): Set to @LDFLAGS@.
(configure): Run autoconf only if preceding `cd' succeeds.
(bison.s1): Redirect output to temporary file then move the
temporary to the target, rather than redirecting directly to bison.s1.
(clean): Remove config.status and config.log.
(distclean): Don't remove config.status here.

28 years ago(__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
Richard M. Stallman [Sun, 12 May 1996 22:17:15 +0000 (22:17 +0000)]
(__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.

28 years ago(dist): Don't use $(srcdir).
Richard M. Stallman [Sat, 11 May 1996 19:20:49 +0000 (19:20 +0000)]
(dist): Don't use $(srcdir).

28 years ago(__yy_memcpy): Really reorder the args, as was supposedly done on Feb 14 1995.
Richard M. Stallman [Sat, 11 May 1996 19:19:55 +0000 (19:19 +0000)]
(__yy_memcpy): Really reorder the args, as was supposedly done on Feb 14 1995.
(yyparse): Calls changed accordingly.

28 years ago(output_rule_data): Test YYERROR_VERBOSE in the conditional
Richard M. Stallman [Sat, 27 Jan 1996 08:26:26 +0000 (08:26 +0000)]
(output_rule_data): Test YYERROR_VERBOSE in the conditional
around the definition of ttyname.

28 years agoFix line numbers in #line commands.
Richard M. Stallman [Fri, 29 Dec 1995 04:29:18 +0000 (04:29 +0000)]
Fix line numbers in #line commands.

28 years ago(YYPARSE_PARAM_DECL): In C++, make it always null.
Richard M. Stallman [Wed, 27 Dec 1995 12:43:49 +0000 (12:43 +0000)]
(YYPARSE_PARAM_DECL): In C++, make it always null.
(YYPARSE_PARAM_ARG): New macro.
(yyparse): Use YYPARSE_PARAM_ARG.

28 years agoFixed update date
Daniel Hagerty [Wed, 29 Nov 1995 01:26:22 +0000 (01:26 +0000)]
Fixed update date

28 years agoDescribe literal string tokens, %raw, %no_lines, %token_table.
Richard M. Stallman [Wed, 29 Nov 1995 01:22:34 +0000 (01:22 +0000)]
Describe literal string tokens, %raw, %no_lines, %token_table.

28 years agoAdd new options.
Richard M. Stallman [Mon, 16 Oct 1995 14:12:23 +0000 (14:12 +0000)]
Add new options.

28 years agoVersion 1.25.
Richard M. Stallman [Mon, 16 Oct 1995 14:12:01 +0000 (14:12 +0000)]
Version 1.25.

28 years ago*** empty log message ***
Richard M. Stallman [Mon, 16 Oct 1995 14:10:22 +0000 (14:10 +0000)]
*** empty log message ***

28 years agoAdded -n, -k, and -raw switches.
Richard M. Stallman [Sun, 15 Oct 1995 20:22:50 +0000 (20:22 +0000)]
Added -n, -k, and -raw switches.
(noparserflag, toknumflag, rawtoknumflag): New variables.

28 years ago(SALIAS): New #define for adding aliases to %token.
Richard M. Stallman [Sun, 15 Oct 1995 20:19:02 +0000 (20:19 +0000)]
(SALIAS): New #define for adding aliases to %token.
(struct bucket): Added `alias' field.

28 years ago(reduce_grammar): Revise error message.
Richard M. Stallman [Sun, 15 Oct 1995 20:18:29 +0000 (20:18 +0000)]
(reduce_grammar): Revise error message.
(print_notices): Remove final `.' from error message.

28 years ago(reader_output_yylsp): New function.
Richard M. Stallman [Sun, 15 Oct 1995 20:17:23 +0000 (20:17 +0000)]
(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.

28 years ago(output_headers, output_trailers, output, output_gram)
Richard M. Stallman [Sun, 15 Oct 1995 20:10:00 +0000 (20:10 +0000)]
(output_headers, output_trailers, output, output_gram)
(output_rule_data): Implement noparserflag variable.
Implement toknumflag variable.
(output): Call reader_output_yylsp to output LTYPESTR.

28 years ago(main): If reader sees an error, don't process the grammar.
Richard M. Stallman [Sun, 15 Oct 1995 20:08:17 +0000 (20:08 +0000)]
(main):  If reader sees an error, don't process the grammar.
(fatals): Updated to not use VARARGS1.
(printable_version, int_to_string, warn, warni, warns, warnss)
(warnsss): New error reporting functions.  Avoid abort for error.

28 years agoAdded THONG and NOOP for alias processing.
Richard M. Stallman [Sun, 15 Oct 1995 20:07:08 +0000 (20:07 +0000)]
Added THONG and NOOP for alias processing.
Added SETOPT for the new code that allows setting options with %flags.

28 years agoInclude getopt.h. Add some extern decls.
Richard M. Stallman [Sun, 15 Oct 1995 20:06:23 +0000 (20:06 +0000)]
Include getopt.h.  Add some extern decls.
(safegetc): New function to deal with EOF gracefully.
(literalchar); new function to deal with reading \ escapes.
(lex): Use literalchar.
(lex): Implemented "..." tokens.
(literalchar, lex, parse_percent_token): Made tokenbuffer
always contain the token.  This includes growing the token
buffer while reading an integer.
(parse_percent_token): Replaced if-else statement with percent_table.
(parse_percent_token): Added % declarations as another
way to specify the flags -n, -l, and -r.  Also added hooks for
-d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
major changes to files.c.
(lex) Retain in the incoming stream a character following
an incorrect '/'.
(skip_white_space, lex):  Revised most error messages
and changed fatal to warn to avoid aborting.
(percent_table):  Added %thong declarations.

28 years agoComment changes.
Richard M. Stallman [Sun, 15 Oct 1995 20:02:41 +0000 (20:02 +0000)]
Comment changes.

28 years ago(openfiles, open_extra_files, done): Add faction flag
Richard M. Stallman [Sun, 15 Oct 1995 20:02:02 +0000 (20:02 +0000)]
(openfiles, open_extra_files, done):  Add faction flag
and actfile file.  Handle noparserflag.  Both for -n switch.