snapshot of project "byacc", label t20141128

This commit is contained in:
Thomas E. Dickey 2014-11-28 15:46:42 -05:00
parent 633e5a5609
commit b9a791a11b
9 changed files with 66 additions and 11 deletions

31
CHANGES
View File

@ -1,3 +1,34 @@
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 <dickey@invisible-island.net>
* VERSION: bump
* configure: regen
* main.c:
correct parameter for umask - for very old mkstemp's - and use type mode_t
to quiet compiler warning
* configure.in: add configure check for mode_t
* reader.c:
better fix for get_line, by ensuring there is enough space to null-terminate
its result (prompted by discussion with Craig Rodrigues).
2014-10-05 Thomas E. Dickey <dickey@invisible-island.net>
* main.c:

View File

@ -1,4 +1,4 @@
MANIFEST for byacc, version t20141006
MANIFEST for byacc, 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/