Imported Upstream version 20141128 upstream/20141128
authorDongHun Kwak <dh0128.kwak@samsung.com>
Fri, 1 Oct 2021 05:47:36 +0000 (14:47 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Fri, 1 Oct 2021 05:47:36 +0000 (14:47 +0900)
CHANGES
MANIFEST
VERSION
descrip.mms
lr0.c
package/byacc.spec
package/debian/changelog
package/mingw-byacc.spec
package/pkgsrc/Makefile

diff --git a/CHANGES b/CHANGES
index 1f01461..b07037f 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,25 @@
+2014-11-28  Thomas E. Dickey  <tom@invisible-island.net>
+
+       * lr0.c: coverity #39181: memory leak
+
+       * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
+       bump
+
+2014-11-13  Jouk.Jansen
+
+       * descrip.mms:
+       I sucessfully compiled byacc on my OpenVMS systems. However, I had to update
+       the descrip.mms to include some extra c-source files and some dependenxcies
+       so that it also works when the distribution is located on an ODS5 disk.
+
+       The patched descrip.mms file can be found at:
+         http://nchrem.tnw.tudelft.nl/openvms/software2.html#BYACC
+
+       Please feel free to insert the file in your distribution.
+
+                    Regards
+                        Jouk.
+
 2014-10-06  Thomas E. Dickey  <tom@invisible-island.net>
 
        * package/debian/source/format:
index 4ba0435..ea5b987 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -1,4 +1,4 @@
-MANIFEST for byacc-20141006, version t20141006
+MANIFEST for byacc-20141128, version t20141128
 --------------------------------------------------------------------------------
 MANIFEST                        this file
 ACKNOWLEDGEMENTS                original version of byacc - 1993
diff --git a/VERSION b/VERSION
index 572a8c2..a0c7f83 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-20141006
+20141128
index 007468b..62f7d38 100644 (file)
@@ -5,11 +5,11 @@ LINKFLAGS     = /map=$(MMS$TARGET_NAME)/cross_reference/exec=$(MMS$TARGET_NAME).exe
 LINKER       = cc
 
 OBJS         = closure.obj, \
-               error.obj, \
+               error.obj,graph.obj, \
                lalr.obj, \
                lr0.obj, \
                main.obj, \
-               mkpar.obj, \
+               mkpar.obj,mstring.obj, \
                output.obj, \
                reader.obj, \
                yaccpar.obj, \
@@ -20,6 +20,7 @@ OBJS        = closure.obj, \
 PROGRAM              = yacc.exe
 
 all :          $(PROGRAM)
+       @ write sys$output "All done"
 
 $(PROGRAM) :     $(OBJS)
        @ write sys$output "Loading $(PROGRAM) ... "
@@ -35,3 +36,18 @@ clobber :    clean
        @- if f$search("*.exe") .nes. "" then delete *.exe;*
 
 $(OBJS) : defs.h
+
+closure.obj : closure.c
+error.obj : error.c
+graph.obj : graph.c
+lalr.obj : lalr.c
+lr0.obj : lr0.c
+main.obj : main.c
+mkpar.obj : mkpar.c
+mstring.obj : mstring.c
+output.obj : output.c
+reader.obj : reader.c
+yaccpar.obj : yaccpar.c
+symtab.obj : symtab.c
+verbose.obj : verbose.c
+warshall.obj : warshall.c
diff --git a/lr0.c b/lr0.c
index 162d106..145de44 100644 (file)
--- a/lr0.c
+++ b/lr0.c
@@ -1,4 +1,4 @@
-/* $Id: lr0.c,v 1.16 2014/04/07 21:53:50 tom Exp $ */
+/* $Id: lr0.c,v 1.17 2014/11/28 15:46:42 tom Exp $ */
 
 #include "defs.h"
 
@@ -30,6 +30,8 @@ static reductions *last_reduction;
 static int nshifts;
 static Value_t *shift_symbol;
 
+static Value_t *rules;
+
 static Value_t *redset;
 static Value_t *shiftset;
 
@@ -483,7 +485,6 @@ set_derives(void)
 {
     Value_t i, k;
     int lhs;
-    Value_t *rules;
 
     derives = NEW2(nsyms, Value_t *);
     rules = NEW2(nvars + nrules, Value_t);
@@ -597,6 +598,7 @@ lr0_leaks(void)
     {
        DO_FREE(derives[start_symbol]);
        DO_FREE(derives);
+       DO_FREE(rules);
     }
     DO_FREE(nullable);
 }
index efed521..0f2f110 100644 (file)
@@ -1,8 +1,8 @@
 Summary: byacc - public domain Berkeley LALR Yacc parser generator
 %define AppProgram byacc
-%define AppVersion 20141006
+%define AppVersion 20141128
 %define UseProgram yacc
-# $XTermId: byacc.spec,v 1.25 2014/10/06 22:52:03 tom Exp $
+# $XTermId: byacc.spec,v 1.26 2014/11/28 15:42:17 tom Exp $
 Name: %{AppProgram}
 Version: %{AppVersion}
 Release: 1
index c700fb5..3b8226b 100644 (file)
@@ -1,3 +1,9 @@
+byacc (20141128) unstable; urgency=low
+
+  * maintenance updates
+
+ -- Thomas E. Dickey <dickey@invisible-island.net>  Fri, 28 Nov 2014 10:42:17 -0500
+
 byacc (20141006) unstable; urgency=low
 
   * maintenance updates
index 3cc0292..d4ab230 100644 (file)
@@ -1,8 +1,8 @@
 Summary: byacc - public domain Berkeley LALR Yacc parser generator
 %define AppProgram byacc
-%define AppVersion 20141006
+%define AppVersion 20141128
 %define UseProgram yacc
-# $XTermId: mingw-byacc.spec,v 1.7 2014/10/06 22:52:03 tom Exp $
+# $XTermId: mingw-byacc.spec,v 1.8 2014/11/28 15:42:17 tom Exp $
 Name: %{AppProgram}
 Version: %{AppVersion}
 Release: 1
index 691b678..2728449 100644 (file)
@@ -1,7 +1,7 @@
 # $NetBSD: Makefile,v 1.9 2008/07/24 17:13:00 tonnerre Exp $
 #
 
-DISTNAME=      byacc-20141006
+DISTNAME=      byacc-20141128
 PKGREVISION=   1
 CATEGORIES=    devel
 MASTER_SITES=  ftp://invisible-island.net/byacc/