Update to version 1.28.

This commit is contained in:
kevlo 1999-11-22 09:08:55 +00:00
parent 5ab4d513f6
commit 758bae1529
4 changed files with 82 additions and 111 deletions

View File

@ -1,6 +1,6 @@
# $OpenBSD: Makefile,v 1.10 1999/07/29 14:03:48 espie Exp $
# $OpenBSD: Makefile,v 1.11 1999/11/22 09:08:55 kevlo Exp $
DISTNAME= bison-1.27
DISTNAME= bison-1.28
CATEGORIES= devel
MAINTAINER= d@openbsd.org

View File

@ -1,3 +1,3 @@
SHA1 (bison-1.27.tar.gz) = f9b8b3fc2cb7348e172ee5284d3bb71468ba5324
RMD160 (bison-1.27.tar.gz) = bd4ee38b512c0b8a4fbdd4206c84eb9e3e6124f0
MD5 (bison-1.27.tar.gz) = 62cdda07da0bedaf7349a12903bd207d
MD5 (bison-1.28.tar.gz) = 4afb3989f2270043c47c3daa1fa7ffab
RMD160 (bison-1.28.tar.gz) = 2a4bfe8bd72c0151a316261a5155943f5a4e9f50
SHA1 (bison-1.28.tar.gz) = d11dc896f4642ff432345a5b037505ab0b8791e8

View File

