lower the code upkeep for mextra and oextra pointer additions

This commit is contained in:
nhmall
2020-07-31 09:42:17 -04:00
parent f153c1f0d1
commit 8b2750ab60
4 changed files with 25 additions and 15 deletions

View File

@@ -19,8 +19,8 @@
* file.
* 3. Add a referencing macro at bottom of this file after the mextra
* struct (see MNAME, EGD, EPRI, ESHK, EMIN, or EDOG for examples).
* 4. Zero out the pointer to your struct in newmextra() in
* src/makemon.c.
* 4. If your new field isn't a pointer and requires a special value
* on initialization, add code to init_mextra() in src/makemon.c
* 5. Create a newXX(mtmp) function and possibly a free_XX(mtmp)
* function in an appropriate new or existing source file and add
* a prototype for it to include/extern.h.