VDECL(panic, (const char *, ...))
PRINTF_F(1, 2);
-long *alloc(lth)
+long *
+alloc(lth)
register unsigned int lth;
{
#ifdef LINT
givemsg ? -1 : 1);
}
-void losestr(num) /* may kill you; cause may be poison or monster like 'a' */
+/* may kill you; cause may be poison or monster like 'a' */
+void
+losestr(num)
register int num;
{
int ustr = ABASE(A_STR) - num;
}
#if defined(UNIX) || defined(VMS) || defined(__EMX__)
-static void done_hangup(sig) /* signal() handler */
+/* signal() handler */
+static void
+done_hangup(sig)
int sig;
{
program_state.done_hup++;
flags.beginner = 0;
}
-void losexp(drainer) /* e.g., hit by drain life attack */
+/* e.g., hit by drain life attack */
+void
+losexp(drainer)
const char *drainer; /* cause of death, if drain should be fatal */
{
register int num;
/* extracted from spoteffects; called by spoteffects to check for entering or
leaving a pool of water/lava, and by moveloop to check for staying on one
- */
-boolean pooleffects(newspot) /* returns true to skip rest of spoteffects */
+
+ returns true to skip rest of spoteffects */
+boolean
+pooleffects(newspot)
boolean newspot; /* true if called by spoteffects */
{
/* check for leaving water */
/* convert 1..10 to 0..9; add 10 for second group (spell casting) */
#define ad_to_typ(k) (10 + (int) k - 1)
-int buzzmu(mtmp, mattk) /* monster uses spell (ranged) */
+/* monster uses spell (ranged) */
+int
+buzzmu(mtmp, mattk)
register struct monst *mtmp;
register struct attack *mattk;
{
* then we report that the monster did nothing so it will continue to
* digest the hero.
*/
-int fightm(mtmp) /* have monsters fight each other */
+ /* have monsters fight each other */
+int
+fightm(mtmp)
register struct monst *mtmp;
{
register struct monst *mon, *nmon;
return count;
}
-int msummon(mon) /* mon summons a monster */
+/* mon summons a monster */
+int
+msummon(mon)
struct monst *mon;
{
struct permonst *ptr;
#define Athome (Inhell && (mtmp->cham == NON_PM))
-int demon_talk(mtmp) /* returns 1 if it won't attack. */
+/* returns 1 if it won't attack. */
+int
+demon_talk(mtmp)
register struct monst *mtmp;
{
long cash, demand, offer;
}
/* d(N,X) == NdX == dX+dX+...+dX N times; n <= d(n,x) <= (n*x) */
-int d(n, x)
+int
+d(n, x)
register int n, x;
{
register int tmp = n;
}
/* flush run and buffer */
-void bflush(fd)
+void
+bflush(fd)
register int fd;
{
(*saveprocs.save_bflush)(fd);