switch source tree from k&r to c99
This commit is contained in:
@@ -4,9 +4,9 @@
|
||||
|
||||
#include "hack.h"
|
||||
|
||||
static const char *NDECL(dev_name);
|
||||
static void FDECL(get_mplname, (struct monst *, char *));
|
||||
static void FDECL(mk_mplayer_armor, (struct monst *, SHORT_P));
|
||||
static const char *dev_name(void);
|
||||
static void get_mplname(struct monst *, char *);
|
||||
static void mk_mplayer_armor(struct monst *, short);
|
||||
|
||||
/* These are the names of those who
|
||||
* contributed to the development of NetHack 3.2/3.3/3.4/3.6.
|
||||
@@ -41,7 +41,7 @@ static const char *developers[] = {
|
||||
|
||||
/* return a randomly chosen developer name */
|
||||
static const char *
|
||||
dev_name()
|
||||
dev_name(void)
|
||||
{
|
||||
register int i, m = 0, n = SIZE(developers);
|
||||
register struct monst *mtmp;
|
||||
@@ -69,9 +69,7 @@ dev_name()
|
||||
}
|
||||
|
||||
static void
|
||||
get_mplname(mtmp, nam)
|
||||
register struct monst *mtmp;
|
||||
char *nam;
|
||||
get_mplname(register struct monst* mtmp, char *nam)
|
||||
{
|
||||
boolean fmlkind = is_female(mtmp->data);
|
||||
const char *devnam;
|
||||
@@ -94,9 +92,7 @@ char *nam;
|
||||
}
|
||||
|
||||
static void
|
||||
mk_mplayer_armor(mon, typ)
|
||||
struct monst *mon;
|
||||
short typ;
|
||||
mk_mplayer_armor(struct monst* mon, short typ)
|
||||
{
|
||||
struct obj *obj;
|
||||
|
||||
@@ -118,10 +114,7 @@ short typ;
|
||||
}
|
||||
|
||||
struct monst *
|
||||
mk_mplayer(ptr, x, y, special)
|
||||
register struct permonst *ptr;
|
||||
xchar x, y;
|
||||
register boolean special;
|
||||
mk_mplayer(register struct permonst* ptr, xchar x, xchar y, register boolean special)
|
||||
{
|
||||
register struct monst *mtmp;
|
||||
char nam[PL_NSIZ];
|
||||
@@ -327,9 +320,7 @@ register boolean special;
|
||||
* fill up the overflow.
|
||||
*/
|
||||
void
|
||||
create_mplayers(num, special)
|
||||
register int num;
|
||||
boolean special;
|
||||
create_mplayers(register int num, boolean special)
|
||||
{
|
||||
int pm, x, y;
|
||||
struct monst fakemon;
|
||||
@@ -358,8 +349,7 @@ boolean special;
|
||||
}
|
||||
|
||||
void
|
||||
mplayer_talk(mtmp)
|
||||
register struct monst *mtmp;
|
||||
mplayer_talk(register struct monst* mtmp)
|
||||
{
|
||||
static const char
|
||||
*same_class_msg[3] = {
|
||||
|
||||
Reference in New Issue
Block a user