XRogue: convert to ANSI-style function declarations.

This commit is contained in:
John "Elwin" Edwards 2016-03-02 21:13:26 -05:00
parent e8e6e604c3
commit 2853120387
41 changed files with 1281 additions and 908 deletions

View file

@ -105,10 +105,8 @@ struct words metal[NMETAL] = {
* right amounts
*/
badcheck(name, magic, bound)
char *name;
register struct magic_item *magic;
register int bound;
void
badcheck(char *name, struct magic_item *magic, int bound)
{
register struct magic_item *end;
@ -128,7 +126,8 @@ register int bound;
* Initialize the potion color scheme for this time
*/
init_colors()
void
init_colors(void)
{
register int i;
register char *str;
@ -152,7 +151,8 @@ init_colors()
* do any initialization for food
*/
init_foods()
void
init_foods(void)
{
register int i;
@ -168,7 +168,8 @@ init_foods()
* Initialize the construction materials for wands and staffs
*/
init_materials()
void
init_materials(void)
{
register int i;
register char *str;
@ -203,7 +204,8 @@ init_materials()
* do any initialization for miscellaneous magic
*/
init_misc()
void
init_misc(void)
{
register int i;
@ -221,7 +223,8 @@ init_misc()
* Generate the names of the various scrolls
*/
init_names()
void
init_names(void)
{
register int nsyl;
register char *cp, *sp;
@ -258,7 +261,8 @@ init_names()
* roll up the rogue
*/
init_player()
void
init_player(void)
{
int stat_total, round = 0, minimum, maximum, ch, i, j = 0;
short do_escape, *our_stats[NUMABILITIES-1];
@ -790,7 +794,8 @@ init_player()
* Initialize the ring stone setting scheme for this time
*/
init_stones()
void
init_stones(void)
{
register int i;
register char *str;
@ -815,7 +820,8 @@ init_stones()
* Initialize the probabilities for types of things
*/
init_things()
void
init_things(void)
{
register struct magic_item *mp;