remove STATIC_DCL, STATIC_OVL, STATIC_VAR, STATIC_PTR from core

This commit is contained in:
nhmall
2019-07-14 17:24:58 -04:00
parent e3b5e7f95a
commit 0d34f43830
96 changed files with 2339 additions and 2370 deletions

View File

@@ -5,46 +5,46 @@
#include "hack.h"
STATIC_DCL int FDECL(use_camera, (struct obj *));
STATIC_DCL int FDECL(use_towel, (struct obj *));
STATIC_DCL boolean FDECL(its_dead, (int, int, int *));
STATIC_DCL int FDECL(use_stethoscope, (struct obj *));
STATIC_DCL void FDECL(use_whistle, (struct obj *));
STATIC_DCL void FDECL(use_magic_whistle, (struct obj *));
STATIC_DCL int FDECL(use_leash, (struct obj *));
STATIC_DCL int FDECL(use_mirror, (struct obj *));
STATIC_DCL void FDECL(use_bell, (struct obj **));
STATIC_DCL void FDECL(use_candelabrum, (struct obj *));
STATIC_DCL void FDECL(use_candle, (struct obj **));
STATIC_DCL void FDECL(use_lamp, (struct obj *));
STATIC_DCL void FDECL(light_cocktail, (struct obj **));
STATIC_PTR void FDECL(display_jump_positions, (int));
STATIC_DCL void FDECL(use_tinning_kit, (struct obj *));
STATIC_DCL void FDECL(use_figurine, (struct obj **));
STATIC_DCL void FDECL(use_grease, (struct obj *));
STATIC_DCL void FDECL(use_trap, (struct obj *));
STATIC_DCL void FDECL(use_stone, (struct obj *));
STATIC_PTR int NDECL(set_trap); /* occupation callback */
STATIC_DCL int FDECL(use_whip, (struct obj *));
STATIC_PTR void FDECL(display_polearm_positions, (int));
STATIC_DCL int FDECL(use_pole, (struct obj *));
STATIC_DCL int FDECL(use_cream_pie, (struct obj *));
STATIC_DCL int FDECL(use_grapple, (struct obj *));
STATIC_DCL int FDECL(do_break_wand, (struct obj *));
STATIC_DCL boolean FDECL(figurine_location_checks, (struct obj *,
static int FDECL(use_camera, (struct obj *));
static int FDECL(use_towel, (struct obj *));
static boolean FDECL(its_dead, (int, int, int *));
static int FDECL(use_stethoscope, (struct obj *));
static void FDECL(use_whistle, (struct obj *));
static void FDECL(use_magic_whistle, (struct obj *));
static int FDECL(use_leash, (struct obj *));
static int FDECL(use_mirror, (struct obj *));
static void FDECL(use_bell, (struct obj **));
static void FDECL(use_candelabrum, (struct obj *));
static void FDECL(use_candle, (struct obj **));
static void FDECL(use_lamp, (struct obj *));
static void FDECL(light_cocktail, (struct obj **));
static void FDECL(display_jump_positions, (int));
static void FDECL(use_tinning_kit, (struct obj *));
static void FDECL(use_figurine, (struct obj **));
static void FDECL(use_grease, (struct obj *));
static void FDECL(use_trap, (struct obj *));
static void FDECL(use_stone, (struct obj *));
static int NDECL(set_trap); /* occupation callback */
static int FDECL(use_whip, (struct obj *));
static void FDECL(display_polearm_positions, (int));
static int FDECL(use_pole, (struct obj *));
static int FDECL(use_cream_pie, (struct obj *));
static int FDECL(use_grapple, (struct obj *));
static int FDECL(do_break_wand, (struct obj *));
static boolean FDECL(figurine_location_checks, (struct obj *,
coord *, BOOLEAN_P));
STATIC_DCL void FDECL(add_class, (char *, CHAR_P));
STATIC_DCL void FDECL(setapplyclasses, (char *));
STATIC_PTR boolean FDECL(check_jump, (genericptr_t, int, int));
STATIC_DCL boolean FDECL(is_valid_jump_pos, (int, int, int, BOOLEAN_P));
STATIC_DCL boolean FDECL(get_valid_jump_position, (int, int));
STATIC_DCL boolean FDECL(get_valid_polearm_position, (int, int));
STATIC_DCL boolean FDECL(find_poleable_mon, (coord *, int, int));
static void FDECL(add_class, (char *, CHAR_P));
static void FDECL(setapplyclasses, (char *));
static boolean FDECL(check_jump, (genericptr_t, int, int));
static boolean FDECL(is_valid_jump_pos, (int, int, int, BOOLEAN_P));
static boolean FDECL(get_valid_jump_position, (int, int));
static boolean FDECL(get_valid_polearm_position, (int, int));
static boolean FDECL(find_poleable_mon, (coord *, int, int));
static const char no_elbow_room[] =
"don't have enough elbow-room to maneuver.";
STATIC_OVL int
static int
use_camera(obj)
struct obj *obj;
{
@@ -82,7 +82,7 @@ struct obj *obj;
return 1;
}
STATIC_OVL int
static int
use_towel(obj)
struct obj *obj;
{
@@ -168,7 +168,7 @@ struct obj *obj;
}
/* maybe give a stethoscope message based on floor objects */
STATIC_OVL boolean
static boolean
its_dead(rx, ry, resp)
int rx, ry, *resp;
{
@@ -290,7 +290,7 @@ static const char hollow_str[] = "a hollow sound. This must be a secret %s!";
not take any time; however, unless it did, the stethoscope would be
almost useless. As a compromise, one use per turn is free, another
uses up the turn; this makes curse status have a tangible effect. */
STATIC_OVL int
static int
use_stethoscope(obj)
register struct obj *obj;
{
@@ -425,7 +425,7 @@ register struct obj *obj;
static const char whistle_str[] = "produce a %s whistling sound.";
STATIC_OVL void
static void
use_whistle(obj)
struct obj *obj;
{
@@ -445,7 +445,7 @@ struct obj *obj;
}
}
STATIC_OVL void
static void
use_magic_whistle(obj)
struct obj *obj;
{
@@ -578,7 +578,7 @@ struct monst *mtmp;
}
/* ARGSUSED */
STATIC_OVL int
static int
use_leash(obj)
struct obj *obj;
{
@@ -802,7 +802,7 @@ beautiful()
static const char look_str[] = "look %s.";
STATIC_OVL int
static int
use_mirror(obj)
struct obj *obj;
{
@@ -982,7 +982,7 @@ struct obj *obj;
return 1;
}
STATIC_OVL void
static void
use_bell(optr)
struct obj **optr;
{
@@ -1099,7 +1099,7 @@ struct obj **optr;
wake_nearby();
}
STATIC_OVL void
static void
use_candelabrum(obj)
register struct obj *obj;
{
@@ -1152,7 +1152,7 @@ register struct obj *obj;
begin_burn(obj, FALSE);
}
STATIC_OVL void
static void
use_candle(optr)
struct obj **optr;
{
@@ -1309,7 +1309,7 @@ struct obj *obj;
return FALSE;
}
STATIC_OVL void
static void
use_lamp(obj)
struct obj *obj;
{
@@ -1362,7 +1362,7 @@ struct obj *obj;
}
}
STATIC_OVL void
static void
light_cocktail(optr)
struct obj **optr;
{
@@ -1485,7 +1485,7 @@ enum jump_trajectory {
};
/* callback routine for walk_path() */
STATIC_PTR boolean
static boolean
check_jump(arg, x, y)
genericptr arg;
int x, y;
@@ -1518,7 +1518,7 @@ int x, y;
return TRUE;
}
STATIC_OVL boolean
static boolean
is_valid_jump_pos(x, y, magic, showmsg)
int x, y, magic;
boolean showmsg;
@@ -1586,7 +1586,7 @@ boolean showmsg;
return TRUE;
}
STATIC_OVL boolean
static boolean
get_valid_jump_position(x,y)
int x,y;
{
@@ -1595,7 +1595,7 @@ int x,y;
&& is_valid_jump_pos(x, y, g.jumping_is_magic, FALSE));
}
STATIC_OVL void
static void
display_jump_positions(state)
int state;
{
@@ -1792,7 +1792,7 @@ struct obj *corpse;
return 1;
}
STATIC_OVL void
static void
use_tinning_kit(obj)
struct obj *obj;
{
@@ -2168,7 +2168,7 @@ long timeout;
newsym(cc.x, cc.y);
}
STATIC_OVL boolean
static boolean
figurine_location_checks(obj, cc, quietly)
struct obj *obj;
coord *cc;
@@ -2204,7 +2204,7 @@ boolean quietly;
return TRUE;
}
STATIC_OVL void
static void
use_figurine(optr)
struct obj **optr;
{
@@ -2246,7 +2246,7 @@ struct obj **optr;
static NEARDATA const char lubricables[] = { ALL_CLASSES, ALLOW_NONE, 0 };
STATIC_OVL void
static void
use_grease(obj)
struct obj *obj;
{
@@ -2297,7 +2297,7 @@ struct obj *obj;
}
/* touchstones - by Ken Arnold */
STATIC_OVL void
static void
use_stone(tstone)
struct obj *tstone;
{
@@ -2433,7 +2433,7 @@ reset_trapset()
}
/* Place a landmine/bear trap. Helge Hafting */
STATIC_OVL void
static void
use_trap(otmp)
struct obj *otmp;
{
@@ -2533,8 +2533,7 @@ struct obj *otmp;
return;
}
STATIC_PTR
int
static int
set_trap()
{
struct obj *otmp = g.trapinfo.tobj;
@@ -2575,7 +2574,7 @@ set_trap()
return 0;
}
STATIC_OVL int
static int
use_whip(obj)
struct obj *obj;
{
@@ -2848,7 +2847,7 @@ static const char
cant_reach[] = "can't reach that spot from here.";
/* find pos of monster in range, if only one monster */
STATIC_OVL boolean
static boolean
find_poleable_mon(pos, min_range, max_range)
coord *pos;
int min_range, max_range;
@@ -2892,7 +2891,7 @@ int min_range, max_range;
return TRUE;
}
STATIC_OVL boolean
static boolean
get_valid_polearm_position(x, y)
int x, y;
{
@@ -2901,7 +2900,7 @@ int x, y;
&& distu(x, y) <= g.polearm_range_max);
}
STATIC_OVL void
static void
display_polearm_positions(state)
int state;
{
@@ -2924,7 +2923,7 @@ int state;
}
/* Distance attacks by pole-weapons */
STATIC_OVL int
static int
use_pole(obj)
struct obj *obj;
{
@@ -3041,7 +3040,7 @@ struct obj *obj;
return 1;
}
STATIC_OVL int
static int
use_cream_pie(obj)
struct obj *obj;
{
@@ -3079,7 +3078,7 @@ struct obj *obj;
return 0;
}
STATIC_OVL int
static int
use_grapple(obj)
struct obj *obj;
{
@@ -3229,7 +3228,7 @@ struct obj *obj;
#define BY_OBJECT ((struct monst *) 0)
/* return 1 if the wand is broken, hence some time elapsed */
STATIC_OVL int
static int
do_break_wand(obj)
struct obj *obj;
{
@@ -3454,7 +3453,7 @@ discard_broken_wand:
return 1;
}
STATIC_OVL void
static void
add_class(cl, class)
char *cl;
char class;
@@ -3469,7 +3468,7 @@ char class;
static const char tools[] = { TOOL_CLASS, WEAPON_CLASS, WAND_CLASS, 0 };
/* augment tools[] if various items are carried */
STATIC_OVL void
static void
setapplyclasses(class_list)
char class_list[];
{