changeset 126:b786053d2f37

arogue7: add missing header includes.
author John "Elwin" Edwards
date Fri, 08 May 2015 16:45:41 -0400
parents adfa37e67084
children 8ae3ffd6c6e7
files arogue7/command.c arogue7/effects.c arogue7/fight.c arogue7/init.c arogue7/io.c arogue7/main.c arogue7/mdport.c arogue7/misc.c arogue7/monsters.c arogue7/options.c arogue7/pack.c arogue7/potions.c arogue7/rings.c arogue7/rip.c arogue7/rooms.c arogue7/save.c arogue7/scrolls.c arogue7/state.c arogue7/sticks.c arogue7/things.c arogue7/util.c arogue7/weapons.c arogue7/wear.c arogue7/wizard.c
diffstat 24 files changed, 28 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/arogue7/command.c	Fri May 08 15:24:40 2015 -0400
+++ b/arogue7/command.c	Fri May 08 16:45:41 2015 -0400
@@ -19,6 +19,8 @@
 
 #include "curses.h"
 #include <ctype.h>
+#include <string.h>
+#include <stdlib.h>
 #include <signal.h>
 #include "mach_dep.h"
 #include "rogue.h"
--- a/arogue7/effects.c	Fri May 08 15:24:40 2015 -0400
+++ b/arogue7/effects.c	Fri May 08 16:45:41 2015 -0400
@@ -12,6 +12,7 @@
  * See the file LICENSE.TXT for full copyright and licensing information.
  */
 
+#include <string.h>
 #include "curses.h"
 #include "rogue.h"
 
--- a/arogue7/fight.c	Fri May 08 15:24:40 2015 -0400
+++ b/arogue7/fight.c	Fri May 08 16:45:41 2015 -0400
@@ -19,6 +19,7 @@
 
 #include "curses.h"
 #include <ctype.h>
+#include <string.h>
 #include "rogue.h"
 
 int hit(struct object *weapon, bool see_att, bool see_def, char *er, char *ee, bool back_stab, bool thrown, bool short_msg);
@@ -335,7 +336,6 @@
     bool did_hit = FALSE;
     int prop_hplus, prop_dplus;
     int vampiric_damage;
-    char *strchr();
 
     /* Get statistics */
     att = &att_er->t_stats;
--- a/arogue7/init.c	Fri May 08 15:24:40 2015 -0400
+++ b/arogue7/init.c	Fri May 08 16:45:41 2015 -0400
@@ -19,6 +19,7 @@
 
 #include "curses.h"
 #include <ctype.h>
+#include <string.h>
 #include "rogue.h"
 #include "mach_dep.h"
 
--- a/arogue7/io.c	Fri May 08 15:24:40 2015 -0400
+++ b/arogue7/io.c	Fri May 08 16:45:41 2015 -0400
@@ -19,6 +19,7 @@
 #include "curses.h"
 #include <stdarg.h>
 #include <ctype.h>
+#include <string.h>
 #include "rogue.h"
 
 /*
--- a/arogue7/main.c	Fri May 08 15:24:40 2015 -0400
+++ b/arogue7/main.c	Fri May 08 16:45:41 2015 -0400
@@ -13,6 +13,8 @@
  */
 
 #include "curses.h"
+#include <stdlib.h>
+#include <string.h>
 #include <signal.h>
 #ifdef BSD
 #include <sys/time.h>
--- a/arogue7/mdport.c	Fri May 08 15:24:40 2015 -0400
+++ b/arogue7/mdport.c	Fri May 08 16:45:41 2015 -0400
@@ -62,6 +62,7 @@
 #endif
 
 #include <stdio.h>
+#include <string.h>
 #include <fcntl.h>
 #include <limits.h>
 #include <sys/stat.h>
--- a/arogue7/misc.c	Fri May 08 15:24:40 2015 -0400
+++ b/arogue7/misc.c	Fri May 08 16:45:41 2015 -0400
@@ -13,6 +13,7 @@
  */
 
 #include "curses.h"
+#include <stdlib.h>
 #include <ctype.h>
 #include "rogue.h"
 #ifdef PC7300
--- a/arogue7/monsters.c	Fri May 08 15:24:40 2015 -0400
+++ b/arogue7/monsters.c	Fri May 08 16:45:41 2015 -0400
@@ -20,6 +20,7 @@
 #include "curses.h"
 #include "rogue.h"
 #include <ctype.h>
