mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 20:41:20 +00:00
more small old-parser cleanups
This commit is contained in:
parent
431ac4eedb
commit
9f715ae9f8
4 changed files with 3 additions and 26 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
%}
|
||||
|
||||
%%
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue