Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/games/phantasia Rework to use curses.h only on the target, n...



details:   https://anonhg.NetBSD.org/src/rev/6b0758b50e4e
branches:  trunk
changeset: 565414:6b0758b50e4e
user:      ross <ross%NetBSD.org@localhost>
date:      Wed Apr 07 17:46:47 2004 +0000

description:
Rework to use curses.h only on the target, not on the host.

diffstat:

 games/phantasia/fight.c       |  3 ++-
 games/phantasia/gamesupport.c |  3 ++-
 games/phantasia/include.h     |  4 ++--
 games/phantasia/interplayer.c |  3 ++-
 games/phantasia/io.c          |  3 ++-
 games/phantasia/main.c        |  3 ++-
 games/phantasia/misc.c        |  3 ++-
 games/phantasia/phantstruct.h |  4 +++-
 games/phantasia/setup.c       |  4 ++--
 9 files changed, 19 insertions(+), 11 deletions(-)

diffs (147 lines):

diff -r b6fe88c71de9 -r 6b0758b50e4e games/phantasia/fight.c
--- a/games/phantasia/fight.c   Wed Apr 07 17:28:54 2004 +0000
+++ b/games/phantasia/fight.c   Wed Apr 07 17:46:47 2004 +0000
@@ -1,10 +1,11 @@
-/*     $NetBSD: fight.c,v 1.8 2004/02/08 00:32:07 jsm Exp $    */
+/*     $NetBSD: fight.c,v 1.9 2004/04/07 17:46:47 ross Exp $   */
 
 /*
  * fight.c   Phantasia monster fighting routines
  */
 
 #include "include.h"
+#include <curses.h>
 
 void
 encounter(particular)
diff -r b6fe88c71de9 -r 6b0758b50e4e games/phantasia/gamesupport.c
--- a/games/phantasia/gamesupport.c     Wed Apr 07 17:28:54 2004 +0000
+++ b/games/phantasia/gamesupport.c     Wed Apr 07 17:46:47 2004 +0000
@@ -1,10 +1,11 @@
-/*     $NetBSD: gamesupport.c,v 1.6 1999/09/08 21:57:19 jsm Exp $      */
+/*     $NetBSD: gamesupport.c,v 1.7 2004/04/07 17:46:47 ross Exp $     */
 
 /*
  * gamesupport.c - auxiliary routines for support of Phantasia
  */
 
 #include "include.h"
+#include <curses.h>
 
 void
 changestats(ingameflag)
diff -r b6fe88c71de9 -r 6b0758b50e4e games/phantasia/include.h
--- a/games/phantasia/include.h Wed Apr 07 17:28:54 2004 +0000
+++ b/games/phantasia/include.h Wed Apr 07 17:46:47 2004 +0000
@@ -1,15 +1,15 @@
-/*     $NetBSD: include.h,v 1.4 1997/10/13 02:18:19 lukem Exp $        */
+/*     $NetBSD: include.h,v 1.5 2004/04/07 17:46:47 ross Exp $ */
 
 /*
  * include.h - includes all important files for Phantasia
  */
 
 #include <ctype.h>
-#include <curses.h>
 #include <errno.h>
 #include <math.h>
 #include <setjmp.h>
 #include <signal.h>
+#include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <time.h>
diff -r b6fe88c71de9 -r 6b0758b50e4e games/phantasia/interplayer.c
--- a/games/phantasia/interplayer.c     Wed Apr 07 17:28:54 2004 +0000
+++ b/games/phantasia/interplayer.c     Wed Apr 07 17:46:47 2004 +0000
@@ -1,10 +1,11 @@
-/*     $NetBSD: interplayer.c,v 1.6 1999/09/18 19:38:52 jsm Exp $      */
+/*     $NetBSD: interplayer.c,v 1.7 2004/04/07 17:46:47 ross Exp $     */
 
 /*
  * interplayer.c - player to player routines for Phantasia
  */
 
 #include "include.h"
