From 0aac004c98ee050caac75f6066a2ebb0ce5aced9 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 9 Jul 2012 15:04:12 +0900 Subject: [PATCH] Rearrange the edict related fields of progs_t. --- include/QF/progs.h | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/include/QF/progs.h b/include/QF/progs.h index 9facfed60..d8c83ee67 100644 --- a/include/QF/progs.h +++ b/include/QF/progs.h @@ -1500,14 +1500,7 @@ typedef struct { struct obj_list_s; struct progs_s { - edict_t **edicts; - int *num_edicts; - int *reserved_edicts; ///< alloc will start at reserved_edicts+1 - void (*unlink) (edict_t *ent); - void (*flush) (void); int (*parse_field) (progs_t *pr, const char *key, const char *value); - int (*prune_edict) (progs_t *pr, edict_t *ent); - void (*free_edict) (progs_t *pr, edict_t *ent); int null_bad; int no_exec_limit; @@ -1596,9 +1589,19 @@ struct progs_s { int pr_param_size; ///< covers both params and return //@} + /// \name edicts + //@{ + edict_t **edicts; + int *num_edicts; + int *reserved_edicts; ///< alloc will start at reserved_edicts+1 + void (*unlink) (edict_t *ent); + void (*flush) (void); + int (*prune_edict) (progs_t *pr, edict_t *ent); + void (*free_edict) (progs_t *pr, edict_t *ent); int pr_edict_size; ///< in bytes int pr_edictareasize; ///< for bounds checking, starts at 0 func_t edict_parse; + //@} /// \name execution state //@{