merge conflicts

This commit is contained in:
christos 2021-02-20 22:57:56 +00:00
parent 8ed149fbb5
commit 107c160af6
112 changed files with 1138 additions and 901 deletions

View File

@ -1,11 +1,11 @@
/* $NetBSD: closure.c,v 1.11 2018/12/23 20:27:23 jakllsch Exp $ */
/* $NetBSD: closure.c,v 1.12 2021/02/20 22:57:56 christos Exp $ */
/* Id: closure.c,v 1.11 2014/09/18 00:40:07 tom Exp */
/* Id: closure.c,v 1.13 2020/09/22 20:17:00 tom Exp */
#include "defs.h"
#include <sys/cdefs.h>
__RCSID("$NetBSD: closure.c,v 1.11 2018/12/23 20:27:23 jakllsch Exp $");
__RCSID("$NetBSD: closure.c,v 1.12 2021/02/20 22:57:56 christos Exp $");
Value_t *itemset;
Value_t *itemsetend;
@ -26,7 +26,6 @@ set_EFF(void)
{
unsigned *row;
int symbol;
Value_t *sp;
int rowsize;
int i;
int rule;
@ -37,7 +36,7 @@ set_EFF(void)
row = EFF;
for (i = start_symbol; i < nsyms; i++)
{
sp = derives[i];
Value_t *sp = derives[i];
for (rule = *sp; rule > 0; rule = *++sp)
{
symbol = ritem[rrhs[rule]];
@ -61,9 +60,7 @@ void
set_first_derives(void)
{
unsigned *rrow;
unsigned *vrow;
int j;
unsigned k;
unsigned cword = 0;
Value_t *rp;
@ -82,8 +79,9 @@ set_first_derives(void)
rrow = first_derives + ntokens * rulesetsize;
for (i = start_symbol; i < nsyms; i++)
{
vrow = EFF + ((i - ntokens) * varsetsize);
k = BITS_PER_WORD;
unsigned *vrow = EFF + ((i - ntokens) * varsetsize);
unsigned k = BITS_PER_WORD;
for (j = start_symbol; j < nsyms; k++, j++)
{
if (k >= BITS_PER_WORD)
@ -92,7 +90,7 @@ set_first_derives(void)
k = 0;
}
if (cword & (unsigned)(1 << k))
if (cword & (1U << k))
{
rp = derives[j];
while ((rule = *rp++) >= 0)
@ -116,7 +114,6 @@ void
closure(Value_t *nucleus, int n)
{
unsigned ruleno;
unsigned word;
unsigned i;
Value_t *csp;
unsigned *dsp;
@ -125,7 +122,6 @@ closure(Value_t *nucleus, int n)
Value_t *csend;
unsigned *rsend;
int symbol;
Value_t itemno;
rulesetsize = WORDSIZE(nrules);
@ -136,7 +132,8 @@ closure(Value_t *nucleus, int n)
csend = nucleus + n;
for (csp = nucleus; csp < csend; ++csp)
{
symbol = ritem[*csp];
int symbol = ritem[*csp];
if (ISVAR(symbol))
{
dsp = first_derives + symbol * rulesetsize;
@ -151,12 +148,13 @@ closure(Value_t *nucleus, int n)
csp = nucleus;
for (rsp = ruleset; rsp < rsend; ++rsp)
{
word = *rsp;
unsigned word = *rsp;
if (word)
{
for (i = 0; i < BITS_PER_WORD; ++i)
{
if (word & (unsigned)(1 << i))
if (word & (1U << i))
{
itemno = rrhs[ruleno + i];
while (csp < csend && *csp < itemno)

View File

@ -1,8 +1,8 @@
#! /bin/sh
# Attempt to guess a canonical system name.
# Copyright 1992-2019 Free Software Foundation, Inc.
# Copyright 1992-2020 Free Software Foundation, Inc.
timestamp='2019-06-10'
timestamp='2020-08-17'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
@ -50,7 +50,7 @@ version="\
GNU config.guess ($timestamp)
Originally written by Per Bothner.
Copyright 1992-2019 Free Software Foundation, Inc.
Copyright 1992-2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@ -99,6 +99,8 @@ tmp=
trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15
set_cc_for_build() {
# prevent multiple calls if $tmp is already set
test "$tmp" && return 0
: "${TMPDIR=/tmp}"
# shellcheck disable=SC2039
{ tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
@ -275,12 +277,15 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
*:Sortix:*:*)
echo "$UNAME_MACHINE"-unknown-sortix
exit ;;
*:Twizzler:*:*)
echo "$UNAME_MACHINE"-unknown-twizzler
exit ;;
*:Redox:*:*)
echo "$UNAME_MACHINE"-unknown-redox
exit ;;
mips:OSF1:*.*)
echo mips-dec-osf1
exit ;;
echo mips-dec-osf1
exit ;;
alpha:OSF1:*:*)
case $UNAME_RELEASE in
*4.0)
@ -400,7 +405,7 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
# If there is a compiler, see if it is configured for 64-bit objects.
# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
# This test works for both compilers.
if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
if test "$CC_FOR_BUILD" != no_compiler_found; then
if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
(CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
grep IS_64BIT_ARCH >/dev/null
@ -540,10 +545,10 @@ EOF
AViiON:dgux:*:*)
# DG/UX returns AViiON for all architectures
UNAME_PROCESSOR=`/usr/bin/uname -p`
if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ]
if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110
then
if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \
[ "$TARGET_BINARY_INTERFACE"x = x ]
if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \
test "$TARGET_BINARY_INTERFACE"x = x
then
echo m88k-dg-dgux"$UNAME_RELEASE"
else
@ -576,7 +581,7 @@ EOF
echo i386-ibm-aix
exit ;;
ia64:AIX:*:*)
if [ -x /usr/bin/oslevel ] ; then
if test -x /usr/bin/oslevel ; then
IBM_REV=`/usr/bin/oslevel`
else
IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
@ -616,7 +621,7 @@ EOF
else
IBM_ARCH=powerpc
fi
if [ -x /usr/bin/lslpp ] ; then
if test -x /usr/bin/lslpp ; then
IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
else
@ -651,7 +656,7 @@ EOF
9000/31?) HP_ARCH=m68000 ;;
9000/[34]??) HP_ARCH=m68k ;;
9000/[678][0-9][0-9])
if [ -x /usr/bin/getconf ]; then
if test -x /usr/bin/getconf; then
sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
case "$sc_cpu_version" in
@ -665,7 +670,7 @@ EOF
esac ;;
esac
fi
if [ "$HP_ARCH" = "" ]; then
if test "$HP_ARCH" = ""; then
set_cc_for_build
sed 's/^ //' << EOF > "$dummy.c"
@ -704,7 +709,7 @@ EOF
test -z "$HP_ARCH" && HP_ARCH=hppa
fi ;;
esac
if [ "$HP_ARCH" = hppa2.0w ]
if test "$HP_ARCH" = hppa2.0w
then
set_cc_for_build
@ -778,7 +783,7 @@ EOF
echo hppa1.0-hp-osf
exit ;;
i*86:OSF1:*:*)
if [ -x /usr/sbin/sysversion ] ; then
if test -x /usr/sbin/sysversion ; then
echo "$UNAME_MACHINE"-unknown-osf1mk
else
echo "$UNAME_MACHINE"-unknown-osf1
@ -922,7 +927,7 @@ EOF
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
exit ;;
alpha:Linux:*:*)
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in
EV5) UNAME_MACHINE=alphaev5 ;;
EV56) UNAME_MACHINE=alphaev56 ;;
PCA56) UNAME_MACHINE=alphapca56 ;;
@ -1091,7 +1096,17 @@ EOF
echo "$UNAME_MACHINE"-dec-linux-"$LIBC"
exit ;;
x86_64:Linux:*:*)
echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
set_cc_for_build
LIBCABI=$LIBC
if test "$CC_FOR_BUILD" != no_compiler_found; then
if (echo '#ifdef __ILP32__'; echo IS_X32; echo '#endif') | \
(CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
grep IS_X32 >/dev/null
then
LIBCABI="$LIBC"x32
fi
fi
echo "$UNAME_MACHINE"-pc-linux-"$LIBCABI"
exit ;;
xtensa*:Linux:*:*)
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
@ -1280,7 +1295,7 @@ EOF
echo mips-sony-newsos6
exit ;;
R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
if [ -d /usr/nec ]; then
if test -d /usr/nec; then
echo mips-nec-sysv"$UNAME_RELEASE"
else
echo mips-unknown-sysv"$UNAME_RELEASE"
@ -1328,6 +1343,9 @@ EOF
*:Rhapsody:*:*)
echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE"
exit ;;
arm64:Darwin:*:*)
echo aarch64-apple-darwin"$UNAME_RELEASE"
exit ;;
*:Darwin:*:*)
UNAME_PROCESSOR=`uname -p`
case $UNAME_PROCESSOR in
@ -1342,7 +1360,7 @@ EOF
else
set_cc_for_build
fi
if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
if test "$CC_FOR_BUILD" != no_compiler_found; then
if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
(CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
grep IS_64BIT_ARCH >/dev/null
@ -1625,6 +1643,12 @@ copies of config.guess and config.sub with the latest versions from:
https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
and
https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
EOF
year=`echo $timestamp | sed 's,-.*,,'`
# shellcheck disable=SC2003
if test "`expr "\`date +%Y\`" - "$year"`" -lt 3 ; then
cat >&2 <<EOF
If $0 has already been updated, send the following data and any
information you think might be pertinent to config-patches@gnu.org to
@ -1652,6 +1676,7 @@ UNAME_RELEASE = "$UNAME_RELEASE"
UNAME_SYSTEM = "$UNAME_SYSTEM"
UNAME_VERSION = "$UNAME_VERSION"
EOF
fi
exit 1

File diff suppressed because it is too large Load Diff

View File

@ -21,6 +21,15 @@
/* Define if you have the <fcntl.h> header file. */
#undef HAVE_FCNTL_H
/* Define if you have the `getopt' function. */
#undef HAVE_GETOPT
/* Define if you have the <getopt.h> header file. */
#undef HAVE_GETOPT_H
/* Define to 1 if getopt variables are declared in header */
#undef HAVE_GETOPT_HEADER
/* Define if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
@ -66,6 +75,9 @@
/* Define to 1 if filesystem supports mixed-case filenames. */
#undef MIXEDCASE_FILENAMES
/* Define to 1 if we must include getopt.h */
#undef NEED_GETOPT_H
/* Define to 1 if you want to perform memory-leak testing. */
#undef NO_LEAKS

View File

@ -1,6 +1,6 @@
/* $NetBSD: defs.h,v 1.18 2020/05/22 22:59:14 jmcneill Exp $ */
/* $NetBSD: defs.h,v 1.19 2021/02/20 22:57:56 christos Exp $ */
/* Id: defs.h,v 1.61 2019/06/16 15:07:51 tom Exp */
/* Id: defs.h,v 1.66 2020/09/10 20:21:20 tom Exp */
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
@ -22,8 +22,8 @@
#define class myClass
#endif
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define CONCAT(first,second) first #second
#define CONCAT1(string,number) CONCAT(string, number)
@ -107,40 +107,48 @@
/* keyword codes */
#define TOKEN 0
#define LEFT 1
#define RIGHT 2
#define NONASSOC 3
#define MARK 4
#define TEXT 5
#define TYPE 6
#define START 7
#define UNION 8
#define IDENT 9
#define EXPECT 10
#define EXPECT_RR 11
#define PURE_PARSER 12
#define PARSE_PARAM 13
#define LEX_PARAM 14
#define POSIX_YACC 15
#define TOKEN_TABLE 16
#define ERROR_VERBOSE 17
#define XXXDEBUG 18
#define XCODE 19
typedef enum
{
TOKEN = 0
,LEFT
,RIGHT
,NONASSOC
,MARK
,TEXT
,TYPE
,START
,UNION
,IDENT
,EXPECT
,EXPECT_RR
,PURE_PARSER
,PARSE_PARAM
,LEX_PARAM
,POSIX_YACC
,TOKEN_TABLE
,ERROR_VERBOSE
,XXXDEBUG
,XCODE
#if defined(YYBTYACC)
#define LOCATIONS 20
#define DESTRUCTOR 21
#define INITIAL_ACTION 22
,LOCATIONS
,DESTRUCTOR
,INITIAL_ACTION
#endif
}
KEY_CASES;
/* symbol classes */
#define UNKNOWN 0
#define TERM 1
#define NONTERM 2
#define ACTION 3
#define ARGUMENT 4
typedef enum
{
UNKNOWN = 0
,TERM
,NONTERM
,ACTION
,ARGUMENT
}
SYM_CASES;
/* the undefined value */
@ -157,7 +165,6 @@
#define IS_NAME2(c) (isalnum(UCH(c)) || (c) == '_' || (c) == '$')
#define IS_IDENT(c) (isalnum(UCH(c)) || (c) == '_' || (c) == '.' || (c) == '$')
#define IS_OCTAL(c) ((c) >= '0' && (c) <= '7')
#define NUMERIC_VALUE(c) ((c) - '0')
/* symbol macros */
@ -567,6 +574,7 @@ struct mstring
extern void msprintf(struct mstring *, const char *, ...) GCC_PRINTFLIKE(2,3);
extern int mputchar(struct mstring *, int);
extern struct mstring *msnew(void);
extern struct mstring *msrenew(char *);
extern char *msdone(struct mstring *);
extern int strnscmp(const char *, const char *);
extern unsigned int strnshash(const char *);
@ -581,16 +589,23 @@ extern void output(void);
/* reader.c */
extern void reader(void);
#define CODE_HEADER 0
#define CODE_REQUIRES 1
#define CODE_PROVIDES 2
#define CODE_TOP 3
#define CODE_IMPORTS 4
#define CODE_MAX 5
struct code_lines {
char *lines;
size_t num;
};
typedef enum
{
CODE_HEADER = 0
,CODE_REQUIRES
,CODE_PROVIDES
,CODE_TOP
,CODE_IMPORTS
,CODE_MAX /* this must be last */
}
CODE_CASES;
extern struct code_lines
{
const char *name;
char *lines;
size_t num;
}
code_lines[CODE_MAX];
/* skeleton.c (generated by skel2c) */
extern void write_section(FILE * fp, const char *const section[]);

View File

@ -1,10 +1,10 @@
/* $NetBSD: graph.c,v 1.8 2018/12/23 20:27:23 jakllsch Exp $ */
/* $NetBSD: graph.c,v 1.9 2021/02/20 22:57:56 christos Exp $ */
#include "defs.h"
/* Id: graph.c,v 1.8 2014/02/19 00:46:57 Tom.Shields Exp */
/* Id: graph.c,v 1.9 2020/09/10 17:22:51 tom Exp */
#include <sys/cdefs.h>
__RCSID("$NetBSD: graph.c,v 1.8 2018/12/23 20:27:23 jakllsch Exp $");
__RCSID("$NetBSD: graph.c,v 1.9 2021/02/20 22:57:56 christos Exp $");
static void graph_state(int stateno);
static void graph_LA(int ruleno);
@ -56,15 +56,16 @@ static void
graph_state(int stateno)
{
Value_t *isp;
int rule;
Value_t *sp;
Value_t *sp1;
larno = (unsigned)lookaheads[stateno];
fprintf(graph_file, "\n\tq%d [label=\"%d:\\l", stateno, stateno);
for (isp = itemset; isp < itemsetend; isp++)
{
Value_t *sp1;
int rule;
sp1 = sp = ritem + *isp;
while (*sp >= 0)
@ -94,15 +95,14 @@ graph_state(int stateno)
static void
graph_LA(int ruleno)
{
int i;
unsigned tokensetsize;
unsigned *rowp;
tokensetsize = (unsigned)WORDSIZE(ntokens);
if (ruleno == LAruleno[larno])
{
rowp = LA + larno * tokensetsize;
int i;
unsigned *rowp = LA + larno * tokensetsize;
fprintf(graph_file, " { ");
for (i = ntokens - 1; i >= 0; i--)

View File

@ -1,10 +1,10 @@
/* $NetBSD: lalr.c,v 1.10 2018/12/23 20:27:23 jakllsch Exp $ */
/* $NetBSD: lalr.c,v 1.11 2021/02/20 22:57:56 christos Exp $ */
#include "defs.h"
/* Id: lalr.c,v 1.12 2016/06/07 00:28:03 tom Exp */
/* Id: lalr.c,v 1.13 2020/09/10 17:26:21 tom Exp */
#include <sys/cdefs.h>
__RCSID("$NetBSD: lalr.c,v 1.10 2018/12/23 20:27:23 jakllsch Exp $");
__RCSID("$NetBSD: lalr.c,v 1.11 2021/02/20 22:57:56 christos Exp $");
typedef struct shorts
{
@ -187,7 +187,6 @@ set_goto_map(void)
Value_t *temp_base;
Value_t *temp_map;
Value_t state2;
Value_t state1;
goto_base = NEW2(nvars + 1, Value_t);
temp_base = NEW2(nvars + 1, Value_t);
@ -231,7 +230,8 @@ set_goto_map(void)
for (sp = first_shift; sp; sp = sp->next)
{
state1 = sp->number;
Value_t state1 = sp->number;
for (i = sp->nshifts - 1; i >= 0; i--)
{
state2 = sp->shift[i];
@ -254,16 +254,14 @@ set_goto_map(void)
static Value_t
map_goto(int state, int symbol)
{
int high;
int low;
int middle;
int s;
low = goto_map[symbol];
high = goto_map[symbol + 1];
int low = goto_map[symbol];
int high = goto_map[symbol + 1];
for (;;)
{
int middle;
int s;
assert(low <= high);
middle = (low + high) >> 1;
s = from_state[middle];
@ -288,7 +286,6 @@ initialize_F(void)
Value_t *rp;
Value_t **reads;
int nedges;
int stateno;
int symbol;
int nwords;
@ -302,7 +299,8 @@ initialize_F(void)
rowp = F;
for (i = 0; i < ngotos; i++)
{
stateno = to_state[i];
int stateno = to_state[i];
sp = shift_table[stateno];
if (sp)
@ -362,11 +360,8 @@ build_relations(void)
Value_t *rp;
shifts *sp;
int length;
int nedges;
int done_flag;
Value_t state1;
Value_t stateno;
int symbol1;
int symbol2;
Value_t *shortp;
Value_t *edge;
@ -379,9 +374,9 @@ build_relations(void)
for (i = 0; i < ngotos; i++)
{
nedges = 0;
state1 = from_state[i];
symbol1 = accessing_symbol[to_state[i]];
int nedges = 0;
int symbol1 = accessing_symbol[to_state[i]];
Value_t state1 = from_state[i];
for (rulep = derives[symbol1]; *rulep >= 0; rulep++)
{
@ -479,7 +474,6 @@ transpose(Value_t **R2, int n)
Value_t *nedges;
Value_t *sp;
int i;
int k;
nedges = NEW2(n, Value_t);
@ -498,7 +492,8 @@ transpose(Value_t **R2, int n)
for (i = 0; i < n; i++)
{
k = nedges[i];
int k = nedges[i];
if (k > 0)
{
sp = NEW2(k + 1, Value_t);
@ -650,10 +645,10 @@ traverse(int i)
void
lalr_leaks(void)
{
int i;
if (includes != 0)
{
int i;
for (i = 0; i < ngotos; i++)
{
free(includes[i]);

View File

@ -1,11 +1,11 @@
/* $NetBSD: lr0.c,v 1.12 2018/12/23 20:27:23 jakllsch Exp $ */
/* $NetBSD: lr0.c,v 1.13 2021/02/20 22:57:56 christos Exp $ */
/* Id: lr0.c,v 1.19 2016/06/07 00:21:53 tom Exp */
/* Id: lr0.c,v 1.20 2020/09/10 17:30:37 tom Exp */
#include "defs.h"
#include <sys/cdefs.h>
__RCSID("$NetBSD: lr0.c,v 1.12 2018/12/23 20:27:23 jakllsch Exp $");
__RCSID("$NetBSD: lr0.c,v 1.13 2021/02/20 22:57:56 christos Exp $");
static core *new_state(int symbol);
static Value_t get_state(int symbol);
@ -49,7 +49,6 @@ allocate_itemsets(void)
{
Value_t *itemp;
Value_t *item_end;
int symbol;
int i;
int count;
int max;
@ -61,7 +60,8 @@ allocate_itemsets(void)
item_end = ritem + nitems;
for (itemp = ritem; itemp < item_end; itemp++)
{
symbol = *itemp;
int symbol = *itemp;
if (symbol >= 0)
{
count++;
@ -99,7 +99,6 @@ static void
append_states(void)
{
int i;
int j;
Value_t symbol;
#ifdef TRACE
@ -107,8 +106,9 @@ append_states(void)
#endif
for (i = 1; i < nshifts; i++)
{
int j = i;
symbol = shift_symbol[i];
j = i;
while (j > 0 && shift_symbol[j - 1] > symbol)
{
shift_symbol[j] = shift_symbol[j - 1];
@ -166,10 +166,8 @@ get_state(int symbol)
{
int key;
Value_t *isp1;
Value_t *isp2;
Value_t *iend;
core *sp;
int found;
int n;
#ifdef TRACE
@ -185,11 +183,14 @@ get_state(int symbol)
sp = state_set[key];
if (sp)
{
found = 0;
int found = 0;
while (!found)
{
if (sp->nitems == n)
{
Value_t *isp2;
found = 1;
isp1 = kernel_base[symbol];
isp2 = sp->items;
@ -257,7 +258,6 @@ new_itemsets(void)
int shiftcount;
Value_t *isp;
Value_t *ksp;
Value_t symbol;
for (i = 0; i < nsyms; i++)
kernel_end[i] = 0;
@ -266,8 +266,9 @@ new_itemsets(void)
isp = itemset;
while (isp < itemsetend)
{
i = *isp++;
symbol = ritem[i];
int j = *isp++;
Value_t symbol = ritem[j];
if (symbol > 0)
{
ksp = kernel_end[symbol];
@ -277,7 +278,7 @@ new_itemsets(void)
ksp = kernel_base[symbol];
}
*ksp++ = (Value_t)(i + 1);
*ksp++ = (Value_t)(j + 1);
kernel_end[symbol] = ksp;
}
}
@ -440,16 +441,14 @@ save_reductions(void)
{
Value_t *isp;
Value_t *rp1;
Value_t *rp2;
int item;
Value_t count;
reductions *p;
Value_t *rend;
count = 0;
for (isp = itemset; isp < itemsetend; isp++)
{
item = ritem[*isp];
int item = ritem[*isp];
if (item < 0)
{
redset[count++] = (Value_t)-item;
@ -458,6 +457,9 @@ save_reductions(void)
if (count)
{
Value_t *rp2;
Value_t *rend;
p = (reductions *)allocate((sizeof(reductions) +
(unsigned)(count - 1) *
sizeof(Value_t)));

View File

@ -1,13 +1,13 @@
/* $NetBSD: main.c,v 1.18 2019/10/06 23:29:42 christos Exp $ */
/* $NetBSD: main.c,v 1.19 2021/02/20 22:57:56 christos Exp $ */
#include "defs.h"
#include <sys/cdefs.h>
__RCSID("$NetBSD: main.c,v 1.18 2019/10/06 23:29:42 christos Exp $");
/* Id: main.c,v 1.65 2019/06/16 19:59:58 tom Exp */
__RCSID("$NetBSD: main.c,v 1.19 2021/02/20 22:57:56 christos Exp $");
/* Id: main.c,v 1.70 2020/09/10 17:32:55 tom Exp */
#include <signal.h>
#ifndef _WIN32
#if !defined(_WIN32) || defined(__MINGW32__)
#include <unistd.h> /* for _exit() */
#else
#include <stdlib.h> /* for _exit() */
@ -317,6 +317,46 @@ static void
getargs(int argc, char *argv[])
{
int i;
#ifdef HAVE_GETOPT
int ch;
if (argc > 0)
myname = argv[0];
while ((ch = getopt(argc, argv, "Bb:dgH:ilLo:Pp:rstVvy")) != -1)
{
switch (ch)
{
case 'b':
file_prefix = optarg;
break;
case 'H':
dflag = dflag2 = 1;
defines_file_name = optarg;
break;
case 'o':
output_file_name = optarg;
break;
case 'p':
symbol_prefix = optarg;
break;
default:
setflag(ch);
break;
}
}
if ((i = optind) < argc)
{
/* getopt handles "--" specially, while we handle "-" specially */
if (!strcmp(argv[i], "-"))
{
if ((i + 1) < argc)
usage();
input_file = stdin;
return;
}
}
#else
char *s;
int ch;
@ -398,7 +438,9 @@ getargs(int argc, char *argv[])
end_of_option:;
}
no_more_options:;
no_more_options:
#endif /* HAVE_GETOPT */
if (i + 1 != argc)
usage();
input_file_name_len = strlen(argv[i]);
@ -622,10 +664,8 @@ open_tmpfile(const char *label)
#define MY_FMT "%s/%.*sXXXXXX"
FILE *result;
#if USE_MKSTEMP
int fd;
const char *tmpdir;
char *name;
const char *mark;
if (((tmpdir = getenv("TMPDIR")) == 0 || access(tmpdir, W_OK) != 0) ||
((tmpdir = getenv("TEMP")) == 0 || access(tmpdir, W_OK) != 0))
@ -648,6 +688,9 @@ open_tmpfile(const char *label)
result = 0;
if (name != 0)
{
int fd;
const char *mark;
mode_t save_umask = umask(0177);
if ((mark = strrchr(label, '_')) == 0)
@ -655,27 +698,28 @@ open_tmpfile(const char *label)
sprintf(name, MY_FMT, tmpdir, (int)(mark - label), label);
fd = mkstemp(name);
if (fd >= 0)
if (fd >= 0
&& (result = fdopen(fd, "w+")) != 0)
{
result = fdopen(fd, "w+");
if (result != 0)
MY_TMPFILES *item;
if (my_tmpfiles == 0)
{
MY_TMPFILES *item;
if (my_tmpfiles == 0)
{
atexit(close_tmpfiles);
}
item = NEW(MY_TMPFILES);
NO_SPACE(item);
item->name = name;
NO_SPACE(item->name);
item->next = my_tmpfiles;
my_tmpfiles = item;
atexit(close_tmpfiles);
}
item = NEW(MY_TMPFILES);
NO_SPACE(item);
item->name = name;
NO_SPACE(item->name);
item->next = my_tmpfiles;
my_tmpfiles = item;
}
else
{
FREE(name);
}
(void)umask(save_umask);
}

View File

@ -1,11 +1,11 @@
/* $NetBSD: mkpar.c,v 1.12 2018/12/23 20:27:23 jakllsch Exp $ */
/* $NetBSD: mkpar.c,v 1.13 2021/02/20 22:57:56 christos Exp $ */
/* Id: mkpar.c,v 1.15 2016/06/07 00:22:12 tom Exp */
/* Id: mkpar.c,v 1.17 2020/09/10 17:37:33 tom Exp */
#include "defs.h"
#include <sys/cdefs.h>
__RCSID("$NetBSD: mkpar.c,v 1.12 2018/12/23 20:27:23 jakllsch Exp $");
__RCSID("$NetBSD: mkpar.c,v 1.13 2021/02/20 22:57:56 christos Exp $");
#define NotSuppressed(p) ((p)->suppressed == 0)
@ -81,18 +81,19 @@ get_shifts(int stateno)
action *actions, *temp;
shifts *sp;
Value_t *to_state2;
Value_t i, k;
Value_t symbol;
actions = 0;
sp = shift_table[stateno];
if (sp)
{
Value_t i;
to_state2 = sp->shift;
for (i = (Value_t)(sp->nshifts - 1); i >= 0; i--)
{
k = to_state2[i];
symbol = accessing_symbol[k];
Value_t k = to_state2[i];
Value_t symbol = accessing_symbol[k];
if (ISTOKEN(symbol))
{
temp = NEW(action);
@ -113,16 +114,16 @@ static action *
add_reductions(int stateno, action *actions)
{
int i, j, m, n;
int ruleno, tokensetsize;
unsigned *rowp;
int tokensetsize;
tokensetsize = WORDSIZE(ntokens);
m = lookaheads[stateno];
n = lookaheads[stateno + 1];
for (i = m; i < n; i++)
{
ruleno = LAruleno[i];
rowp = LA + i * tokensetsize;
int ruleno = LAruleno[i];
unsigned *rowp = LA + i * tokensetsize;
for (j = ntokens - 1; j >= 0; j--)
{
if (BIT(rowp, j))
@ -175,18 +176,21 @@ add_reduce(action *actions,
static void
find_final_state(void)
{
int goal, i;
Value_t *to_state2;
shifts *p;
p = shift_table[0];
to_state2 = p->shift;
goal = ritem[1];
for (i = p->nshifts - 1; i >= 0; --i)
if ((p = shift_table[0]) != 0)
{
final_state = to_state2[i];
if (accessing_symbol[final_state] == goal)
break;
int i;
int goal = ritem[1];
to_state2 = p->shift;
for (i = p->nshifts - 1; i >= 0; --i)
{
final_state = to_state2[i];
if (accessing_symbol[final_state] == goal)
break;
}
}
}
@ -229,7 +233,6 @@ static void
remove_conflicts(void)
{
int i;
int symbol;
action *p, *pref = 0;
SRtotal = 0;
@ -238,9 +241,10 @@ remove_conflicts(void)
RRconflicts = NEW2(nstates, Value_t);
for (i = 0; i < nstates; i++)
{
int symbol = -1;
SRcount = 0;
RRcount = 0;
symbol = -1;
#if defined(YYBTYACC)
pref = NULL;
#endif

View File

@ -1,12 +1,12 @@
/* $NetBSD: mstring.c,v 1.5 2017/02/11 19:33:12 christos Exp $ */
/* $NetBSD: mstring.c,v 1.6 2021/02/20 22:57:56 christos Exp $ */
/* Id: mstring.c,v 1.7 2016/12/02 17:57:21 tom Exp */
/* Id: mstring.c,v 1.9 2019/11/19 23:54:53 tom Exp */
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
#include <sys/cdefs.h>
__RCSID("$NetBSD: mstring.c,v 1.5 2017/02/11 19:33:12 christos Exp $");
__RCSID("$NetBSD: mstring.c,v 1.6 2021/02/20 22:57:56 christos Exp $");
#include <stdlib.h>
#include <stdio.h>
@ -20,13 +20,11 @@ __RCSID("$NetBSD: mstring.c,v 1.5 2017/02/11 19:33:12 christos Exp $");
#define HEAD 24
#define TAIL 8
#if defined(YYBTYACC)
static char *buf_ptr;
static size_t buf_len;
void
msprintf(struct mstring *s, const char *fmt,...)
msprintf(struct mstring *s, const char *fmt, ...)
{
va_list args;
size_t len;
@ -99,7 +97,6 @@ msprintf(struct mstring *s, const char *fmt,...)
memcpy(s->ptr, buf_ptr, len);
s->ptr += len;
}
#endif
int
mputchar(struct mstring *s, int ch)
@ -144,6 +141,20 @@ msnew(void)
return n;
}
struct mstring *
msrenew(char *value)
{
struct mstring *r = 0;
if (value != 0)
{
r = msnew();
r->base = value;
r->end = value + strlen(value);
r->ptr = r->end;
}
return r;
}
char *
msdone(struct mstring *s)
{
@ -206,10 +217,8 @@ strnshash(const char *s)
void
mstring_leaks(void)
{
#if defined(YYBTYACC)
free(buf_ptr);
buf_ptr = 0;
buf_len = 0;
#endif
}
#endif

View File

@ -1,11 +1,11 @@
/* $NetBSD: output.c,v 1.22 2020/05/22 22:59:14 jmcneill Exp $ */
/* $NetBSD: output.c,v 1.23 2021/02/20 22:57:56 christos Exp $ */
/* Id: output.c,v 1.87 2018/05/10 09:08:46 tom Exp */
/* Id: output.c,v 1.94 2020/09/10 20:24:30 tom Exp */
#include "defs.h"
#include <sys/cdefs.h>
__RCSID("$NetBSD: output.c,v 1.22 2020/05/22 22:59:14 jmcneill Exp $");
__RCSID("$NetBSD: output.c,v 1.23 2021/02/20 22:57:56 christos Exp $");
#define StaticOrR (rflag ? "" : "static ")
#define CountLine(fp) (!rflag || ((fp) == code_file))
@ -36,18 +36,6 @@ static Value_t *check;
static int lowzero;
static long high;
struct code_lines code_lines[CODE_MAX];
static void
output_code_lines(FILE *fp, int cl)
{
if (code_lines[cl].lines == NULL)
return;
if (fp == code_file)
outline += code_lines[cl].num;
fputs(code_lines[cl].lines, fp);
}
static void
putc_code(FILE * fp, int c)
{
@ -202,6 +190,27 @@ output_prefix(FILE * fp)
fprintf(fp, "#define YYPREFIX \"%s\"\n", symbol_prefix);
}
static void
output_code_lines(FILE * fp, int cl)
{
if (code_lines[cl].lines != NULL)
{
if (fp == code_file)
{
outline += (int)code_lines[cl].num;
outline += 3;
fprintf(fp, "\n");
}
fprintf(fp, "/* %%code \"%s\" block start */\n", code_lines[cl].name);
fputs(code_lines[cl].lines, fp);
fprintf(fp, "/* %%code \"%s\" block end */\n", code_lines[cl].name);
if (fp == code_file)
{
write_code_lineno(fp);
}
}
}
static void
output_newline(void)
{
@ -368,11 +377,11 @@ output_yydefred(void)
static void
output_accessing_symbols(void)
{
int i, j;
int *translate;
if (nstates != 0)
{
int i, j;
int *translate;
translate = TMALLOC(int, nstates);
NO_SPACE(translate);
@ -787,11 +796,9 @@ static int
matching_vector(int vector)
{
int i;
int j;
int k;
int t;
int w;
int match;
int prev;
i = order[vector];
@ -803,19 +810,25 @@ matching_vector(int vector)
for (prev = vector - 1; prev >= 0; prev--)
{
j = order[prev];
int j = order[prev];
if (width[j] != w || tally[j] != t)
return (-1);
match = 1;
for (k = 0; match && k < t; k++)
{
if (tos[j][k] != tos[i][k] || froms[j][k] != froms[i][k])
match = 0;
return (-1);
}
else
{
int match = 1;
if (match)
return (j);
for (k = 0; match && k < t; k++)
{
if (tos[j][k] != tos[i][k] || froms[j][k] != froms[i][k])
match = 0;
}
if (match)
return (j);
}
}
return (-1);
@ -909,7 +922,6 @@ pack_table(void)
{
int i;
Value_t place;
int state;
base = NEW2(nvectors, Value_t);
pos = NEW2(nentries, Value_t);
@ -926,7 +938,7 @@ pack_table(void)
for (i = 0; i < nentries; i++)
{
state = matching_vector(i);
int state = matching_vector(i);
if (state < 0)
place = (Value_t)pack_vector(i);
@ -1221,11 +1233,16 @@ static void
output_defines(FILE * fp)
{
int c, i;
char *s;
if (fp == defines_file)
{
output_code_lines(fp, CODE_REQUIRES);
}
for (i = 2; i < ntokens; ++i)
{
s = symbol_name[i];
char *s = symbol_name[i];
if (is_C_identifier(s) && (!sflag || *s != '"'))
{
fprintf(fp, "#define ");
@ -1258,7 +1275,6 @@ output_defines(FILE * fp)
if (fp == defines_file)
{
output_code_lines(fp, CODE_REQUIRES);
output_code_lines(fp, CODE_PROVIDES);
}
@ -1301,9 +1317,9 @@ output_stored_text(FILE * fp)
int c;
FILE *in;
rewind(text_file);
if (text_file == NULL)
open_error("text_file");
rewind(text_file);
in = text_file;
if ((c = getc(in)) == EOF)
return;
@ -2078,10 +2094,6 @@ output(void)
output_externs(externs_file, global_vars);
if (!pure_parser)
output_externs(externs_file, impure_vars);
}
if (iflag)
{
if (dflag)
{
++outline;
@ -2111,22 +2123,30 @@ output(void)
output_actions();
free_parser();
output_debug();
if (rflag)
{
write_section(code_file, xdecls);
output_YYINT_typedef(code_file);
write_section(code_file, tables);
}
write_section(code_file, global_vars);
if (!pure_parser)
{
write_section(code_file, impure_vars);
}
output_code_lines(code_file, CODE_REQUIRES);
write_section(code_file, hdr_defs);
if (!pure_parser)
{
write_section(code_file, hdr_vars);
}
output_code_lines(code_file, CODE_PROVIDES);
output_code_lines(code_file, CODE_HEADER);
output_trailing_text();
#if defined(YYBTYACC)
if (destructor)

View File

@ -1,16 +1,16 @@
/* $NetBSD: reader.c,v 1.18 2020/05/22 22:59:14 jmcneill Exp $ */
/* $NetBSD: reader.c,v 1.19 2021/02/20 22:57:56 christos Exp $ */
/* Id: reader.c,v 1.74 2017/12/04 17:50:02 tom Exp */
/* Id: reader.c,v 1.84 2020/09/10 20:26:13 tom Exp */
#include "defs.h"
#include <sys/cdefs.h>
__RCSID("$NetBSD: reader.c,v 1.18 2020/05/22 22:59:14 jmcneill Exp $");
__RCSID("$NetBSD: reader.c,v 1.19 2021/02/20 22:57:56 christos Exp $");
/* The line size must be a positive integer. One hundred was chosen */
/* because few lines in Yacc input grammars exceed 100 characters. */
/* Note that if a line exceeds LINESIZE characters, the line buffer */
/* will be expanded to accomodate it. */
/* will be expanded to accommodate it. */
#define LINESIZE 100
@ -67,11 +67,12 @@ char line_format[] = "#line %d \"%s\"\n";
param *lex_param;
param *parse_param;
static const char *code_keys[] = {
"", "requires", "provides", "top", "imports",
static const char *code_keys[] =
{
"", "requires", "provides", "top", "imports",
};
extern struct code_lines code_lines[CODE_MAX];
struct code_lines code_lines[CODE_MAX];
#if defined(YYBTYACC)
int destructor = 0; /* =1 if at least one %destructor */
@ -189,7 +190,7 @@ line_directive(void)
else
UNLESS(!isdigit(UCH(ch)));
line_1st = n;
ld = ldNUM;
ld = ldNUM; /* this is needed, but cppcheck says no... */
/* FALLTHRU */
case ldNUM:
if (isdigit(UCH(ch)))
@ -265,11 +266,12 @@ static void
get_line(void)
{
FILE *f = input_file;
int c;
int i;
do
{
int c;
int i;
if (saw_eof || (c = getc(f)) == EOF)
{
if (line)
@ -461,7 +463,7 @@ keywords[] = {
{ "error-verbose",ERROR_VERBOSE },
{ "expect", EXPECT },
{ "expect-rr", EXPECT_RR },
{ "ident", IDENT },
{ "ident", IDENT },
#if defined(YYBTYACC)
{ "initial-action", INITIAL_ACTION },
#endif
@ -473,11 +475,11 @@ keywords[] = {
{ "nonassoc", NONASSOC },
{ "parse-param", PARSE_PARAM },
{ "pure-parser", PURE_PARSER },
{ "right", RIGHT },
{ "right", RIGHT },
{ "start", START },
{ "term", TOKEN },
{ "token", TOKEN },
{ "token-table", TOKEN_TABLE },
{ "token-table", TOKEN_TABLE },
{ "type", TYPE },
{ "union", UNION },
{ "yacc", POSIX_YACC },
@ -497,11 +499,12 @@ keyword(void)
{
int c;
char *t_cptr = cptr;
struct keyword *key;
c = *++cptr;
if (isalpha(UCH(c)))
{
struct keyword *key;
cinc = 0;
for (;;)
{
@ -592,7 +595,6 @@ static char *
copy_string(int quote)
{
struct mstring *temp = msnew();
int c;
struct ainfo a;
a.a_lineno = lineno;
a.a_line = dup_line();
@ -600,7 +602,8 @@ copy_string(int quote)
for (;;)
{
c = *cptr++;
int c = *cptr++;
mputc(temp, c);
if (c == quote)
{
@ -686,13 +689,13 @@ check_key(int pos)
return 1;
}
static void
copy_code(void)
{
int c;
int curl;
int cline = 0;
int cline;
int on_line = 0;
int pos = CODE_HEADER;
struct mstring *code_mstr;
@ -724,27 +727,35 @@ copy_code(void)
case 'i':
pos = CODE_IMPORTS;
break;
default:
default:
break;
}
if (pos == -1 || !check_key(pos))
{
syntax_error(lineno, line, cptr);
return;
/*NOTREACHED */
}
}
}
cptr++; /* skip initial curl */
cptr++; /* skip initial curl */
while (*cptr && isspace(UCH(*cptr))) /* skip space */
cptr++;
curl = 1; /* nesting count */
curl = 1; /* nesting count */
/* gather text */
code_mstr = msnew();
code_lines[pos].name = code_keys[pos];
if ((cline = (int)code_lines[pos].num) != 0)
{
code_mstr = msrenew(code_lines[pos].lines);
}
else
{
code_mstr = msnew();
}
cline++;
msprintf(code_mstr, "/* %%code %s block start */\n", code_keys[pos]);
msprintf(code_mstr, line_format, lineno, input_file_name);
for (;;)
{
c = *cptr++;
@ -755,11 +766,12 @@ copy_code(void)
if (line == NULL)
{
unexpected_EOF();
return;
/*NOTREACHED */
}
continue;
case '\n':
cline++;
on_line = 0;
break;
case L_CURL:
curl++;
@ -767,11 +779,13 @@ copy_code(void)
case R_CURL:
if (--curl == 0)
{
cline++;
msprintf(code_mstr, "/* %%code %s block end */\n",
code_keys[pos]);
if (on_line > 1)
{
mputc(code_mstr, '\n');
cline++;
}
code_lines[pos].lines = msdone(code_mstr);
code_lines[pos].num = cline;
code_lines[pos].num = (size_t) cline;
return;
}
break;
@ -779,6 +793,7 @@ copy_code(void)
break;
}
mputc(code_mstr, c);
on_line++;
}
}
@ -1135,17 +1150,21 @@ copy_param(int k)
{
buf_size = (size_t) linesize;
buf = TMALLOC(char, buf_size);
NO_SPACE(buf);
}
else if (c == '\n')
{
char *tmp;
get_line();
if (line == NULL)
unexpected_EOF();
--cptr;
buf_size += (size_t) linesize;
buf = TREALLOC(char, buf, buf_size);
tmp = TREALLOC(char, buf, buf_size);
NO_SPACE(tmp);
buf = tmp;
}
NO_SPACE(buf);
if (curly)
{
if ((state == 2) && (c == L_CURL))
@ -1196,13 +1215,21 @@ copy_param(int k)
if (parms[i] == ']')
{
int level = 1;
while (i >= 0 && level > 0 && parms[i] != '[')
while (i >= 0)
{
if (parms[i] == ']')
char ch = parms[i--];
if (ch == ']')
{
++level;
else if (parms[i] == '[')
--level;
i--;
}
else if (ch == '[')
{
if (--level <= 1)
{
++i;
break;
}
}
}
if (i <= 0)
unexpected_EOF();
@ -1426,8 +1453,6 @@ get_literal(void)
static int
is_reserved(char *name)
{
char *s;
if (strcmp(name, ".") == 0 ||
strcmp(name, "$accept") == 0 ||
strcmp(name, "$end") == 0)
@ -1435,7 +1460,8 @@ is_reserved(char *name)
if (name[0] == '$' && name[1] == '$' && isdigit(UCH(name[2])))
{
s = name + 3;
char *s = name + 3;
while (isdigit(UCH(*s)))
++s;
if (*s == NUL)
@ -1683,14 +1709,14 @@ static void
declare_argtypes(bucket *bp)
{
char *tags[MAXARGS];
int args = 0, c;
int args = 0;
if (bp->args >= 0)
retyped_warning(bp->name);
cptr++; /* skip open paren */
for (;;)
{
c = nextc();
int c = nextc();
if (c == EOF)
unexpected_EOF();
if (c != '<')
@ -1785,15 +1811,15 @@ declare_start(void)
static void
read_declarations(void)
{
int c, k;
cache_size = CACHE_SIZE;
cache = TMALLOC(char, cache_size);
NO_SPACE(cache);
for (;;)
{
c = nextc();
int k;
int c = nextc();
if (c == EOF)
unexpected_EOF();
if (c != '%')
@ -2120,7 +2146,7 @@ compile_arg(char **theptr, char *yyvaltag)
{
char *p = *theptr;
struct mstring *c = msnew();
int i, j, n;
int i, n;
Value_t *offsets = NULL, maxoffset;
bucket **rhs;
@ -2134,6 +2160,8 @@ compile_arg(char **theptr, char *yyvaltag)
}
if (maxoffset > 0)
{
int j;
offsets = TMALLOC(Value_t, maxoffset + 1);
NO_SPACE(offsets);
@ -2223,7 +2251,7 @@ can_elide_arg(char **theptr, char *yyvaltag)
{
char *p = *theptr;
int rv = 0;
int i, j, n = 0;
int i, n = 0;
Value_t *offsets = NULL, maxoffset = 0;
bucket **rhs;
char *tag = 0;
@ -2243,6 +2271,8 @@ can_elide_arg(char **theptr, char *yyvaltag)
}
if (maxoffset > 0)
{
int j;
offsets = TMALLOC(Value_t, maxoffset + 1);
NO_SPACE(offsets);
@ -2276,7 +2306,10 @@ can_elide_arg(char **theptr, char *yyvaltag)
{
char *arg;
if (!(p = parse_id(p, &arg)))
{
FREE(offsets);
return 0;
}
for (i = plhs[nrules]->args - 1; i >= 0; i--)
if (arg == plhs[nrules]->argnames[i])
break;
@ -2296,7 +2329,7 @@ can_elide_arg(char **theptr, char *yyvaltag)
rv = 0;
if (maxoffset > 0)
FREE(offsets);
if (*p || rv <= 0)
if (p == 0 || *p || rv <= 0)
return 0;
*theptr = p + 1;
return rv;
@ -2360,7 +2393,6 @@ advance_to_start(void)
{
int c;
bucket *bp;
char *s_cptr;
int s_lineno;
#if defined(YYBTYACC)
char *args = NULL;
@ -2369,6 +2401,8 @@ advance_to_start(void)
for (;;)
{
char *s_cptr;
c = nextc();
if (c != '%')
break;
@ -2447,12 +2481,12 @@ start_rule(bucket *bp, int s_lineno)
static void
end_rule(void)
{
int i;
if (!last_was_action && plhs[nrules]->tag)
{
if (pitem[nitems - 1])
{
int i;
for (i = nitems - 1; (i > 0) && pitem[i]; --i)
continue;
if (pitem[i + 1] == 0 || pitem[i + 1]->tag != plhs[nrules]->tag)
@ -3140,7 +3174,6 @@ static void
copy_destructor(void)
{
char *code_text;
int c;
struct ainfo a;
bucket *bp;
@ -3148,7 +3181,7 @@ copy_destructor(void)
for (;;)
{
c = nextc();
int c = nextc();
if (c == EOF)
unexpected_EOF();
if (c == '<')
@ -3352,14 +3385,13 @@ mark_symbol(void)
static void
read_grammar(void)
{
int c;
initialize_grammar();
advance_to_start();
for (;;)
{
c = nextc();
int c = nextc();
if (c == EOF)
break;
if (isalpha(UCH(c))
@ -3416,7 +3448,8 @@ static void
pack_names(void)
{
bucket *bp;
char *p, *s, *t;
char *p;
char *t;
name_pool_size = 13; /* 13 == sizeof("$end") + sizeof("$accept") */
for (bp = first_symbol; bp; bp = bp->next)
@ -3430,8 +3463,9 @@ pack_names(void)
t = name_pool + 13;
for (bp = first_symbol; bp; bp = bp->next)
{
char *s = bp->name;
p = t;
s = bp->name;
while ((*t++ = *s++) != 0)
continue;
FREE(bp->name);
@ -3460,14 +3494,14 @@ check_symbols(void)
static void
protect_string(char *src, char **des)
{
unsigned len;
char *s;
char *d;
*des = src;
if (src)
{
len = 1;
char *s;
char *d;
unsigned len = 1;
s = src;
while (*s)
{
@ -3678,8 +3712,6 @@ pack_grammar(void)
{
int i;
Value_t j;
Assoc_t assoc;
Value_t prec2;
ritem = TMALLOC(Value_t, nitems);
NO_SPACE(ritem);
@ -3710,6 +3742,9 @@ pack_grammar(void)
j = 4;
for (i = 3; i < nrules; ++i)
{
Assoc_t assoc;
Value_t prec2;
#if defined(YYBTYACC)
if (plhs[i]->args > 0)
{
@ -3801,11 +3836,11 @@ finalize_destructors(void)
{
int i;
bucket *bp;
char *tag;
for (i = 2; i < nsyms; ++i)
{
tag = symbol_type_tag[i];
char *tag = symbol_type_tag[i];
if (symbol_destructor[i] == NULL)
{
if (tag == NULL)

View File

@ -1,12 +1,12 @@
/* $NetBSD: btyacc_calc1.tab.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: btyacc_calc1.tab.c,v 1.5 2021/02/20 22:57:56 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: btyacc_demo.tab.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: btyacc_demo.tab.c,v 1.5 2021/02/20 22:57:56 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,4 +1,4 @@
/* $NetBSD: btyacc_demo.tab.h,v 1.2 2017/02/11 19:33:12 christos Exp $ */
/* $NetBSD: btyacc_demo.tab.h,v 1.3 2021/02/20 22:57:56 christos Exp $ */
#ifndef _demo__defines_h_
#define _demo__defines_h_
@ -48,5 +48,6 @@ typedef struct YYLTYPE
#define YYLTYPE_IS_DECLARED 1
#endif
#define YYRHSLOC(rhs, k) ((rhs)[k])
extern YYLTYPE demo_lloc;
#endif /* _demo__defines_h_ */

View File

@ -1,12 +1,12 @@
/* $NetBSD: btyacc_destroy1.tab.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: btyacc_destroy1.tab.c,v 1.5 2021/02/20 22:57:56 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: btyacc_destroy2.tab.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: btyacc_destroy2.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: btyacc_destroy3.tab.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: btyacc_destroy3.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: calc.tab.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: calc.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: calc1.tab.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: calc1.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: calc2.tab.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: calc2.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: calc3.tab.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: calc3.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: code_calc.code.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: code_calc.code.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: code_error.code.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: code_error.code.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: empty.tab.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: empty.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_inherit1.tab.c,v 1.2 2017/02/11 19:33:12 christos Exp $ */
/* $NetBSD: err_inherit1.tab.c,v 1.3 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_inherit2.tab.c,v 1.2 2017/02/11 19:33:12 christos Exp $ */
/* $NetBSD: err_inherit2.tab.c,v 1.3 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_inherit3.tab.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: err_inherit3.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_inherit4.tab.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: err_inherit4.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,4 +1,4 @@
/* $NetBSD: err_inherit4.tab.h,v 1.2 2017/02/11 19:33:12 christos Exp $ */
/* $NetBSD: err_inherit4.tab.h,v 1.3 2021/02/20 22:57:57 christos Exp $ */
#ifndef _err_inherit4__defines_h_
#define _err_inherit4__defines_h_
@ -37,5 +37,6 @@ typedef struct YYLTYPE
#define YYLTYPE_IS_DECLARED 1
#endif
#define YYRHSLOC(rhs, k) ((rhs)[k])
extern YYLTYPE err_inherit4_lloc;
#endif /* _err_inherit4__defines_h_ */

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_inherit5.tab.c,v 1.2 2017/02/11 19:33:12 christos Exp $ */
/* $NetBSD: err_inherit5.tab.c,v 1.3 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_syntax1.tab.c,v 1.2 2017/02/11 19:33:12 christos Exp $ */
/* $NetBSD: err_syntax1.tab.c,v 1.3 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_syntax10.tab.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: err_syntax10.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_syntax11.tab.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: err_syntax11.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_syntax12.tab.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: err_syntax12.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_syntax13.tab.c,v 1.2 2017/02/11 19:33:12 christos Exp $ */
/* $NetBSD: err_syntax13.tab.c,v 1.3 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_syntax14.tab.c,v 1.2 2017/02/11 19:33:12 christos Exp $ */
/* $NetBSD: err_syntax14.tab.c,v 1.3 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_syntax15.tab.c,v 1.2 2017/02/11 19:33:12 christos Exp $ */
/* $NetBSD: err_syntax15.tab.c,v 1.3 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_syntax16.tab.c,v 1.2 2017/02/11 19:33:12 christos Exp $ */
/* $NetBSD: err_syntax16.tab.c,v 1.3 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_syntax17.tab.c,v 1.2 2017/02/11 19:33:12 christos Exp $ */
/* $NetBSD: err_syntax17.tab.c,v 1.3 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_syntax18.tab.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: err_syntax18.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_syntax19.tab.c,v 1.2 2017/02/11 19:33:12 christos Exp $ */
/* $NetBSD: err_syntax19.tab.c,v 1.3 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_syntax2.tab.c,v 1.2 2017/02/11 19:33:12 christos Exp $ */
/* $NetBSD: err_syntax2.tab.c,v 1.3 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_syntax20.tab.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: err_syntax20.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_syntax21.tab.c,v 1.2 2017/02/11 19:33:12 christos Exp $ */
/* $NetBSD: err_syntax21.tab.c,v 1.3 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_syntax22.tab.c,v 1.2 2017/02/11 19:33:12 christos Exp $ */
/* $NetBSD: err_syntax22.tab.c,v 1.3 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_syntax23.tab.c,v 1.2 2017/02/11 19:33:12 christos Exp $ */
/* $NetBSD: err_syntax23.tab.c,v 1.3 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_syntax24.tab.c,v 1.2 2017/02/11 19:33:12 christos Exp $ */
/* $NetBSD: err_syntax24.tab.c,v 1.3 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_syntax25.tab.c,v 1.2 2017/02/11 19:33:12 christos Exp $ */
/* $NetBSD: err_syntax25.tab.c,v 1.3 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_syntax26.tab.c,v 1.2 2017/02/11 19:33:12 christos Exp $ */
/* $NetBSD: err_syntax26.tab.c,v 1.3 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_syntax27.tab.c,v 1.2 2017/02/11 19:33:12 christos Exp $ */
/* $NetBSD: err_syntax27.tab.c,v 1.3 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_syntax3.tab.c,v 1.2 2017/02/11 19:33:12 christos Exp $ */
/* $NetBSD: err_syntax3.tab.c,v 1.3 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_syntax4.tab.c,v 1.2 2017/02/11 19:33:12 christos Exp $ */
/* $NetBSD: err_syntax4.tab.c,v 1.3 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_syntax5.tab.c,v 1.2 2017/02/11 19:33:12 christos Exp $ */
/* $NetBSD: err_syntax5.tab.c,v 1.3 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_syntax6.tab.c,v 1.2 2017/02/11 19:33:12 christos Exp $ */
/* $NetBSD: err_syntax6.tab.c,v 1.3 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_syntax7.tab.c,v 1.2 2017/02/11 19:33:12 christos Exp $ */
/* $NetBSD: err_syntax7.tab.c,v 1.3 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_syntax7a.tab.c,v 1.2 2017/02/11 19:33:12 christos Exp $ */
/* $NetBSD: err_syntax7a.tab.c,v 1.3 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_syntax7b.tab.c,v 1.2 2017/02/11 19:33:12 christos Exp $ */
/* $NetBSD: err_syntax7b.tab.c,v 1.3 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_syntax8.tab.c,v 1.2 2017/02/11 19:33:12 christos Exp $ */
/* $NetBSD: err_syntax8.tab.c,v 1.3 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_syntax8a.tab.c,v 1.2 2017/02/11 19:33:12 christos Exp $ */
/* $NetBSD: err_syntax8a.tab.c,v 1.3 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_syntax9.tab.c,v 1.2 2017/02/11 19:33:12 christos Exp $ */
/* $NetBSD: err_syntax9.tab.c,v 1.3 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: error.tab.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: error.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: expr.oxout.tab.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: expr.oxout.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: grammar.tab.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: grammar.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)
@ -1195,7 +1195,7 @@ extern char *yytext;
extern FILE *yyin, *yyout;
static int curly; /* number of curly brace nesting levels */
static int ly_count; /* number of occurances of %% */
static int ly_count; /* number of occurrences of %% */
static int inc_depth; /* include nesting level */
static SymbolTable *included_files; /* files already included */
static int yy_start = 0; /* start state number */

View File

@ -1,12 +1,12 @@
/* $NetBSD: inherit0.tab.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: inherit0.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: inherit1.tab.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: inherit1.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: inherit2.tab.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: inherit2.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: ok_syntax1.tab.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: ok_syntax1.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: pure_calc.tab.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: pure_calc.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: pure_error.tab.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: pure_error.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: quote_calc-s.tab.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: quote_calc-s.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: quote_calc.tab.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: quote_calc.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: quote_calc2-s.tab.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: quote_calc2-s.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: quote_calc2.tab.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: quote_calc2.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: quote_calc3-s.tab.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: quote_calc3-s.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: quote_calc3.tab.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: quote_calc3.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: quote_calc4-s.tab.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: quote_calc4-s.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: quote_calc4.tab.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: quote_calc4.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: rename_debug.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: rename_debug.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: varsyntax_calc1.tab.c,v 1.4 2018/12/23 15:38:53 christos Exp $ */
/* $NetBSD: varsyntax_calc1.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: calc.tab.c,v 1.3 2018/12/23 15:38:54 christos Exp $ */
/* $NetBSD: calc.tab.c,v 1.4 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: calc1.tab.c,v 1.3 2018/12/23 15:38:54 christos Exp $ */
/* $NetBSD: calc1.tab.c,v 1.4 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: calc2.tab.c,v 1.3 2018/12/23 15:38:54 christos Exp $ */
/* $NetBSD: calc2.tab.c,v 1.4 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: calc3.tab.c,v 1.4 2018/12/23 15:38:54 christos Exp $ */
/* $NetBSD: calc3.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: code_calc.code.c,v 1.3 2018/12/23 15:38:54 christos Exp $ */
/* $NetBSD: code_calc.code.c,v 1.4 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: code_error.code.c,v 1.3 2018/12/23 15:38:54 christos Exp $ */
/* $NetBSD: code_error.code.c,v 1.4 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: empty.tab.c,v 1.3 2018/12/23 15:38:54 christos Exp $ */
/* $NetBSD: empty.tab.c,v 1.4 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_syntax10.tab.c,v 1.3 2018/12/23 15:38:54 christos Exp $ */
/* $NetBSD: err_syntax10.tab.c,v 1.4 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_syntax11.tab.c,v 1.3 2018/12/23 15:38:54 christos Exp $ */
/* $NetBSD: err_syntax11.tab.c,v 1.4 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_syntax12.tab.c,v 1.3 2018/12/23 15:38:54 christos Exp $ */
/* $NetBSD: err_syntax12.tab.c,v 1.4 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_syntax18.tab.c,v 1.3 2018/12/23 15:38:54 christos Exp $ */
/* $NetBSD: err_syntax18.tab.c,v 1.4 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: err_syntax20.tab.c,v 1.3 2018/12/23 15:38:54 christos Exp $ */
/* $NetBSD: err_syntax20.tab.c,v 1.4 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: error.tab.c,v 1.3 2018/12/23 15:38:54 christos Exp $ */
/* $NetBSD: error.tab.c,v 1.4 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: expr.oxout.tab.c,v 1.3 2018/12/23 15:38:54 christos Exp $ */
/* $NetBSD: expr.oxout.tab.c,v 1.4 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: grammar.tab.c,v 1.3 2018/12/23 15:38:54 christos Exp $ */
/* $NetBSD: grammar.tab.c,v 1.4 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)
@ -939,7 +939,7 @@ extern char *yytext;
extern FILE *yyin, *yyout;
static int curly; /* number of curly brace nesting levels */
static int ly_count; /* number of occurances of %% */
static int ly_count; /* number of occurrences of %% */
static int inc_depth; /* include nesting level */
static SymbolTable *included_files; /* files already included */
static int yy_start = 0; /* start state number */

View File

@ -1,12 +1,12 @@
/* $NetBSD: ok_syntax1.tab.c,v 1.4 2018/12/23 15:38:54 christos Exp $ */
/* $NetBSD: ok_syntax1.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: pure_calc.tab.c,v 1.4 2018/12/23 15:38:54 christos Exp $ */
/* $NetBSD: pure_calc.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: pure_error.tab.c,v 1.4 2018/12/23 15:38:54 christos Exp $ */
/* $NetBSD: pure_error.tab.c,v 1.5 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

View File

@ -1,12 +1,12 @@
/* $NetBSD: quote_calc-s.tab.c,v 1.3 2018/12/23 15:38:54 christos Exp $ */
/* $NetBSD: quote_calc-s.tab.c,v 1.4 2021/02/20 22:57:57 christos Exp $ */
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)

Some files were not shown because too many files have changed in this diff Show More