From: PatR Date: Tue, 5 May 2020 19:39:24 +0000 (-0700) Subject: extern.h bits X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=19529ffb2f0b3c6a10b98595a78b529e80d24099;p=nethack extern.h bits Clean up a few things I recently noticed: obsolete monstr.c was still present; mdlib.c was out of alphabetical order; monst_global_init() was listed under the wrong file. --- diff --git a/include/extern.h b/include/extern.h index 4b5bac169..a5730affc 100644 --- a/include/extern.h +++ b/include/extern.h @@ -1264,6 +1264,11 @@ E boolean FDECL(menuitem_invert_test, (int, unsigned, BOOLEAN_P)); E int FDECL(castmu, (struct monst *, struct attack *, BOOLEAN_P, BOOLEAN_P)); E int FDECL(buzzmu, (struct monst *, struct attack *)); +/* ### mdlib.c ### */ + +E void NDECL(runtime_info_init); +E const char *FDECL(do_runtime_info, (int *)); + /* ### mhitm.c ### */ E int FDECL(fightm, (struct monst *)); @@ -1517,8 +1522,8 @@ E boolean FDECL(valid_vampshiftform, (int, int)); E boolean FDECL(validvamp, (struct monst *, int *, int)); E int FDECL(select_newcham_form, (struct monst *)); E void FDECL(mgender_from_permonst, (struct monst *, struct permonst *)); -E int FDECL(newcham, - (struct monst *, struct permonst *, BOOLEAN_P, BOOLEAN_P)); +E int FDECL(newcham, (struct monst *, struct permonst *, BOOLEAN_P, + BOOLEAN_P)); E int FDECL(can_be_hatched, (int)); E int FDECL(egg_type_from_parent, (int, BOOLEAN_P)); E boolean FDECL(dead_species, (int, BOOLEAN_P)); @@ -1529,7 +1534,6 @@ E void NDECL(pacify_guards); E struct monst *FDECL(find_ghost_with_name, (char *)); E void FDECL(decide_to_shapeshift, (struct monst *, int)); E boolean FDECL(vamp_stone, (struct monst *)); -E void NDECL(monst_globals_init); /* ### mondata.c ### */ @@ -1605,9 +1609,7 @@ E boolean FDECL(undesirable_disp, (struct monst *, XCHAR_P, XCHAR_P)); /* ### monst.c ### */ -/* ### monstr.c ### */ - -E void NDECL(monstr_init); +E void NDECL(monst_globals_init); /* ### mplayer.c ### */ @@ -1768,11 +1770,6 @@ E const char *FDECL(regex_error_desc, (struct nhregex *)); E boolean FDECL(regex_match, (const char *, struct nhregex *)); E void FDECL(regex_free, (struct nhregex *)); -/* ### mdlib.c ### */ - -E void NDECL(runtime_info_init); -E const char *FDECL(do_runtime_info, (int *)); - /* ### nttty.c ### */ #ifdef WIN32