more small old-parser cleanups

This commit is contained in:
Bill Currie 2001-09-15 20:31:17 +00:00
parent 431ac4eedb
commit 9f715ae9f8
4 changed files with 3 additions and 26 deletions

View file

@ -28,30 +28,10 @@
pr_info_t pr;
def_t *pr_global_defs[MAX_REGS]; // to find def for a global variable
int pr_edict_size;
//========================================
def_t *pr_scope; // the function being parsed, or NULL
qboolean pr_dumpasm;
string_t s_file; // filename for function definition
int locals_end; // for tracking local variables vs temps
jmp_buf pr_parse_abort; // longjump with this on parse error
void PR_ParseDefs (void);
//========================================
#define TOP_PRIORITY 6
#define NOT_PRIORITY 4
def_t junkdef;
def_t *PR_Expression (int priority);
//===========================================================================
void

View file

@ -30,7 +30,6 @@ typedef struct locref_s {
} locref_t;
def_t *pr_global_defs[MAX_REGS]; // to find def for a global variable
int pr_edict_size;
static def_t *free_temps[4]; // indexted by type size
static def_t temp_scope;
static locref_t *free_locs[4]; // indexted by type size
@ -121,9 +120,6 @@ PR_GetDef (type_t *type, const char *name, def_t *scope, int *allocate)
}
}
// if (pr_dumpasm)
// PR_PrintOfs (def->ofs);
return def;
}

View file

@ -83,6 +83,9 @@ def_t param_scope;
function_t *current_func;
expr_t *local_expr;
def_t *pr_scope; // the function being parsed, or NULL
string_t s_file; // filename for function definition
%}
%%

View file

@ -1020,8 +1020,6 @@ main (int argc, char **argv)
printf ("debug file: %s\n", debugfile);
}
pr_dumpasm = false;
PR_BeginCompilation (malloc (0x100000), 0x100000);
// compile all the files