mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-13 08:27:39 +00:00
Include extended defs data in the size report
This commit is contained in:
parent
6c6433dea5
commit
155a633ebe
1 changed files with 9 additions and 3 deletions
|
@ -891,6 +891,8 @@ qfo_to_progs (qfo_t *qfo, int *size)
|
|||
int xdefs_start;
|
||||
unsigned big_locals = 0;
|
||||
int big_func = 0;
|
||||
pr_xdefs_t *xdefs;
|
||||
xdef_t *xdef;
|
||||
|
||||
*size = RUP (sizeof (dprograms_t), 16);
|
||||
progs = calloc (1, *size);
|
||||
|
@ -1046,8 +1048,8 @@ qfo_to_progs (qfo_t *qfo, int *size)
|
|||
encodings->size = qfo->spaces[qfo_type_space].data_size;
|
||||
}
|
||||
if (xdefs_def) {
|
||||
pr_xdefs_t *xdefs = (pr_xdefs_t *) &globals[xdefs_def->offset];
|
||||
xdef_t *xdef = (xdef_t *) xdef_data;
|
||||
xdefs = (pr_xdefs_t *) &globals[xdefs_def->offset];
|
||||
xdef = (xdef_t *) xdef_data;
|
||||
xdefs->xdefs = xdefs_start;
|
||||
xdefs->num_xdefs = progs->numglobaldefs + progs->numfielddefs;
|
||||
for (i = 0; i < qfo->spaces[qfo_near_data_space].num_defs;
|
||||
|
@ -1099,6 +1101,10 @@ qfo_to_progs (qfo_t *qfo, int *size)
|
|||
qfo->spaces[qfo_far_data_space].data_size);
|
||||
printf (" %6i type globals\n",
|
||||
qfo->spaces[qfo_type_space].data_size);
|
||||
if (xdefs) {
|
||||
printf (" %6i extended defs\n",
|
||||
xdefs->num_xdefs * type_size (&type_xdef));
|
||||
}
|
||||
printf ("%6i entity fields\n", progs->entityfields);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue