From d211329c1eb607b79940661c6ab3ab3339f52874 Mon Sep 17 00:00:00 2001 From: Vern Paxson Date: Sat, 26 May 1990 16:53:57 +0000 Subject: [PATCH] declared void functions as such added prototypes for forward references changed to use format_pinpoint_message where appropriate --- sym.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/sym.c b/sym.c index 12daf37..0047e70 100644 --- a/sym.c +++ b/sym.c @@ -37,6 +37,12 @@ static char rcsid[] = #include "flexdef.h" + +/* declare functions that have forward references */ + +int hashfunct PROTO((register char[], int)); + + struct hash_entry *ndtbl[NAME_TABLE_HASH_SIZE]; struct hash_entry *sctbl[START_COND_HASH_SIZE]; struct hash_entry *ccltab[CCL_HASH_SIZE]; @@ -112,7 +118,7 @@ int table_size; * cclinstal( ccltxt, cclnum ); */ -cclinstal( ccltxt, cclnum ) +void cclinstal( ccltxt, cclnum ) Char ccltxt[]; int cclnum; @@ -210,7 +216,7 @@ int hash_size; * ndinstal( nd, def ); */ -ndinstal( nd, def ) +void ndinstal( nd, def ) char nd[]; Char def[]; @@ -251,7 +257,7 @@ char nd[]; * the start condition is Exclusive if xcluflg is true */ -scinstal( str, xcluflg ) +void scinstal( str, xcluflg ) char str[]; int xcluflg; @@ -288,7 +294,7 @@ int xcluflg; if ( addsym( scname[lastsc], (char *) 0, lastsc, sctbl, START_COND_HASH_SIZE ) ) - lerrsf( "start condition %s declared twice", str ); + format_pinpoint_message( "start condition %s declared twice", str ); scset[lastsc] = mkstate( SYM_EPSILON ); scbol[lastsc] = mkstate( SYM_EPSILON ); -- 2.40.0