| 20 | staticfn void gd_letknow(struct monst *) NONNULLARG1; |
| 21 | |
| 22 | void |
| 23 | newegd(struct monst *mtmp) |
| 24 | { |
| 25 | if (!mtmp->mextra) |
| 26 | mtmp->mextra = newmextra(); |
| 27 | if (!EGD(mtmp)) { |
| 28 | EGD(mtmp) = (struct egd *) alloc(sizeof (struct egd)); |
| 29 | (void) memset((genericptr_t) EGD(mtmp), 0, sizeof (struct egd)); |
| 30 | EGD(mtmp)->parentmid = mtmp->m_id; |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | void |
| 35 | free_egd(struct monst *mtmp) |
no test coverage detected