everyone has ANSI C now.
VERS=$(shell sed <vms-empire.spec -n -e '/Version: \(.*\)/s//\1/p')
-# Change the line below for your system. If you are on a Sun or Vax,
-# you may want BSD.
-
-SYS = LINUX
-#SYS = BSD
-#SYS = SYSV
-
# Use -g to compile the program for debugging.
#DEBUG = -g -DDEBUG -Wall
# You shouldn't have to modify anything below this line.
-CFLAGS = $(DEBUG) $(PROFILE) -D$(SYS)
+CFLAGS = $(DEBUG) $(PROFILE)
FILES = \
attack.c \
3) Check to see if the game is over.
*/
-#ifdef SYSV
#include <string.h>
-#else
-#include <strings.h>
-#endif
-
#include "empire.h"
#include "extern.h"
-/* $Id: display.c,v 1.9 2006/07/25 15:59:54 esr Exp esr $ - (c) Copyright 1987, 1988 Chuck Simmons */
+/* $Id: display.c,v 1.10 2006/07/25 16:43:14 esr Exp esr $ - (c) Copyright 1987, 1988 Chuck Simmons */
/*
* Copyright (C) 1987, 1988 Chuck Simmons
point of view;
*/
-#ifdef SYSV
#include <string.h>
-#else
-#include <strings.h>
-#endif
-
#include <curses.h>
#include "empire.h"
#include "extern.h"
*/
#include <stdio.h>
-#ifdef SYSV
#include <string.h>
-#else
-#include <strings.h>
-#endif
-
#include <curses.h>
#include <ctype.h>
#include "empire.h"
#define NULL 0
#endif
-/* Redefine some functions for portability. */
-#ifdef LINUX
-#include <string.h>
-#elif SYSV
-char *memset();
-char *memcpy();
-#define bzero(dst,len) memset(dst,0,len)
-#else
-#define memcpy(dst,src,len) bcopy((src),(dst),(len))
-#define strchr(s,c) index(s,c)
-typedef char chtype;
-#define beep() (putchar('\7'))
-#define napms(d) (usleep((d)*1000))
-#endif
-
-
-
-
typedef unsigned char uchar;
#define ASSERT(x) if (!(x)) assert ("x", __FILE__, __LINE__);
game.c -- Routines to initialize, save, and restore a game.
*/
-#ifdef SYSV
#include <string.h>
-#else
-#include <strings.h>
-#endif
-
#include <stdio.h>
#include <ctype.h>
#include "empire.h"
-/* $Id: map.c,v 1.5 2002/04/19 09:17:01 esr Exp esr $ - (c) Copyright 1987, 1988 Chuck Simmons */
+/* $Id: map.c,v 1.6 2006/07/25 15:19:49 esr Exp esr $ - (c) Copyright 1987, 1988 Chuck Simmons */
/*
* Copyright (C) 1987, 1988 Chuck Simmons
real_maps, path_maps, and cont_maps.
*/
-#ifdef SYSV
#include <string.h>
-#else
-#include <strings.h>
-#endif
-
#include "empire.h"
#include "extern.h"
object.c -- routines for manipulating objects.
*/
-#ifdef SYSV
#include <string.h>
-#else
-#include <strings.h>
-#endif
-
#include <stdio.h>
#include <ctype.h>
#include "empire.h"
*/
#include <stdio.h>
+#include <string.h>
#include <stdlib.h>
#include <curses.h>
#include <ctype.h>