do the builtin function lookup at load time rather than runtime and store

the function address in the progs function descriptor. this will speed up
calls to builtin functions, especially when ranges get introduced.
This commit is contained in:
Bill Currie 2004-01-05 08:08:46 +00:00
parent dfc83c1f5f
commit 595280decb
3 changed files with 30 additions and 19 deletions

View file

@ -185,6 +185,11 @@ typedef struct {
int binum;
} builtin_t;
typedef struct {
int first_statement;
builtin_proc func;
} bfunction_t;
ddef_t *PR_FindGlobal (progs_t *pr, const char *name);
ddef_t *ED_GlobalAtOfs (progs_t *pr, int ofs);