summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-04-04 22:25:04 +0000
committerobrien <obrien@FreeBSD.org>2002-04-04 22:25:04 +0000
commitef28acc1beeba42f12fe4399ac5869cf5ebe6a7e (patch)
tree0211a276d0561e40a37ad1f36b457481f9a3664d /usr.bin
parentf8ecf6d69fa50f47aa716dba0df66f3706f85521 (diff)
downloadFreeBSD-src-ef28acc1beeba42f12fe4399ac5869cf5ebe6a7e.zip
FreeBSD-src-ef28acc1beeba42f12fe4399ac5869cf5ebe6a7e.tar.gz
Minor reordering of declarations to reduce diffs to OpenBSD/NetBSD.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/yacc/output.c31
-rw-r--r--usr.bin/yacc/verbose.c4
2 files changed, 18 insertions, 17 deletions
diff --git a/usr.bin/yacc/output.c b/usr.bin/yacc/output.c
index 695da88..ce633f5 100644
--- a/usr.bin/yacc/output.c
+++ b/usr.bin/yacc/output.c
@@ -49,6 +49,22 @@ __FBSDID("$FreeBSD$");
#include <string.h>
#include "defs.h"
+static int nvectors;
+static int nentries;
+static short **froms;
+static short **tos;
+static short *tally;
+static short *width;
+static short *state_count;
+static short *order;
+static short *base;
+static short *pos;
+static int maxtable;
+static short *table;
+static short *check;
+static int lowzero;
+static int high;
+
static int default_goto(int);
static void free_itemsets(void);
static void free_reductions(void);
@@ -77,21 +93,6 @@ static void token_actions(void);
static int increase_maxtable(int);
static const char line_format[] = "#line %d \"%s\"\n";
-static int nvectors;
-static int nentries;
-static short **froms;
-static short **tos;
-static short *tally;
-static short *width;
-static short *state_count;
-static short *order;
-static short *base;
-static short *pos;
-static int maxtable;
-static short *table;
-static short *check;
-static int lowzero;
-static int high;
void
diff --git a/usr.bin/yacc/verbose.c b/usr.bin/yacc/verbose.c
index 69469f0..7d16d35 100644
--- a/usr.bin/yacc/verbose.c
+++ b/usr.bin/yacc/verbose.c
@@ -48,6 +48,8 @@ __FBSDID("$FreeBSD$");
#include <stdlib.h>
#include "defs.h"
+static short *null_rules;
+
static void log_unused(void);
static void log_conflicts(void);
static void print_actions(int);
@@ -59,8 +61,6 @@ static void print_reductions(action *, register int);
static void print_shifts(action *);
static void print_state(int);
-static short *null_rules;
-
void
verbose()
{
OpenPOWER on IntegriCloud