patch 8.2.3303: some structures could be smaller
Problem: Some structures could be smaller.
Solution: Rearrange members to reduce size. (Dominique Pellé, closes #8725)
diff --git a/src/vim9.h b/src/vim9.h
index b48a2f7..0011a5f 100644
--- a/src/vim9.h
+++ b/src/vim9.h
@@ -456,9 +456,9 @@
int df_refcount; // how many ufunc_T point to this dfunc_T
int df_idx; // index in def_functions
int df_deleted; // if TRUE function was deleted
- char_u *df_name; // name used for error messages
int df_script_seq; // Value of sctx_T sc_seq when the function
// was compiled.
+ char_u *df_name; // name used for error messages
garray_T df_def_args_isn; // default argument instructions
garray_T df_var_names; // names of local vars
@@ -466,12 +466,12 @@
// After compiling "df_instr" and/or "df_instr_prof" is not NULL.
isn_T *df_instr; // function body to be executed
int df_instr_count; // size of "df_instr"
+ int df_instr_debug_count; // size of "df_instr_debug"
+ isn_T *df_instr_debug; // like "df_instr" with debugging
#ifdef FEAT_PROFILE
isn_T *df_instr_prof; // like "df_instr" with profiling
int df_instr_prof_count; // size of "df_instr_prof"
#endif
- isn_T *df_instr_debug; // like "df_instr" with debugging
- int df_instr_debug_count; // size of "df_instr_debug"
int df_varcount; // number of local variables
int df_has_closure; // one if a closure was created