From 5eba9f155ed649eadd5161eee550dd9062343218 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 26 Oct 2001 17:49:23 +0000 Subject: [PATCH] clean up some duplicate symbols --- tools/qfcc/include/qfcc.h | 2 +- tools/qfcc/source/pr_comp.c | 9 --------- tools/qfcc/source/qfcc.c | 3 +++ 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/tools/qfcc/include/qfcc.h b/tools/qfcc/include/qfcc.h index 184bc34fe..233d7de12 100644 --- a/tools/qfcc/include/qfcc.h +++ b/tools/qfcc/include/qfcc.h @@ -368,7 +368,7 @@ struct function_s int parm_ofs[MAX_PARMS]; // allways contiguous, right? }; -function_t *pr_functions; +extern function_t *pr_functions; // // output generated by prog parsing diff --git a/tools/qfcc/source/pr_comp.c b/tools/qfcc/source/pr_comp.c index c456874e1..76c876e31 100644 --- a/tools/qfcc/source/pr_comp.c +++ b/tools/qfcc/source/pr_comp.c @@ -27,15 +27,6 @@ static const char rcsid[] = #include "qfcc.h" - -pr_info_t pr; -def_t *pr_global_defs[MAX_REGS]; // to find def for a global variable - - - - - - void PrecacheSound (def_t *e, int ch) { diff --git a/tools/qfcc/source/qfcc.c b/tools/qfcc/source/qfcc.c index 4dc8e2d5e..02eb3ad8d 100644 --- a/tools/qfcc/source/qfcc.c +++ b/tools/qfcc/source/qfcc.c @@ -72,6 +72,8 @@ static struct option const long_options[] = char destfile[1024]; char debugfile[1024]; +pr_info_t pr; + float pr_globals[MAX_REGS]; int numpr_globals; @@ -82,6 +84,7 @@ dstatement_t statements[MAX_STATEMENTS]; int numstatements; int statement_linenums[MAX_STATEMENTS]; +function_t *pr_functions; dfunction_t functions[MAX_FUNCTIONS]; int numfunctions;