sort static and non-static decls.

This commit is contained in:
christos 2006-05-24 18:06:58 +00:00
parent 8d1d34adc0
commit 16aa23f5c3
4 changed files with 22 additions and 17 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: lalr.c,v 1.9 2006/05/24 18:01:43 christos Exp $ */
/* $NetBSD: lalr.c,v 1.10 2006/05/24 18:06:58 christos Exp $ */
/*
* Copyright (c) 1989 The Regents of the University of California.
@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)lalr.c 5.3 (Berkeley) 6/1/90";
#else
__RCSID("$NetBSD: lalr.c,v 1.9 2006/05/24 18:01:43 christos Exp $");
__RCSID("$NetBSD: lalr.c,v 1.10 2006/05/24 18:06:58 christos Exp $");
#endif
#endif /* not lint */
@ -51,7 +51,6 @@ typedef
}
shorts;
int tokensetsize;
short *lookaheads;
short *LAruleno;
unsigned *LA;
@ -63,6 +62,8 @@ short *goto_map;
short *from_state;
short *to_state;
static int tokensetsize;
static short **transpose(short **, int);
static void set_state_table(void);
static void set_accessing_symbol(void);

View File

@ -1,4 +1,4 @@
/* $NetBSD: main.c,v 1.16 2006/05/24 18:01:43 christos Exp $ */
/* $NetBSD: main.c,v 1.17 2006/05/24 18:06:58 christos Exp $ */
/*
* Copyright (c) 1989 The Regents of the University of California.
@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989 The Regents of the University of California
#if 0
static char sccsid[] = "@(#)main.c 5.5 (Berkeley) 5/24/93";
#else
__RCSID("$NetBSD: main.c,v 1.16 2006/05/24 18:01:43 christos Exp $");
__RCSID("$NetBSD: main.c,v 1.17 2006/05/24 18:06:58 christos Exp $");
#endif
#endif /* not lint */
@ -62,15 +62,12 @@ char tflag;
char vflag;
char *symbol_prefix;
static char *file_prefix = "y";
char *myname = "yacc";
static char *temp_form = "yacc.XXXXXXX";
int lineno;
int outline;
static int explicit_file_name;
char *action_file_name;
char *code_file_name;
char *defines_file_name;
@ -113,6 +110,11 @@ char *rassoc;
short **derives;
char *nullable;
static char *file_prefix = "y";
static char *temp_form = "yacc.XXXXXXX";
static int explicit_file_name;
static __dead void onintr(int) __attribute__((__noreturn__));
static void set_signals(void);
static __dead void usage(void) __attribute__((__noreturn__));

View File

@ -1,4 +1,4 @@
/* $NetBSD: reader.c,v 1.15 2006/05/24 18:01:43 christos Exp $ */
/* $NetBSD: reader.c,v 1.16 2006/05/24 18:06:58 christos Exp $ */
/*
* Copyright (c) 1989 The Regents of the University of California.
@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)reader.c 5.7 (Berkeley) 1/20/91";
#else
__RCSID("$NetBSD: reader.c,v 1.15 2006/05/24 18:01:43 christos Exp $");
__RCSID("$NetBSD: reader.c,v 1.16 2006/05/24 18:06:58 christos Exp $");
#endif
#endif /* not lint */
@ -50,16 +50,17 @@ __RCSID("$NetBSD: reader.c,v 1.15 2006/05/24 18:01:43 christos Exp $");
#define LINESIZE 100
int ntags;
char unionized;
char *cptr, *line;
static char *cache;
static int cinc, cache_size;
int ntags;
static int tagmax;
static char **tag_table;
static char saw_eof;
char unionized;
char *cptr, *line;
static int linesize;
static bucket *goal;

View File

@ -1,4 +1,4 @@
/* $NetBSD: symtab.c,v 1.10 2006/05/24 18:01:43 christos Exp $ */
/* $NetBSD: symtab.c,v 1.11 2006/05/24 18:06:58 christos Exp $ */
/*
* Copyright (c) 1989 The Regents of the University of California.
@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)symtab.c 5.3 (Berkeley) 6/1/90";
#else
__RCSID("$NetBSD: symtab.c,v 1.10 2006/05/24 18:01:43 christos Exp $");
__RCSID("$NetBSD: symtab.c,v 1.11 2006/05/24 18:06:58 christos Exp $");
#endif
#endif /* not lint */
@ -49,10 +49,11 @@ __RCSID("$NetBSD: symtab.c,v 1.10 2006/05/24 18:01:43 christos Exp $");
#define TABLE_SIZE 1024
static bucket **symbol_table;
bucket *first_symbol;
bucket *last_symbol;
static bucket **symbol_table;
static int hash(char *);