+2010-11-24 Thomas Dickey <tom@crayon>
+
+ * main.c, defs.h, symtab.c, error.c: reduce global variables
+
+ * package/debian/changelog, package/byacc.spec, VERSION: bump
+
+ * reader.c:
+ amend fix for Redhat #112617 to still call default_action_warning() for
+ empty rules (report by Bruce Cran).
+
2010-11-22 Thomas Dickey <tom@crayon>
* output.c:
-/* $Id: defs.h,v 1.28 2010/06/10 00:09:42 tom Exp $ */
+/* $Id: defs.h,v 1.29 2010/11/24 15:13:25 tom Exp $ */
#ifdef HAVE_CONFIG_H
#include <config.h>
extern const char *trailer[];
extern char *code_file_name;
-extern char *defines_file_name;
extern char *input_file_name;
-extern char *output_file_name;
-extern char *verbose_file_name;
-extern char *graph_file_name;
extern FILE *action_file;
extern FILE *code_file;
extern void open_error(const char *filename);
extern void over_unionized(char *u_cptr);
extern void prec_redeclared(void);
-extern void print_pos(char *st_line, char *st_cptr);
extern void reprec_warning(char *s);
extern void restarted_warning(void);
extern void retyped_warning(char *s);
extern void graph(void);
/* lalr.c */
-extern int hash(const char *name);
extern void create_symbol_table(void);
extern void free_symbol_table(void);
extern void free_symbols(void);
-/* $Id: error.c,v 1.7 2010/06/06 23:13:17 tom Exp $ */
+/* $Id: error.c,v 1.8 2010/11/24 15:10:20 tom Exp $ */
/* routines for printing error messages */
done(1);
}
-void
+static void
print_pos(char *st_line, char *st_cptr)
{
char *s;
-/* $Id: main.c,v 1.29 2010/06/10 00:39:13 tom Exp $ */
+/* $Id: main.c,v 1.30 2010/11/24 15:13:39 tom Exp $ */
#include <signal.h>
#include <unistd.h> /* for _exit() */
char dflag;
char gflag;
char lflag;
-char oflag;
+static char oflag;
char rflag;
char tflag;
char vflag;
static char *file_prefix = default_file_prefix;
char *code_file_name;
-char *defines_file_name;
char *input_file_name = empty_string;
-char *output_file_name = 0;
-char *verbose_file_name;
-char *graph_file_name;
+static char *defines_file_name;
+static char *graph_file_name;
+static char *output_file_name;
+static char *verbose_file_name;
FILE *action_file; /* a temp file, used to save actions associated */
/* with rules until the parser is written */
Summary: byacc - public domain Berkeley LALR Yacc parser generator
%define AppProgram byacc
-%define AppVersion 20101122
+%define AppVersion 20101124
%define UseProgram yacc
-# $XTermId: byacc.spec,v 1.3 2010/11/22 13:20:54 tom Exp $
+# $XTermId: byacc.spec,v 1.4 2010/11/24 14:55:39 tom Exp $
Name: %{AppProgram}
Version: %{AppVersion}
Release: 1
+byacc (20101124) unstable; urgency=low
+
+ * amend fix for Red Hat #112617 to restore warning message.
+
+ -- Thomas E. Dickey <dickey@invisible-island.net> Mon, 22 Nov 2010 08:21:23 -0500
+
byacc (20101122) unstable; urgency=low
* fix for generated header to avoid symbol conflict
-/* $Id: reader.c,v 1.27 2010/11/22 19:19:17 tom Exp $ */
+/* $Id: reader.c,v 1.28 2010/11/24 14:49:38 tom Exp $ */
#include "defs.h"
if (pitem[i + 1] == 0 || pitem[i + 1]->tag != plhs[nrules]->tag)
default_action_warning();
}
+ else
+ {
+ default_action_warning();
+ }
}
last_was_action = 0;
-/* $Id: symtab.c,v 1.8 2010/06/09 08:58:29 tom Exp $ */
+/* $Id: symtab.c,v 1.9 2010/11/24 15:12:29 tom Exp $ */
#include "defs.h"
bucket *first_symbol;
bucket *last_symbol;
-int
+static int
hash(const char *name)
{
const char *s;