+#include <curses.h>
 
 void
 checkbattle()
diff -r b6fe88c71de9 -r 6b0758b50e4e games/phantasia/io.c
--- a/games/phantasia/io.c      Wed Apr 07 17:28:54 2004 +0000
+++ b/games/phantasia/io.c      Wed Apr 07 17:46:47 2004 +0000
@@ -1,10 +1,11 @@
-/*     $NetBSD: io.c,v 1.6 2004/02/08 00:32:07 jsm Exp $       */
+/*     $NetBSD: io.c,v 1.7 2004/04/07 17:46:47 ross Exp $      */
 
 /*
  * io.c - input/output routines for Phantasia
  */
 
 #include "include.h"
+#include <curses.h>
 
 void
 getstring(cp, mx)
diff -r b6fe88c71de9 -r 6b0758b50e4e games/phantasia/main.c
--- a/games/phantasia/main.c    Wed Apr 07 17:28:54 2004 +0000
+++ b/games/phantasia/main.c    Wed Apr 07 17:46:47 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.12 2004/01/01 16:03:46 jsm Exp $    */
+/*     $NetBSD: main.c,v 1.13 2004/04/07 17:46:47 ross Exp $   */
 
 /*
  * Phantasia 3.3.2 -- Interterminal fantasy game
@@ -56,6 +56,7 @@
  */
 
 #include "include.h"
+#include <curses.h>
 
 int    main(int, char **);
 
diff -r b6fe88c71de9 -r 6b0758b50e4e games/phantasia/misc.c
--- a/games/phantasia/misc.c    Wed Apr 07 17:28:54 2004 +0000
+++ b/games/phantasia/misc.c    Wed Apr 07 17:46:47 2004 +0000
@@ -1,10 +1,11 @@
-/*     $NetBSD: misc.c,v 1.10 2004/01/01 16:03:46 jsm Exp $    */
+/*     $NetBSD: misc.c,v 1.11 2004/04/07 17:46:47 ross Exp $   */
 
 /*
  * misc.c  Phantasia miscellaneous support routines
  */
 
 #include "include.h"
+#include <curses.h>
 
 
 void
diff -r b6fe88c71de9 -r 6b0758b50e4e games/phantasia/phantstruct.h
--- a/games/phantasia/phantstruct.h     Wed Apr 07 17:28:54 2004 +0000
+++ b/games/phantasia/phantstruct.h     Wed Apr 07 17:46:47 2004 +0000
@@ -1,4 +1,6 @@
-/*     $NetBSD: phantstruct.h,v 1.3 1999/09/08 21:17:55 jsm Exp $      */
+/*     $NetBSD: phantstruct.h,v 1.4 2004/04/07 17:46:47 ross Exp $     */
+
+#define bool char
 
 /*
  * phantstruct.h - structure definitions for Phantasia
diff -r b6fe88c71de9 -r 6b0758b50e4e games/phantasia/setup.c
--- a/games/phantasia/setup.c   Wed Apr 07 17:28:54 2004 +0000
+++ b/games/phantasia/setup.c   Wed Apr 07 17:46:47 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: setup.c,v 1.12 2003/05/08 13:03:49 wiz Exp $   */
+/*     $NetBSD: setup.c,v 1.13 2004/04/07 17:46:47 ross Exp $  */
 
 /*
  * setup.c - set up all files for Phantasia
@@ -110,7 +110,7 @@
        }
 
     /* put holy grail info into energy void file */
-    Enrgyvoid.ev_active = TRUE;
+    Enrgyvoid.ev_active = 1;
     Enrgyvoid.ev_x = ROLL(-1.0e6, 2.0e6);
     Enrgyvoid.ev_y = ROLL(-1.0e6, 2.0e6);
     path = strrchr(_PATH_VOID, '/') + 1;



Home | Main Index | Thread Index | Old Index