diff xrogue/init.c @ 220:f54901b9c39b

XRogue: convert to ANSI-style function declarations.
author John "Elwin" Edwards
date Wed, 02 Mar 2016 21:13:26 -0500
parents ce0cf824c192
children 0250220d8cdd
line wrap: on
line diff
--- a/xrogue/init.c	Fri Feb 19 21:02:28 2016 -0500
+++ b/xrogue/init.c	Wed Mar 02 21:13:26 2016 -0500
@@ -105,10 +105,8 @@
  * 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 @@
  *      Initialize the potion color scheme for this time
  */
 
-init_colors()
+void
+init_colors(void)
 {
     register int i;
     register char *str;
@@ -152,7 +151,8 @@
  * do any initialization for food
  */
 
-init_foods()
+void
+init_foods(void)
 {
     register int i;
 
@@ -168,7 +168,8 @@
  *      Initialize the construction materials for wands and staffs
  */
 
-init_materials()
+void
+init_materials(void)
 {
     register int i;
     register char *str;
@@ -203,7 +204,8 @@
  * do any initialization for miscellaneous magic
  */
 
-init_misc()
+void
+init_misc(void)
 {
     register int i;
 
@@ -221,7 +223,8 @@
  *      Generate the names of the various scrolls
  */
 
-init_names()
+void
+init_names(void)
 {
     register int nsyl;
     register char *cp, *sp;
@@ -258,7 +261,8 @@
  *      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 @@
  *      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 @@
  *      Initialize the probabilities for types of things
  */
 
-init_things()
+void
+init_things(void)
 {
     register struct magic_item *mp;