mirror of
https://github.com/ThomasDickey/byacc-snapshots.git
synced 2026-01-26 13:14:29 +00:00
snapshot of project "byacc", label t20180510
This commit is contained in:
parent
0618d1c635
commit
519dc8d604
10
CHANGES
10
CHANGES
@ -1,3 +1,13 @@
|
||||
2018-05-10 Thomas E. Dickey <dickey@invisible-island.net>
|
||||
|
||||
* output.c:
|
||||
add a fallback definition for YYDEBUG to the -i externs file.
|
||||
|
||||
* test/btyacc/rename_debug.i, test/yacc/rename_debug.i: regen
|
||||
|
||||
* VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
|
||||
bump
|
||||
|
||||
2018-05-09 Thomas E. Dickey <dickey@invisible-island.net>
|
||||
|
||||
* configure: regen
|
||||
|
||||
2
MANIFEST
2
MANIFEST
@ -1,4 +1,4 @@
|
||||
MANIFEST for byacc, version t20180509
|
||||
MANIFEST for byacc, version t20180510
|
||||
--------------------------------------------------------------------------------
|
||||
MANIFEST this file
|
||||
ACKNOWLEDGEMENTS original version of byacc - 1993
|
||||
|
||||
22
output.c
22
output.c
@ -1,4 +1,4 @@
|
||||
/* $Id: output.c,v 1.86 2018/05/09 08:52:58 tom Exp $ */
|
||||
/* $Id: output.c,v 1.87 2018/05/10 09:08:46 tom Exp $ */
|
||||
|
||||
#include "defs.h"
|
||||
|
||||
@ -1289,6 +1289,15 @@ output_stored_text(FILE * fp)
|
||||
write_code_lineno(fp);
|
||||
}
|
||||
|
||||
static int
|
||||
output_yydebug(FILE * fp)
|
||||
{
|
||||
fprintf(fp, "#ifndef YYDEBUG\n");
|
||||
fprintf(fp, "#define YYDEBUG %d\n", tflag);
|
||||
fprintf(fp, "#endif\n");
|
||||
return 3;
|
||||
}
|
||||
|
||||
static void
|
||||
output_debug(void)
|
||||
{
|
||||
@ -1299,16 +1308,11 @@ output_debug(void)
|
||||
++outline;
|
||||
fprintf(code_file, "#define YYFINAL %d\n", final_state);
|
||||
|
||||
putl_code(code_file, "#ifndef YYDEBUG\n");
|
||||
++outline;
|
||||
fprintf(code_file, "#define YYDEBUG %d\n", tflag);
|
||||
putl_code(code_file, "#endif\n");
|
||||
outline += output_yydebug(code_file);
|
||||
|
||||
if (rflag)
|
||||
{
|
||||
fprintf(output_file, "#ifndef YYDEBUG\n");
|
||||
fprintf(output_file, "#define YYDEBUG %d\n", tflag);
|
||||
fprintf(output_file, "#endif\n");
|
||||
output_yydebug(output_file);
|
||||
}
|
||||
|
||||
maxtok = 0;
|
||||
@ -2039,6 +2043,8 @@ output(void)
|
||||
|
||||
if (iflag)
|
||||
{
|
||||
fprintf(externs_file, "\n");
|
||||
output_yydebug(externs_file);
|
||||
output_externs(externs_file, global_vars);
|
||||
if (!pure_parser)
|
||||
output_externs(externs_file, impure_vars);
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
Summary: byacc - public domain Berkeley LALR Yacc parser generator
|
||||
%define AppProgram byacc
|
||||
%define AppVersion 20180509
|
||||
%define AppVersion 20180510
|
||||
%define UseProgram yacc
|
||||
# $Id: byacc.spec,v 1.38 2018/05/10 01:13:51 tom Exp $
|
||||
# $Id: byacc.spec,v 1.39 2018/05/10 08:59:09 tom Exp $
|
||||
Name: %{AppProgram}
|
||||
Version: %{AppVersion}
|
||||
Release: 1
|
||||
|
||||
@ -1,3 +1,9 @@
|
||||
byacc (20180510) unstable; urgency=low
|
||||
|
||||
* maintenance updates
|
||||
|
||||
-- Thomas E. Dickey <dickey@invisible-island.net> Thu, 10 May 2018 04:59:09 -0400
|
||||
|
||||
byacc (20180509) unstable; urgency=low
|
||||
|
||||
* maintenance updates
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
Summary: byacc - public domain Berkeley LALR Yacc parser generator
|
||||
%define AppProgram byacc
|
||||
%define AppVersion 20180509
|
||||
%define AppVersion 20180510
|
||||
%define UseProgram yacc
|
||||
# $Id: mingw-byacc.spec,v 1.20 2018/05/10 01:13:51 tom Exp $
|
||||
# $Id: mingw-byacc.spec,v 1.21 2018/05/10 08:59:09 tom Exp $
|
||||
Name: %{AppProgram}
|
||||
Version: %{AppVersion}
|
||||
Release: 1
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
# $NetBSD: Makefile,v 1.9 2008/07/24 17:13:00 tonnerre Exp $
|
||||
#
|
||||
|
||||
DISTNAME= byacc-20180509
|
||||
DISTNAME= byacc-20180510
|
||||
PKGREVISION= 1
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= ftp://ftp.invisible-island.net/byacc/
|
||||
|
||||
@ -51,6 +51,10 @@ int YYLEX_DECL();
|
||||
|
||||
extern int YYPARSE_DECL();
|
||||
|
||||
#ifndef YYDEBUG
|
||||
#define YYDEBUG 1
|
||||
#endif
|
||||
|
||||
#if YYDEBUG
|
||||
extern int yydebug;
|
||||
#endif
|
||||
|
||||
@ -51,6 +51,10 @@ int YYLEX_DECL();
|
||||
|
||||
extern int YYPARSE_DECL();
|
||||
|
||||
#ifndef YYDEBUG
|
||||
#define YYDEBUG 1
|
||||
#endif
|
||||
|
||||
#if YYDEBUG
|
||||
extern int yydebug;
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user