More tiny formatting fixes, move function names to start of line

This commit is contained in:
Pasi Kallinen
2015-11-25 10:15:41 +02:00
parent c8e83332fe
commit 943cc6057c
10 changed files with 31 additions and 12 deletions
+2 -1
View File
@@ -27,7 +27,8 @@ extern void
VDECL(panic, (const char *, ...)) VDECL(panic, (const char *, ...))
PRINTF_F(1, 2); PRINTF_F(1, 2);
long *alloc(lth) long *
alloc(lth)
register unsigned int lth; register unsigned int lth;
{ {
#ifdef LINT #ifdef LINT
+3 -1
View File
@@ -171,7 +171,9 @@ boolean givemsg;
givemsg ? -1 : 1); 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; register int num;
{ {
int ustr = ABASE(A_STR) - num; int ustr = ABASE(A_STR) - num;
+3 -1
View File
@@ -382,7 +382,9 @@ int sig_unused UNUSED;
} }
#if defined(UNIX) || defined(VMS) || defined(__EMX__) #if defined(UNIX) || defined(VMS) || defined(__EMX__)
static void done_hangup(sig) /* signal() handler */ /* signal() handler */
static void
done_hangup(sig)
int sig; int sig;
{ {
program_state.done_hup++; program_state.done_hup++;
+3 -1
View File
@@ -181,7 +181,9 @@ register int exper, rexp;
flags.beginner = 0; 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 */ const char *drainer; /* cause of death, if drain should be fatal */
{ {
register int num; register int num;
+4 -2
View File
@@ -1795,8 +1795,10 @@ switch_terrain()
/* extracted from spoteffects; called by spoteffects to check for entering or /* 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 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 */ boolean newspot; /* true if called by spoteffects */
{ {
/* check for leaving water */ /* check for leaving water */
+3 -1
View File
@@ -835,7 +835,9 @@ int spellnum;
/* convert 1..10 to 0..9; add 10 for second group (spell casting) */ /* convert 1..10 to 0..9; add 10 for second group (spell casting) */
#define ad_to_typ(k) (10 + (int) k - 1) #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 monst *mtmp;
register struct attack *mattk; register struct attack *mattk;
{ {
+3 -1
View File
@@ -116,7 +116,9 @@ struct attack *mattk;
* then we report that the monster did nothing so it will continue to * then we report that the monster did nothing so it will continue to
* digest the hero. * 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 *mtmp;
{ {
register struct monst *mon, *nmon; register struct monst *mon, *nmon;
+6 -2
View File
@@ -45,7 +45,9 @@ boolean spotted; /* seen|sensed vs all */
return count; return count;
} }
int msummon(mon) /* mon summons a monster */ /* mon summons a monster */
int
msummon(mon)
struct monst *mon; struct monst *mon;
{ {
struct permonst *ptr; struct permonst *ptr;
@@ -205,7 +207,9 @@ boolean talk;
#define Athome (Inhell && (mtmp->cham == NON_PM)) #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; register struct monst *mtmp;
{ {
long cash, demand, offer; long cash, demand, offer;
+2 -1
View File
@@ -94,7 +94,8 @@ register int x;
} }
/* d(N,X) == NdX == dX+dX+...+dX N times; n <= d(n,x) <= (n*x) */ /* 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 n, x;
{ {
register int tmp = n; register int tmp = n;
+2 -1
View File
@@ -619,7 +619,8 @@ int fd;
} }
/* flush run and buffer */ /* flush run and buffer */
void bflush(fd) void
bflush(fd)
register int fd; register int fd;
{ {
(*saveprocs.save_bflush)(fd); (*saveprocs.save_bflush)(fd);