mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
qfprogs isn't yet fully functional...
This commit is contained in:
parent
2992d66f87
commit
d0b4546383
1 changed files with 4 additions and 4 deletions
|
@ -259,7 +259,7 @@ static void
|
||||||
convert_qfo (void)
|
convert_qfo (void)
|
||||||
{
|
{
|
||||||
int size;
|
int size;
|
||||||
int i;
|
// int i;
|
||||||
ddef_t *ld;
|
ddef_t *ld;
|
||||||
|
|
||||||
pr.progs = qfo_to_progs (qfo, &size);
|
pr.progs = qfo_to_progs (qfo, &size);
|
||||||
|
@ -272,11 +272,11 @@ convert_qfo (void)
|
||||||
pr.pr_fielddefs = P (ddef_t, ofs_fielddefs);
|
pr.pr_fielddefs = P (ddef_t, ofs_fielddefs);
|
||||||
pr.pr_globals = P (pr_type_t, ofs_globals);
|
pr.pr_globals = P (pr_type_t, ofs_globals);
|
||||||
pr.globals_size = pr.progs->numglobals;
|
pr.globals_size = pr.progs->numglobals;
|
||||||
|
ld = pr.local_defs = calloc (qfo->num_defs, sizeof (ddef_t));
|
||||||
|
#if 0
|
||||||
pr.auxfunctions = calloc (qfo->num_funcs, sizeof (pr_auxfunction_t));
|
pr.auxfunctions = calloc (qfo->num_funcs, sizeof (pr_auxfunction_t));
|
||||||
pr.auxfunction_map = calloc (progs.numfunctions,
|
pr.auxfunction_map = calloc (progs.numfunctions,
|
||||||
sizeof (pr_auxfunction_t *));
|
sizeof (pr_auxfunction_t *));
|
||||||
ld = pr.local_defs = calloc (qfo->num_defs, sizeof (ddef_t));
|
|
||||||
for (i = 0; i < qfo->num_funcs; i++) {
|
for (i = 0; i < qfo->num_funcs; i++) {
|
||||||
qfo_func_t *func = qfo->funcs + i;
|
qfo_func_t *func = qfo->funcs + i;
|
||||||
|
|
||||||
|
@ -288,7 +288,7 @@ convert_qfo (void)
|
||||||
pr.auxfunctions[i].num_locals =
|
pr.auxfunctions[i].num_locals =
|
||||||
qfo->spaces[func->locals_space].num_defs;
|
qfo->spaces[func->locals_space].num_defs;
|
||||||
}
|
}
|
||||||
#if 0
|
|
||||||
for (i = 0; i < qfo->num_defs; i++) {
|
for (i = 0; i < qfo->num_defs; i++) {
|
||||||
int j;
|
int j;
|
||||||
qfo_def_t *def = defs + i;
|
qfo_def_t *def = defs + i;
|
||||||
|
|
Loading…
Reference in a new issue