@ -1,99 +1,72 @@
*** files.c.orig Sun Oct 15 16:01:30 1995
--- files.c Sat Apr 25 19:36:49 1998
***************
*** 60,66 ****
extern int noparserflag;
! extern char *mktemp(); /* So the compiler won't complain */
extern char *getenv();
extern void perror();
FILE *tryopen(); /* This might be a good idea */
--- 60,66 ----
extern int noparserflag;
! extern int mkstemp(); /* So the compiler won't complain */
extern char *getenv();
extern void perror();
FILE *tryopen(); /* This might be a good idea */
***************
*** 237,257 ****
tmpdefsfile = mktemp(stringappend(tmp_base, tmp_len, "deXXXXXX"));
#else
if (! noparserflag)
! actfile = mktemp(stringappend(tmp_base, tmp_len, "act.XXXXXX"));
! tmpattrsfile = mktemp(stringappend(tmp_base, tmp_len, "attrs.XXXXXX"));
! tmptabfile = mktemp(stringappend(tmp_base, tmp_len, "tab.XXXXXX"));
! tmpdefsfile = mktemp(stringappend(tmp_base, tmp_len, "defs.XXXXXX"));
#endif /* not MSDOS */
if (! noparserflag)
faction = tryopen(actfile, "w+");
fattrs = tryopen(tmpattrsfile,"w+");
ftable = tryopen(tmptabfile, "w+");
if (definesflag)
{
defsfile = stringappend(name_base, base_length, ".h");
fdefines = tryopen(tmpdefsfile, "w+");
}
#ifndef MSDOS
--- 237,292 ----
tmpdefsfile = mktemp(stringappend(tmp_base, tmp_len, "deXXXXXX"));
#else
if (! noparserflag)
! {
! actfile = stringappend(tmp_base, tmp_len, "act.XXXXXX");
! faction = fdopen(mkstemp(actfile), "w+");
! if (faction == NULL)
! {
! fprintf(stderr, "%s: ", program_name);
! perror(actfile);
! done(2);
!
! }
! }
! tmpattrsfile = stringappend(tmp_base, tmp_len, "attrs.XXXXXX");
! fattrs = fdopen(mkstemp(tmpattrsfile), "w+");
! if (fattrs == NULL)
! {
! fprintf(stderr, "%s: ", program_name);
! perror(tmpattrsfile);
! done(2);
! }
! tmptabfile = stringappend(tmp_base, tmp_len, "tab.XXXXXX");
! ftable = fdopen(mkstemp(tmptabfile), "w+");
! if (ftable == NULL)
! {
! fprintf(stderr, "%s: ", program_name);
! perror(tmptabfile);
! done(2);
! }
! tmpdefsfile = stringappend(tmp_base, tmp_len, "defs.XXXXXX");
#endif /* not MSDOS */
+ /*
if (! noparserflag)
faction = tryopen(actfile, "w+");
fattrs = tryopen(tmpattrsfile,"w+");
ftable = tryopen(tmptabfile, "w+");
+ */
if (definesflag)
{
defsfile = stringappend(name_base, base_length, ".h");
+ /*
fdefines = tryopen(tmpdefsfile, "w+");
+ */
+ fdefines = fdopen(mkstemp(tmpdefsfile), "w+");
+ if (fdefines == NULL)
+ {
--- src/files.c.orig Mon Nov 22 16:50:21 1999
+++ src/files.c Mon Nov 22 16:59:09 1999
@@ -76,7 +76,7 @@
extern int noparserflag;
-extern char *mktemp(); /* So the compiler won't complain */
+extern int mkstemp(); /* So the compiler won't complain */
extern char *getenv();
extern void perror();
@@ -276,21 +276,55 @@
tmpdefsfile = mktemp(stringappend(tmp_base, tmp_len, "deXXXXXX"));
#else
if (! noparserflag)
- actfile = mktemp(stringappend(tmp_base, tmp_len, "act.XXXXXX"));
- tmpattrsfile = mktemp(stringappend(tmp_base, tmp_len, "attrs.XXXXXX"));
- tmptabfile = mktemp(stringappend(tmp_base, tmp_len, "tab.XXXXXX"));
- tmpdefsfile = mktemp(stringappend(tmp_base, tmp_len, "defs.XXXXXX"));
+ {
+ actfile = stringappend(tmp_base, tmp_len, "act.XXXXXX");
+ faction = fdopen(mkstemp(actfile), "w+");
+ if (faction == NULL)
+ {
+ fprintf(stderr, "%s: ", program_name);
+ perror(actfile);
+ done(2);
+
+ }
+ }
+ tmpattrsfile = stringappend(tmp_base, tmp_len, "attrs.XXXXXX");
+ fattrs = fdopen(mkstemp(tmpattrsfile), "w+");
+ if (fattrs == NULL)
+ {
+ fprintf(stderr, "%s: ", program_name);
+ perror(tmpattrsfile);
+ done(2);
+ }
+ tmptabfile = stringappend(tmp_base, tmp_len, "tab.XXXXXX");
+ ftable = fdopen(mkstemp(tmptabfile), "w+");
+ if (ftable == NULL)
+ {
+ fprintf(stderr, "%s: ", program_name);
+ perror(tmptabfile);
+ done(2);
+ }
+ tmpdefsfile = stringappend(tmp_base, tmp_len, "defs.XXXXXX");
#endif /* not MSDOS */
+/*
if (! noparserflag)
faction = tryopen(actfile, "w+");
fattrs = tryopen(tmpattrsfile,"w+");
ftable = tryopen(tmptabfile, "w+");
-
+*/
if (definesflag)
{
defsfile = stringappend(name_base, base_length, ".h");
+/*
fdefines = tryopen(tmpdefsfile, "w+");
+*/
+ fdefines = fdopen(mkstemp(tmpdefsfile), "w+");
+ if (fdefines == NULL)
+ {
+ fprintf(stderr, "%s: ", program_name);
+ perror(tmpdefsfile);
+ done(2);
+ }
}
#ifndef MSDOS
}
#if !(defined (MSDOS) || (defined(_WIN32) && !defined(__CYGWIN32__)))

View File

@ -1,13 +1,11 @@
--- bison.info.~1~ Sat Feb 17 08:46:08 1996
+++ bison.info Wed Jun 24 14:11:38 1998
@@ -1,6 +1,10 @@
This is Info file bison.info, produced by Makeinfo-1.64 from the input
file ./bison.texinfo.
--- doc/bison.info.orig Mon Nov 22 17:01:02 1999
+++ doc/bison.info Mon Nov 22 17:01:50 1999
@@ -2,7 +2,7 @@
bison.texinfo.
START-INFO-DIR-ENTRY
-* bison: (bison). GNU Project parser generator (yacc replacement).
+* Bison: (bison). LALR(1) parser generator
END-INFO-DIR-ENTRY
+START-INFO-DIR-ENTRY
+* Bison: (bison). LALR(1) parser generator
+END-INFO-DIR-ENTRY
+
This file documents the Bison parser generator.
Copyright (C) 1988, 89, 90, 91, 92, 93, 1995 Free Software