+#include <string.h>
 
 
 /*
@@ -211,7 +212,6 @@
     register char *ip, *hitp;
     register int i, min_intel, max_intel;
     register int num_dice, num_sides=8, num_extra=0;
-    char *strchr();
 
     attach(mlist, item);
     tp = THINGPTR(item);
--- a/arogue7/options.c	Fri May 08 15:24:40 2015 -0400
+++ b/arogue7/options.c	Fri May 08 16:45:41 2015 -0400
@@ -21,6 +21,7 @@
 
 #include "curses.h"
 #include <ctype.h>
+#include <string.h>
 #include "rogue.h"
 
 #define	NUM_OPTS	(sizeof optlist / sizeof (OPTION))
--- a/arogue7/pack.c	Fri May 08 15:24:40 2015 -0400
+++ b/arogue7/pack.c	Fri May 08 16:45:41 2015 -0400
@@ -14,6 +14,7 @@
 
 #include "curses.h"
 #include <ctype.h>
+#include <string.h>
 #include "rogue.h"
 #ifdef PC7300
 #include "menu.h"
--- a/arogue7/potions.c	Fri May 08 15:24:40 2015 -0400
+++ b/arogue7/potions.c	Fri May 08 16:45:41 2015 -0400
@@ -16,6 +16,7 @@
  * Function(s) for dealing with potions
  */
 
+#include <stdlib.h>
 #include "curses.h"
 #include "rogue.h"
 
--- a/arogue7/rings.c	Fri May 08 15:24:40 2015 -0400
+++ b/arogue7/rings.c	Fri May 08 16:45:41 2015 -0400
@@ -11,6 +11,7 @@
  * See the file LICENSE.TXT for full copyright and licensing information.
  */
 
+#include <stdlib.h>
 #include "curses.h"
 #include "rogue.h"
 
--- a/arogue7/rip.c	Fri May 08 15:24:40 2015 -0400
+++ b/arogue7/rip.c	Fri May 08 16:45:41 2015 -0400
@@ -33,6 +33,8 @@
 #endif
 #include <signal.h>
 #include <ctype.h>
+#include <string.h>
+#include <stdlib.h>
 #include <sys/types.h>
 #include <fcntl.h>
 #include "mach_dep.h"
--- a/arogue7/rooms.c	Fri May 08 15:24:40 2015 -0400
+++ b/arogue7/rooms.c	Fri May 08 16:45:41 2015 -0400
@@ -17,6 +17,7 @@
  *
  */
 
+#include <stdlib.h>
 #include "curses.h"
 #include "rogue.h"
 
--- a/arogue7/save.c	Fri May 08 15:24:40 2015 -0400
+++ b/arogue7/save.c	Fri May 08 16:45:41 2015 -0400
@@ -19,6 +19,8 @@
 
 #include "curses.h"
 #include <ctype.h>
+#include <stdlib.h>
+#include <string.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <signal.h>
--- a/arogue7/scrolls.c	Fri May 08 15:24:40 2015 -0400
+++ b/arogue7/scrolls.c	Fri May 08 16:45:41 2015 -0400
@@ -18,6 +18,7 @@
  */
 
 #include "curses.h"
+#include <stdlib.h>
 #include <ctype.h>
 #include "rogue.h"
 
--- a/arogue7/state.c	Fri May 08 15:24:40 2015 -0400
+++ b/arogue7/state.c	Fri May 08 16:45:41 2015 -0400
@@ -61,6 +61,7 @@
 #include <curses.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include "rogue.h"
 
 #define READSTAT (format_error || read_error )
--- a/arogue7/sticks.c	Fri May 08 15:24:40 2015 -0400
+++ b/arogue7/sticks.c	Fri May 08 16:45:41 2015 -0400
@@ -19,6 +19,7 @@
 
 #include "curses.h"
 #include <ctype.h>
+#include <string.h>
 #include "rogue.h"
 
 
--- a/arogue7/things.c	Fri May 08 15:24:40 2015 -0400
+++ b/arogue7/things.c	Fri May 08 16:45:41 2015 -0400
@@ -20,6 +20,7 @@
 
 #include "curses.h"
 #include <ctype.h>
+#include <string.h>
 #include "rogue.h"
 
 /*
--- a/arogue7/util.c	Fri May 08 15:24:40 2015 -0400
+++ b/arogue7/util.c	Fri May 08 16:45:41 2015 -0400
@@ -15,6 +15,7 @@
 #include "curses.h"
 #include "rogue.h"
 #include <ctype.h>
+#include <string.h>
 #ifdef PC7300
 #include <track.h>
 #include <kcodes.h>
--- a/arogue7/weapons.c	Fri May 08 15:24:40 2015 -0400
+++ b/arogue7/weapons.c	Fri May 08 16:45:41 2015 -0400
@@ -19,6 +19,7 @@
 
 #include "curses.h"
 #include <ctype.h>
+#include <string.h>
 #include "rogue.h"
 
 boomerang(ydelta, xdelta, item, tp)
--- a/arogue7/wear.c	Fri May 08 15:24:40 2015 -0400
+++ b/arogue7/wear.c	Fri May 08 16:45:41 2015 -0400
@@ -16,6 +16,7 @@
  * This file contains misc functions for dealing with armor
  */
 
+#include <stdlib.h>
 #include "curses.h"
 #include "rogue.h"
 
--- a/arogue7/wizard.c	Fri May 08 15:24:40 2015 -0400
+++ b/arogue7/wizard.c	Fri May 08 16:45:41 2015 -0400
@@ -18,6 +18,7 @@
  */
 
 #include "curses.h"
+#include <stdlib.h>
 #include <ctype.h>
 #include "rogue.h"
 #ifdef PC7300