X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/3de32d6085fbd924aa8c905634db3229296a371d..ac993d78a557211a3c93c9e8f76d8e14e501932d:/phantasia/setup.c?ds=inline diff --git a/phantasia/setup.c b/phantasia/setup.c index b192e847..8d2cd6ed 100644 --- a/phantasia/setup.c +++ b/phantasia/setup.c @@ -1,4 +1,4 @@ -/* $NetBSD: setup.c,v 1.18 2008/01/16 23:23:25 lukem Exp $ */ +/* $NetBSD: setup.c,v 1.21 2009/08/31 08:27:16 dholland Exp $ */ /* * setup.c - set up all files for Phantasia @@ -8,15 +8,24 @@ #include #endif -#include +#include #include #include -#include "include.h" +#include +#include +#include +#include +#include #ifndef __dead /* Not NetBSD */ #define __dead #endif +#include "phantdefs.h" +#include "phantstruct.h" +#include "phantglobs.h" +#include "pathnames.h" + int main(int, char *[]); void Error(const char *, const char *) __dead; double drandom(void); @@ -68,9 +77,7 @@ static const char *const files[] = { /* all files to create */ const char *monsterfile = "monsters.asc"; int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { const char *const *filename; /* for pointing to file names */ int fd; /* file descriptor */ @@ -229,8 +236,7 @@ main(argc, argv) / ************************************************************************/ void -Error(str, file) - const char *str, *file; +Error(const char *str, const char *file) { fprintf(stderr, "Error: "); fprintf(stderr, str, file); @@ -262,7 +268,7 @@ Error(str, file) / ************************************************************************/ double -drandom() +drandom(void) { if (sizeof(int) != 2) return((double) (random() & 0x7fff) / 32768.0);