mextra.h comments (trunk only)

Add an introductory comment for each type of extension.  Also move
ANGRY/NOTANGRY shopkeeper macros from old eshk.h out of the common header
and into shk.c so that their use doesn't end up spreading into other code.

     Not fixed:  entry #9 in the block comment at the top is truncated
mid-sentence.
This commit is contained in:
nethack.rankin
2006-01-12 06:06:33 +00:00
parent de2a6034dd
commit 3b127d31d9
2 changed files with 23 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
/* SCCS Id: @(#)shk.c 3.5 2005/07/06 */
/* SCCS Id: @(#)shk.c 3.5 2006/01/09 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
@@ -18,6 +18,8 @@ STATIC_DCL void FDECL(call_kops, (struct monst *,BOOLEAN_P));
STATIC_DCL void FDECL(kops_gone, (BOOLEAN_P));
#endif /* KOPS */
#define NOTANGRY(mon) ((mon)->mpeaceful)
#define ANGRY(mon) (!NOTANGRY(mon))
#define IS_SHOP(x) (rooms[x].rtype >= SHOPBASE)
extern const struct shclass shtypes[]; /* defined in shknam.c */