changeset 135:ce0cf824c192

xrogue: add missing includes. This prevents some warnings.
author John "Elwin" Edwards
date Tue, 21 Apr 2015 10:34:01 -0400
parents cfa9d1609b78
children 1fbdefa82533
files xrogue/command.c xrogue/effects.c xrogue/init.c xrogue/io.c xrogue/list.c xrogue/main.c xrogue/misc.c xrogue/options.c xrogue/pack.c xrogue/player.c xrogue/potions.c xrogue/rings.c xrogue/rip.c xrogue/rooms.c xrogue/save.c xrogue/scrolls.c xrogue/state.c xrogue/sticks.c xrogue/things.c xrogue/trader.c xrogue/util.c xrogue/weapons.c xrogue/wear.c xrogue/wizard.c
diffstat 24 files changed, 28 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/xrogue/command.c	Tue Apr 21 10:11:02 2015 -0400
+++ b/xrogue/command.c	Tue Apr 21 10:34:01 2015 -0400
@@ -19,6 +19,8 @@
 #include <curses.h>
 #include <ctype.h>
 #include <signal.h>
+#include <stdlib.h>
+#include <string.h>
 #include "mach_dep.h"
 #include "rogue.h"
 
--- a/xrogue/effects.c	Tue Apr 21 10:11:02 2015 -0400
+++ b/xrogue/effects.c	Tue Apr 21 10:34:01 2015 -0400
@@ -16,6 +16,7 @@
     See the file LICENSE.TXT for full copyright and licensing information.
 */
 
+#include <string.h>
 #include <curses.h>
 #include "rogue.h"
 
--- a/xrogue/init.c	Tue Apr 21 10:11:02 2015 -0400
+++ b/xrogue/init.c	Tue Apr 21 10:34:01 2015 -0400
@@ -18,6 +18,7 @@
 
 #include <curses.h>
 #include <ctype.h>
+#include <string.h>
 #include "rogue.h"
 #include "mach_dep.h"
 
--- a/xrogue/io.c	Tue Apr 21 10:11:02 2015 -0400
+++ b/xrogue/io.c	Tue Apr 21 10:34:01 2015 -0400
@@ -19,6 +19,7 @@
 #include <curses.h>
 #include <ctype.h>
 #include <stdarg.h>
+#include <string.h>
 #include "rogue.h"
 
 /*
--- a/xrogue/list.c	Tue Apr 21 10:11:02 2015 -0400
+++ b/xrogue/list.c	Tue Apr 21 10:34:01 2015 -0400
@@ -17,6 +17,7 @@
 */
 
 #include <stdlib.h>
+#include <string.h>
 #include <curses.h>
 #include "rogue.h"
 
--- a/xrogue/main.c	Tue Apr 21 10:11:02 2015 -0400
+++ b/xrogue/main.c	Tue Apr 21 10:34:01 2015 -0400
@@ -16,6 +16,8 @@
     See the file LICENSE.TXT for full copyright and licensing information.
 */
  
+#include <stdlib.h>
+#include <string.h>
 #include <curses.h>
 #include <signal.h>
 #include <time.h>
--- a/xrogue/misc.c	Tue Apr 21 10:11:02 2015 -0400
+++ b/xrogue/misc.c	Tue Apr 21 10:34:01 2015 -0400
@@ -12,8 +12,10 @@
     See the file LICENSE.TXT for full copyright and licensing information.
 */
 
+#include <stdlib.h>
 #include <curses.h>
 #include <ctype.h>
+#include <string.h>
 #include "rogue.h"
 
 /*
--- a/xrogue/options.c	Tue Apr 21 10:11:02 2015 -0400
+++ b/xrogue/options.c	Tue Apr 21 10:34:01 2015 -0400
@@ -23,6 +23,7 @@
 
 #include <curses.h>
 #include <ctype.h>
+#include <string.h>
 #include "rogue.h"
 
 #define NUM_OPTS        (sizeof optlist / sizeof (OPTION))
--- a/xrogue/pack.c	Tue Apr 21 10:11:02 2015 -0400
+++ b/xrogue/pack.c	Tue Apr 21 10:34:01 2015 -0400
@@ -18,6 +18,7 @@
 
 #include <curses.h>
 #include <ctype.h>
+#include <string.h>
 #include "rogue.h"
 
 /*
--- a/xrogue/player.c	Tue Apr 21 10:11:02 2015 -0400
+++ b/xrogue/player.c	Tue Apr 21 10:34:01 2015 -0400
@@ -13,6 +13,7 @@
 */
 
 #include <ctype.h>
+#include <string.h>
 #include <curses.h>
 #include "rogue.h"
 
--- a/xrogue/potions.c	Tue Apr 21 10:11:02 2015 -0400
+++ b/xrogue/potions.c	Tue Apr 21 10:34:01 2015 -0400
@@ -16,6 +16,7 @@
     See the file LICENSE.TXT for full copyright and licensing information.
 */
 
