NOSTATICFN for src/*
This commit is contained in:
104
src/pray.c
104
src/pray.c
@@ -4,32 +4,32 @@
|
||||
|
||||
#include "hack.h"
|
||||
|
||||
static int prayer_done(void);
|
||||
static void maybe_turn_mon_iter(struct monst *);
|
||||
static struct obj *worst_cursed_item(void);
|
||||
static int in_trouble(void);
|
||||
static void fix_curse_trouble(struct obj *, const char *);
|
||||
static void fix_worst_trouble(int);
|
||||
static void angrygods(aligntyp);
|
||||
static void at_your_feet(const char *);
|
||||
static void gcrownu(void);
|
||||
static void give_spell(void);
|
||||
static void pleased(aligntyp);
|
||||
static void godvoice(aligntyp, const char *);
|
||||
static void god_zaps_you(aligntyp);
|
||||
static void fry_by_god(aligntyp, boolean);
|
||||
static void gods_angry(aligntyp);
|
||||
static void gods_upset(aligntyp);
|
||||
static void consume_offering(struct obj *);
|
||||
static void offer_too_soon(aligntyp);
|
||||
static void offer_real_amulet(struct obj *, aligntyp); /* NORETURN */
|
||||
static void offer_fake_amulet(struct obj *, boolean, aligntyp);
|
||||
static void offer_different_alignment_altar(struct obj *, aligntyp);
|
||||
static void sacrifice_your_race(struct obj *, boolean, aligntyp);
|
||||
static int bestow_artifact(void);
|
||||
static boolean pray_revive(void);
|
||||
static boolean water_prayer(boolean);
|
||||
static boolean blocked_boulder(int, int);
|
||||
staticfn int prayer_done(void);
|
||||
staticfn void maybe_turn_mon_iter(struct monst *);
|
||||
staticfn struct obj *worst_cursed_item(void);
|
||||
staticfn int in_trouble(void);
|
||||
staticfn void fix_curse_trouble(struct obj *, const char *);
|
||||
staticfn void fix_worst_trouble(int);
|
||||
staticfn void angrygods(aligntyp);
|
||||
staticfn void at_your_feet(const char *);
|
||||
staticfn void gcrownu(void);
|
||||
staticfn void give_spell(void);
|
||||
staticfn void pleased(aligntyp);
|
||||
staticfn void godvoice(aligntyp, const char *);
|
||||
staticfn void god_zaps_you(aligntyp);
|
||||
staticfn void fry_by_god(aligntyp, boolean);
|
||||
staticfn void gods_angry(aligntyp);
|
||||
staticfn void gods_upset(aligntyp);
|
||||
staticfn void consume_offering(struct obj *);
|
||||
staticfn void offer_too_soon(aligntyp);
|
||||
staticfn void offer_real_amulet(struct obj *, aligntyp); /* NORETURN */
|
||||
staticfn void offer_fake_amulet(struct obj *, boolean, aligntyp);
|
||||
staticfn void offer_different_alignment_altar(struct obj *, aligntyp);
|
||||
staticfn void sacrifice_your_race(struct obj *, boolean, aligntyp);
|
||||
staticfn int bestow_artifact(void);
|
||||
staticfn boolean pray_revive(void);
|
||||
staticfn boolean water_prayer(boolean);
|
||||
staticfn boolean blocked_boulder(int, int);
|
||||
|
||||
/* simplify a few tests */
|
||||
#define Cursed_obj(obj, typ) ((obj) && (obj)->otyp == (typ) && (obj)->cursed)
|
||||
@@ -190,7 +190,7 @@ stuck_in_wall(void)
|
||||
* 3.4.2: make an exception if polymorphed into a form which lacks
|
||||
* hands; that's a case where the ramifications override this doubt.
|
||||
*/
|
||||
static int
|
||||
staticfn int
|
||||
in_trouble(void)
|
||||
{
|
||||
struct obj *otmp;
|
||||
@@ -280,7 +280,7 @@ in_trouble(void)
|
||||
}
|
||||
|
||||
/* select an item for TROUBLE_CURSED_ITEMS */
|
||||
static struct obj *
|
||||
staticfn struct obj *
|
||||
worst_cursed_item(void)
|
||||
{
|
||||
struct obj *otmp;
|
||||
@@ -341,7 +341,7 @@ worst_cursed_item(void)
|
||||
return otmp;
|
||||
}
|
||||
|
||||
static void
|
||||
staticfn void
|
||||
fix_curse_trouble(struct obj *otmp, const char *what)
|
||||
{
|
||||
if (!otmp) {
|
||||
@@ -365,7 +365,7 @@ fix_curse_trouble(struct obj *otmp, const char *what)
|
||||
update_inventory();
|
||||
}
|
||||
|
||||
static void
|
||||
staticfn void
|
||||
fix_worst_trouble(int trouble)
|
||||
{
|
||||
int i;
|
||||
@@ -601,7 +601,7 @@ fix_worst_trouble(int trouble)
|
||||
* bathroom walls, but who is foiled by bathrobes." --Bertrand Russell, 1943
|
||||
* Divine wrath, dungeon walls, and armor follow the same principle.
|
||||
*/
|
||||
static void
|
||||
staticfn void
|
||||
god_zaps_you(aligntyp resp_god)
|
||||
{
|
||||
if (u.uswallow) {
|
||||
@@ -685,7 +685,7 @@ god_zaps_you(aligntyp resp_god)
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
staticfn void
|
||||
fry_by_god(aligntyp resp_god, boolean via_disintegration)
|
||||
{
|
||||
You("%s!", !via_disintegration ? "fry to a crisp"
|
||||
@@ -695,7 +695,7 @@ fry_by_god(aligntyp resp_god, boolean via_disintegration)
|
||||
done(DIED);
|
||||
}
|
||||
|
||||
static void
|
||||
staticfn void
|
||||
angrygods(aligntyp resp_god)
|
||||
{
|
||||
int maxanger, new_ublesscnt;
|
||||
@@ -776,7 +776,7 @@ angrygods(aligntyp resp_god)
|
||||
}
|
||||
|
||||
/* helper to print "str appears at your feet", or appropriate */
|
||||
static void
|
||||
staticfn void
|
||||
at_your_feet(const char *str)
|
||||
{
|
||||
if (Blind)
|
||||
@@ -793,7 +793,7 @@ at_your_feet(const char *str)
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
staticfn void
|
||||
gcrownu(void)
|
||||
{
|
||||
struct obj *obj;
|
||||
@@ -986,7 +986,7 @@ gcrownu(void)
|
||||
return;
|
||||
}
|
||||
|
||||
static void
|
||||
staticfn void
|
||||
give_spell(void)
|
||||
{
|
||||
struct obj *otmp;
|
||||
@@ -1057,7 +1057,7 @@ give_spell(void)
|
||||
return;
|
||||
}
|
||||
|
||||
static void
|
||||
staticfn void
|
||||
pleased(aligntyp g_align)
|
||||
{
|
||||
/* don't use p_trouble, worst trouble may get fixed while praying */
|
||||
@@ -1365,7 +1365,7 @@ pleased(aligntyp g_align)
|
||||
/* either blesses or curses water on the altar,
|
||||
* returns true if it found any water here.
|
||||
*/
|
||||
static boolean
|
||||
staticfn boolean
|
||||
water_prayer(boolean bless_water)
|
||||
{
|
||||
struct obj *otmp;
|
||||
@@ -1393,7 +1393,7 @@ water_prayer(boolean bless_water)
|
||||
return (boolean) (changed > 0L);
|
||||
}
|
||||
|
||||
static void
|
||||
staticfn void
|
||||
godvoice(aligntyp g_align, const char *words)
|
||||
{
|
||||
const char *quot = "";
|
||||
@@ -1407,14 +1407,14 @@ godvoice(aligntyp g_align, const char *words)
|
||||
ROLL_FROM(godvoices), quot, words, quot);
|
||||
}
|
||||
|
||||
static void
|
||||
staticfn void
|
||||
gods_angry(aligntyp g_align)
|
||||
{
|
||||
godvoice(g_align, "Thou hast angered me.");
|
||||
}
|
||||
|
||||
/* The g_align god is upset with you. */
|
||||
static void
|
||||
staticfn void
|
||||
gods_upset(aligntyp g_align)
|
||||
{
|
||||
if (g_align == u.ualign.type)
|
||||
@@ -1424,7 +1424,7 @@ gods_upset(aligntyp g_align)
|
||||
angrygods(g_align);
|
||||
}
|
||||
|
||||
static void
|
||||
staticfn void
|
||||
consume_offering(struct obj *otmp)
|
||||
{
|
||||
if (Hallucination)
|
||||
@@ -1458,7 +1458,7 @@ consume_offering(struct obj *otmp)
|
||||
|
||||
/* feedback when attempting to offer the Amulet on a "low altar" (not one of
|
||||
the high altars in the temples on the Astral Plane or Moloch's Sanctum) */
|
||||
static void
|
||||
staticfn void
|
||||
offer_too_soon(aligntyp altaralign)
|
||||
{
|
||||
if (altaralign == A_NONE && Inhell) {
|
||||
@@ -1507,7 +1507,7 @@ desecrate_altar(boolean highaltar, aligntyp altaralign)
|
||||
/* offering the Amulet on a high altar (checked by caller) ends the game;
|
||||
we don't declare this 'NORETURN' because done() can return (if called
|
||||
with some reasons other than ASCENDED and ESCAPED) */
|
||||
static void
|
||||
staticfn void
|
||||
offer_real_amulet(struct obj *otmp, aligntyp altaralign)
|
||||
{
|
||||
static NEARDATA const char
|
||||
@@ -1570,7 +1570,7 @@ offer_real_amulet(struct obj *otmp, aligntyp altaralign)
|
||||
/*NOTREACHED*/
|
||||
}
|
||||
|
||||
static void
|
||||
staticfn void
|
||||
offer_fake_amulet(
|
||||
struct obj *otmp,
|
||||
boolean highaltar,
|
||||
@@ -1604,7 +1604,7 @@ offer_fake_amulet(
|
||||
}
|
||||
|
||||
/* possibly convert an altar's alignment or the hero's alignment */
|
||||
static void
|
||||
staticfn void
|
||||
offer_different_alignment_altar(
|
||||
struct obj *otmp,
|
||||
aligntyp altaralign)
|
||||
@@ -1671,7 +1671,7 @@ offer_different_alignment_altar(
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
staticfn void
|
||||
sacrifice_your_race(
|
||||
struct obj *otmp,
|
||||
boolean highaltar,
|
||||
@@ -1754,7 +1754,7 @@ sacrifice_your_race(
|
||||
useupf(otmp, 1L);
|
||||
}
|
||||
|
||||
static int
|
||||
staticfn int
|
||||
bestow_artifact(void)
|
||||
{
|
||||
int nartifacts = nartifact_exist();
|
||||
@@ -2090,7 +2090,7 @@ can_pray(boolean praying) /* false means no messages should be given */
|
||||
}
|
||||
|
||||
/* return TRUE if praying revived a pet corpse */
|
||||
static boolean
|
||||
staticfn boolean
|
||||
pray_revive(void)
|
||||
{
|
||||
struct obj *otmp;
|
||||
@@ -2183,7 +2183,7 @@ dopray(void)
|
||||
return ECMD_TIME;
|
||||
}
|
||||
|
||||
static int
|
||||
staticfn int
|
||||
prayer_done(void) /* M. Stephenson (1.0.3b) */
|
||||
{
|
||||
aligntyp alignment = gp.p_aligntyp;
|
||||
@@ -2254,7 +2254,7 @@ prayer_done(void) /* M. Stephenson (1.0.3b) */
|
||||
}
|
||||
|
||||
/* iterable for undead turning by priest/knight */
|
||||
static void
|
||||
staticfn void
|
||||
maybe_turn_mon_iter(struct monst *mtmp)
|
||||
{
|
||||
/* 3.6.3: used to use cansee() here but the purpose is to prevent
|
||||
@@ -2578,7 +2578,7 @@ altar_wrath(coordxy x, coordxy y)
|
||||
}
|
||||
|
||||
/* assumes isok() at one space away, but not necessarily at two */
|
||||
static boolean
|
||||
staticfn boolean
|
||||
blocked_boulder(int dx, int dy)
|
||||
{
|
||||
struct obj *otmp;
|
||||
|
||||
Reference in New Issue
Block a user