mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-19 08:51:59 +00:00
allocate space for field arrays and report entity size
This commit is contained in:
parent
e45bb62f23
commit
3f7c4f146e
2 changed files with 4 additions and 0 deletions
|
@ -169,6 +169,9 @@ PR_GetDef (type_t *type, const char *name, def_t *scope, int *allocate)
|
|||
d = PR_GetDef (&type_floatfield, element, scope, allocate);
|
||||
d->used = 1; // always `used'
|
||||
d->parent = def;
|
||||
} else if (type->aux_type->type == ev_pointer) {
|
||||
pr.size_fields += type->aux_type->num_parms
|
||||
* pr_type_size[type->aux_type->aux_type->type];
|
||||
} else {
|
||||
pr.size_fields += pr_type_size[type->aux_type->type];
|
||||
}
|
||||
|
|
|
@ -267,6 +267,7 @@ WriteData (int crc)
|
|||
printf ("%6i locals size (%s)\n", num_localdefs, big_function);
|
||||
printf ("%6i fielddefs\n", numfielddefs);
|
||||
printf ("%6i pr_globals\n", numpr_globals);
|
||||
printf ("%6i entityfields\n", pr.size_fields);
|
||||
}
|
||||
|
||||
h = SafeOpenWrite (destfile);
|
||||
|
|
Loading…
Reference in a new issue