+#include <stdlib.h>
 #include <curses.h>
 #include "rogue.h"
 
--- a/xrogue/rings.c	Tue Apr 21 10:11:02 2015 -0400
+++ b/xrogue/rings.c	Tue Apr 21 10:34:01 2015 -0400
@@ -16,6 +16,8 @@
     See the file LICENSE.TXT for full copyright and licensing information.
 */
 
+#include <stdlib.h>
+#include <string.h>
 #include <curses.h>
 #include "rogue.h"
 
--- a/xrogue/rip.c	Tue Apr 21 10:11:02 2015 -0400
+++ b/xrogue/rip.c	Tue Apr 21 10:34:01 2015 -0400
@@ -24,6 +24,7 @@
 #include <time.h>
 #include <signal.h>
 #include <ctype.h>
+#include <string.h>
 #include <sys/types.h>
 #include <fcntl.h>
 #include "mach_dep.h"
--- a/xrogue/rooms.c	Tue Apr 21 10:11:02 2015 -0400
+++ b/xrogue/rooms.c	Tue Apr 21 10:34:01 2015 -0400
@@ -16,6 +16,7 @@
     See the file LICENSE.TXT for full copyright and licensing information.
 */
 
+#include <stdlib.h>
 #include <curses.h>
 #include "rogue.h"
 
--- a/xrogue/save.c	Tue Apr 21 10:11:02 2015 -0400
+++ b/xrogue/save.c	Tue Apr 21 10:34:01 2015 -0400
@@ -18,6 +18,7 @@
 
 #include <curses.h>
 #include <ctype.h>
+#include <string.h>
 #include <sys/types.h>
 #include <signal.h>
 #include <fcntl.h>
--- a/xrogue/scrolls.c	Tue Apr 21 10:11:02 2015 -0400
+++ b/xrogue/scrolls.c	Tue Apr 21 10:34:01 2015 -0400
@@ -16,6 +16,7 @@
     See the file LICENSE.TXT for full copyright and licensing information.
 */
 
+#include <stdlib.h>
 #include <curses.h>
 #include <ctype.h>
 #include "rogue.h"
--- a/xrogue/state.c	Tue Apr 21 10:11:02 2015 -0400
+++ b/xrogue/state.c	Tue Apr 21 10:34:01 2015 -0400
@@ -69,6 +69,7 @@
 #endif
 
 #include <stdlib.h>
+#include <string.h>
 #include <curses.h>
 #include <sys/stat.h>
 #include <stdio.h>
--- a/xrogue/sticks.c	Tue Apr 21 10:11:02 2015 -0400
+++ b/xrogue/sticks.c	Tue Apr 21 10:34:01 2015 -0400
@@ -18,6 +18,7 @@
 
 #include <curses.h>
 #include <ctype.h>
+#include <string.h>
 #include "rogue.h"
 
 /*
--- a/xrogue/things.c	Tue Apr 21 10:11:02 2015 -0400
+++ b/xrogue/things.c	Tue Apr 21 10:34:01 2015 -0400
@@ -18,6 +18,7 @@
 
 #include <curses.h>
 #include <ctype.h>
+#include <string.h>
 #include "rogue.h"
 
 /*
--- a/xrogue/trader.c	Tue Apr 21 10:11:02 2015 -0400
+++ b/xrogue/trader.c	Tue Apr 21 10:34:01 2015 -0400
@@ -13,6 +13,7 @@
 */
 
 #include <curses.h>
+#include <string.h>
 #include "rogue.h"
 
 /*
--- a/xrogue/util.c	Tue Apr 21 10:11:02 2015 -0400
+++ b/xrogue/util.c	Tue Apr 21 10:34:01 2015 -0400
@@ -18,6 +18,7 @@
 
 #include <curses.h>
 #include <ctype.h>
+#include <string.h>
 #include "rogue.h"
 
 /*
--- a/xrogue/weapons.c	Tue Apr 21 10:11:02 2015 -0400
+++ b/xrogue/weapons.c	Tue Apr 21 10:34:01 2015 -0400
@@ -18,6 +18,7 @@
 
 #include <curses.h>
 #include <ctype.h>
+#include <string.h>
 #include "rogue.h"
 
 boomerang(ydelta, xdelta, item, tp)
--- a/xrogue/wear.c	Tue Apr 21 10:11:02 2015 -0400
+++ b/xrogue/wear.c	Tue Apr 21 10:34:01 2015 -0400
@@ -16,6 +16,7 @@
     See the file LICENSE.TXT for full copyright and licensing information.
 */
 
+#include <stdlib.h>
 #include <curses.h>
 #include "rogue.h"
 
--- a/xrogue/wizard.c	Tue Apr 21 10:11:02 2015 -0400
+++ b/xrogue/wizard.c	Tue Apr 21 10:34:01 2015 -0400
@@ -21,6 +21,7 @@
  * under strange circumstances)
  */
 
+#include <stdlib.h>
 #include <curses.h>
 #include <ctype.h>
 #include <string.h>