changeset 60:3aa87373c908

srogue: include missing headers.
author elwin
date Fri, 27 Jan 2012 17:29:30 +0000
parents bb9f7d01e09c
children 47aeaccbb953
files srogue/command.c srogue/init.c srogue/io.c srogue/main.c srogue/options.c srogue/potions.c srogue/rings.c srogue/rip.c srogue/save.c srogue/scrolls.c srogue/state.c srogue/things.c srogue/wizard.c
diffstat 13 files changed, 22 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/srogue/command.c	Tue Jan 24 18:30:17 2012 +0000
+++ b/srogue/command.c	Fri Jan 27 17:29:30 2012 +0000
@@ -16,11 +16,15 @@
 
 #include <ctype.h>
 #include <signal.h>
+#include <stdlib.h>
+#include <string.h>
 #include <limits.h>
 #include "rogue.h"
 #include "rogue.ext"
 #ifdef __DJGPP__
 #include <process.h>
+#else
+#include <unistd.h>
 #endif
 
 /*
--- a/srogue/init.c	Tue Jan 24 18:30:17 2012 +0000
+++ b/srogue/init.c	Fri Jan 27 17:29:30 2012 +0000
@@ -15,6 +15,7 @@
  */
 
 #include <ctype.h>
+#include <string.h>
 #include "rogue.h"
 #include "rogue.ext"
 
--- a/srogue/io.c	Tue Jan 24 18:30:17 2012 +0000
+++ b/srogue/io.c	Fri Jan 27 17:29:30 2012 +0000
@@ -16,6 +16,7 @@
 
 #include <stdarg.h>
 #include <ctype.h>
+#include <string.h>
 #include "rogue.h"
 #include "rogue.ext"
 
--- a/srogue/main.c	Tue Jan 24 18:30:17 2012 +0000
+++ b/srogue/main.c	Fri Jan 27 17:29:30 2012 +0000
@@ -15,6 +15,8 @@
  * See the file LICENSE.TXT for full copyright and licensing information.
  */
 
+#include <stdlib.h>
+#include <string.h>
 #include <time.h>
 #include <termios.h>
 #include <fcntl.h>
--- a/srogue/options.c	Tue Jan 24 18:30:17 2012 +0000
+++ b/srogue/options.c	Fri Jan 27 17:29:30 2012 +0000
@@ -16,6 +16,7 @@
 
 #include <termios.h>
 #include <ctype.h>
+#include <string.h>
 #include "rogue.h"
 #include "rogue.ext"
 
--- a/srogue/potions.c	Tue Jan 24 18:30:17 2012 +0000
+++ b/srogue/potions.c	Fri Jan 27 17:29:30 2012 +0000
@@ -14,6 +14,8 @@
  * See the file LICENSE.TXT for full copyright and licensing information.
  */
 
+#include <stdlib.h>
+#include <string.h>
 #include "rogue.h"
 #include "rogue.ext"
 
--- a/srogue/rings.c	Tue Jan 24 18:30:17 2012 +0000
+++ b/srogue/rings.c	Fri Jan 27 17:29:30 2012 +0000
@@ -14,6 +14,8 @@
  * See the file LICENSE.TXT for full copyright and licensing information.
  */
 
+#include <stdlib.h>
+#include <string.h>
 #include "rogue.h"
 #include "rogue.ext"
 
--- a/srogue/rip.c	Tue Jan 24 18:30:17 2012 +0000
+++ b/srogue/rip.c	Fri Jan 27 17:29:30 2012 +0000
@@ -16,6 +16,7 @@
 
 #include <signal.h>
 #include <ctype.h>
+#include <string.h>
 #include <sys/types.h>
 #include <pwd.h>
 #include <fcntl.h>
@@ -51,6 +52,7 @@
 #define RIP_LINES (sizeof rip / (sizeof (char *)))
 
 char	*killname();
+void writelog(int amount, int aflag, char monst);
 
 /*
  * death:
--- a/srogue/save.c	Tue Jan 24 18:30:17 2012 +0000
+++ b/srogue/save.c	Fri Jan 27 17:29:30 2012 +0000
@@ -14,6 +14,8 @@
  * See the file LICENSE.TXT for full copyright and licensing information.
  */
 
+#include <stdlib.h>
+#include <string.h>
 #include <unistd.h>
 #include <ctype.h>
 #include <fcntl.h>
--- a/srogue/scrolls.c	Tue Jan 24 18:30:17 2012 +0000
+++ b/srogue/scrolls.c	Fri Jan 27 17:29:30 2012 +0000
@@ -14,6 +14,8 @@
  * See the file LICENSE.TXT for full copyright and licensing information.
  */
 
+#include <stdlib.h>
+#include <string.h>
 #include <ctype.h>
 #include "rogue.h"
 #include "rogue.ext"
--- a/srogue/state.c	Tue Jan 24 18:30:17 2012 +0000
+++ b/srogue/state.c	Fri Jan 27 17:29:30 2012 +0000
@@ -62,6 +62,7 @@
 #include <sys/stat.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <assert.h>
 #include "rogue.h"
 #include "rogue.ext"
--- a/srogue/things.c	Tue Jan 24 18:30:17 2012 +0000
+++ b/srogue/things.c	Fri Jan 27 17:29:30 2012 +0000
@@ -16,6 +16,7 @@
  */
 
 #include <ctype.h>
+#include <string.h>
 #include "rogue.h"
 #include "rogue.ext"
 
--- a/srogue/wizard.c	Tue Jan 24 18:30:17 2012 +0000
+++ b/srogue/wizard.c	Fri Jan 27 17:29:30 2012 +0000
@@ -14,6 +14,7 @@
  * See the file LICENSE.TXT for full copyright and licensing information.
  */
 
+#include <stdlib.h>
 #include <termios.h>
 #include <ctype.h>
 #include "rogue.h"