diff options
author | mestre <mestre@openbsd.org> | 2016-01-06 14:28:09 +0000 |
---|---|---|
committer | mestre <mestre@openbsd.org> | 2016-01-06 14:28:09 +0000 |
commit | 010ae45bb590c64a39c8a06666034df48999c5c6 (patch) | |
tree | 453e335c67666da4944249a8fee7cda422f7307b /games/phantasia/phantglobs.c | |
parent | ansify (diff) | |
download | wireguard-openbsd-010ae45bb590c64a39c8a06666034df48999c5c6.tar.xz wireguard-openbsd-010ae45bb590c64a39c8a06666034df48999c5c6.zip |
Remove unnecessary header files from phantasia(6)
Lesson learnt: don't include an header sorted alphabetically just because. The
external definition of variables was done on phantglobs.h but their declaration
was on phantstruct.h and therefore the latter must be included before the
former. It's easier to just include phantstruct.h inside phantglobs.h since it
always need it.
With help and OK from tb@
Diffstat (limited to 'games/phantasia/phantglobs.c')
-rw-r--r-- | games/phantasia/phantglobs.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/games/phantasia/phantglobs.c b/games/phantasia/phantglobs.c index d29d2faa782..e0c0d734f82 100644 --- a/games/phantasia/phantglobs.c +++ b/games/phantasia/phantglobs.c @@ -1,11 +1,14 @@ -/* $OpenBSD: phantglobs.c,v 1.3 1998/11/29 19:57:01 pjanzen Exp $ */ +/* $OpenBSD: phantglobs.c,v 1.4 2016/01/06 14:28:09 mestre Exp $ */ /* $NetBSD: phantglobs.c,v 1.2 1995/03/24 03:59:33 cgd Exp $ */ /* * phantglobs.c - globals for Phantasia */ -#include "include.h" +#include <stdio.h> + +#include "phantdefs.h" +#include "phantstruct.h" double Circle; /* which circle player is in */ double Shield; /* force field thrown up in monster battle */ @@ -28,9 +31,6 @@ int Lines; /* line on screen counter for fight routines */ char Ch_Erase; /* backspace key */ char Ch_Kill; /* linekill key */ -jmp_buf Fightenv; /* used to jump into fight routine */ -jmp_buf Timeoenv; /* used for timing out waiting for input */ - long Fileloc; /* location in file of player statistics */ const char *Login; /* pointer to login of player */ |