switch source tree from k&r to c99
This commit is contained in:
22
src/u_init.c
22
src/u_init.c
@@ -13,10 +13,10 @@ struct trobj {
|
||||
Bitfield(trbless, 2);
|
||||
};
|
||||
|
||||
static void FDECL(ini_inv, (struct trobj *));
|
||||
static void FDECL(knows_object, (int));
|
||||
static void FDECL(knows_class, (CHAR_P));
|
||||
static boolean FDECL(restricted_spell_discipline, (int));
|
||||
static void ini_inv(struct trobj *);
|
||||
static void knows_object(int);
|
||||
static void knows_class(char);
|
||||
static boolean restricted_spell_discipline(int);
|
||||
|
||||
#define UNDEF_TYP 0
|
||||
#define UNDEF_SPE '\177'
|
||||
@@ -558,8 +558,7 @@ static const struct def_skill Skill_W[] = {
|
||||
};
|
||||
|
||||
static void
|
||||
knows_object(obj)
|
||||
register int obj;
|
||||
knows_object(int obj)
|
||||
{
|
||||
discover_object(obj, TRUE, FALSE);
|
||||
objects[obj].oc_pre_discovered = 1; /* not a "discovery" */
|
||||
@@ -569,8 +568,7 @@ register int obj;
|
||||
* like all gems except the loadstone and luckstone.
|
||||
*/
|
||||
static void
|
||||
knows_class(sym)
|
||||
register char sym;
|
||||
knows_class(char sym)
|
||||
{
|
||||
register int ct;
|
||||
for (ct = 1; ct < NUM_OBJECTS; ct++)
|
||||
@@ -579,7 +577,7 @@ register char sym;
|
||||
}
|
||||
|
||||
void
|
||||
u_init()
|
||||
u_init(void)
|
||||
{
|
||||
register int i;
|
||||
struct u_roleplay tmpuroleplay = u.uroleplay; /* set by rcfile options */
|
||||
@@ -908,8 +906,7 @@ u_init()
|
||||
|
||||
/* skills aren't initialized, so we use the role-specific skill lists */
|
||||
static boolean
|
||||
restricted_spell_discipline(otyp)
|
||||
int otyp;
|
||||
restricted_spell_discipline(int otyp)
|
||||
{
|
||||
const struct def_skill *skills;
|
||||
int this_skill = spell_skilltype(otyp);
|
||||
@@ -968,8 +965,7 @@ int otyp;
|
||||
}
|
||||
|
||||
static void
|
||||
ini_inv(trop)
|
||||
register struct trobj *trop;
|
||||
ini_inv(struct trobj *trop)
|
||||
{
|
||||
struct obj *obj;
|
||||
int otyp, i;
|
||||
|
||||
Reference in New Issue
Block a user