Import byacc 20141128.

This commit is contained in:
Jung-uk Kim 2016-02-29 19:37:12 +00:00
parent c021d7a622
commit 2d99735ad9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/vendor/byacc/dist/; revision=296222
svn path=/vendor/byacc/20141128/; revision=296223; tag=vendor/byacc/20141128
9 changed files with 57 additions and 11 deletions

22
CHANGES
View file

@ -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:

View file

@ -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

View file

@ -1 +1 @@
20141006
20141128

View 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

6
lr0.c
View file

@ -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);
}

View 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

View 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

View 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

View 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/