Amiga: collapse #ifndef CROSS_TO_AMIGA include forks
Every #include block had a paired NH: assign path for native builds. Only the cross-compile path is built now.
This commit is contained in:
@@ -3,15 +3,9 @@
|
|||||||
/* Copyright (c) Kenneth Lorber, Bethesda, Maryland 1993,1996 */
|
/* Copyright (c) Kenneth Lorber, Bethesda, Maryland 1993,1996 */
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
|
|
||||||
#ifndef CROSS_TO_AMIGA
|
|
||||||
#include "NH:sys/amiga/windefs.h"
|
|
||||||
#include "NH:sys/amiga/winext.h"
|
|
||||||
#include "NH:sys/amiga/winproto.h"
|
|
||||||
#else
|
|
||||||
#include "windefs.h"
|
#include "windefs.h"
|
||||||
#include "winext.h"
|
#include "winext.h"
|
||||||
#include "winproto.h"
|
#include "winproto.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Have to undef CLOSE as display.h and intuition.h both use it */
|
/* Have to undef CLOSE as display.h and intuition.h both use it */
|
||||||
#undef CLOSE
|
#undef CLOSE
|
||||||
@@ -38,11 +32,7 @@ struct Library *GadToolsBase = NULL;
|
|||||||
struct Library *LayersBase = NULL;
|
struct Library *LayersBase = NULL;
|
||||||
struct Library *AslBase = NULL;
|
struct Library *AslBase = NULL;
|
||||||
|
|
||||||
#ifndef CROSS_TO_AMIGA
|
|
||||||
#include "NH:sys/amiga/amimenu.c"
|
|
||||||
#else
|
|
||||||
#include "amimenu.c"
|
#include "amimenu.c"
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Now our own variables */
|
/* Now our own variables */
|
||||||
|
|
||||||
|
|||||||
@@ -3,15 +3,9 @@
|
|||||||
*/
|
*/
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
|
|
||||||
#ifndef CROSS_TO_AMIGA
|
|
||||||
#include "NH:sys/amiga/windefs.h"
|
|
||||||
#include "NH:sys/amiga/winext.h"
|
|
||||||
#include "NH:sys/amiga/winproto.h"
|
|
||||||
#else
|
|
||||||
#include "windefs.h"
|
#include "windefs.h"
|
||||||
#include "winext.h"
|
#include "winext.h"
|
||||||
#include "winproto.h"
|
#include "winproto.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Start building the text for a menu */
|
/* Start building the text for a menu */
|
||||||
void
|
void
|
||||||
|
|||||||
@@ -3,15 +3,9 @@
|
|||||||
*/
|
*/
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
|
|
||||||
#ifndef CROSS_TO_AMIGA
|
|
||||||
#include "NH:sys/amiga/windefs.h"
|
|
||||||
#include "NH:sys/amiga/winext.h"
|
|
||||||
#include "NH:sys/amiga/winproto.h"
|
|
||||||
#else
|
|
||||||
#include "windefs.h"
|
#include "windefs.h"
|
||||||
#include "winext.h"
|
#include "winext.h"
|
||||||
#include "winproto.h"
|
#include "winproto.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "dlb.h"
|
#include "dlb.h"
|
||||||
|
|
||||||
@@ -402,10 +396,6 @@ amii_askname(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Discarded ... -jhsa
|
|
||||||
#include "NH:sys/amiga/char.c"
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Get the player selection character */
|
/* Get the player selection character */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -9,23 +9,12 @@
|
|||||||
#include <graphics/scale.h>
|
#include <graphics/scale.h>
|
||||||
#include <proto/iffparse.h>
|
#include <proto/iffparse.h>
|
||||||
|
|
||||||
#ifndef CROSS_TO_AMIGA
|
|
||||||
#include "NH:src/tile.c"
|
|
||||||
#else
|
|
||||||
#include "../src/tile.c"
|
#include "../src/tile.c"
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CROSS_TO_AMIGA
|
|
||||||
#include "NH:win/share/tile.h"
|
|
||||||
#include "NH:sys/amiga/windefs.h"
|
|
||||||
#include "NH:sys/amiga/winext.h"
|
|
||||||
#include "NH:sys/amiga/winproto.h"
|
|
||||||
#else
|
|
||||||
#include "tile.h"
|
#include "tile.h"
|
||||||
#include "windefs.h"
|
#include "windefs.h"
|
||||||
#include "winext.h"
|
#include "winext.h"
|
||||||
#include "winproto.h"
|
#include "winproto.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
/* NH:sys/amiga/winvchar.c */
|
/* NH:sys/amiga/winvchar.c */
|
||||||
int main(int, char **);
|
int main(int, char **);
|
||||||
|
|||||||
@@ -3,28 +3,18 @@
|
|||||||
*/
|
*/
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
|
|
||||||
#ifndef CROSS_TO_AMIGA
|
|
||||||
#include "NH:sys/amiga/windefs.h"
|
|
||||||
#include "NH:sys/amiga/winext.h"
|
|
||||||
#include "NH:sys/amiga/winproto.h"
|
|
||||||
#else
|
|
||||||
#include "windefs.h"
|
#include "windefs.h"
|
||||||
#include "winext.h"
|
#include "winext.h"
|
||||||
#include "winproto.h"
|
#include "winproto.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "patchlevel.h"
|
#include "patchlevel.h"
|
||||||
|
|
||||||
extern struct TagItem scrntags[];
|
extern struct TagItem scrntags[];
|
||||||
#ifndef CROSS_TO_AMIGA
|
|
||||||
extern struct Library *ConsoleDevice;
|
|
||||||
#else
|
|
||||||
extern struct Device *
|
extern struct Device *
|
||||||
# ifdef __CONSTLIBBASEDECL__
|
# ifdef __CONSTLIBBASEDECL__
|
||||||
__CONSTLIBBASEDECL__
|
__CONSTLIBBASEDECL__
|
||||||
# endif /* __CONSTLIBBASEDECL__ */
|
# endif /* __CONSTLIBBASEDECL__ */
|
||||||
ConsoleDevice;
|
ConsoleDevice;
|
||||||
#endif
|
|
||||||
static BitMapHeader amii_bmhd;
|
static BitMapHeader amii_bmhd;
|
||||||
static void cursor_common(struct RastPort *, int, int);
|
static void cursor_common(struct RastPort *, int, int);
|
||||||
|
|
||||||
|
|||||||
@@ -2,15 +2,9 @@
|
|||||||
/* Copyright (c) Gregg Wonderly, Naperville, Illinois, 1991,1992,1993. */
|
/* Copyright (c) Gregg Wonderly, Naperville, Illinois, 1991,1992,1993. */
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
|
|
||||||
#ifndef CROSS_TO_AMIGA
|
|
||||||
#include "NH:sys/amiga/windefs.h"
|
|
||||||
#include "NH:sys/amiga/winext.h"
|
|
||||||
#include "NH:sys/amiga/winproto.h"
|
|
||||||
#else
|
|
||||||
#include "windefs.h"
|
#include "windefs.h"
|
||||||
#include "winext.h"
|
#include "winext.h"
|
||||||
#include "winproto.h"
|
#include "winproto.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
int
|
int
|
||||||
amii_nh_poskey(coordxy *x, coordxy *y, int *mod)
|
amii_nh_poskey(coordxy *x, coordxy *y, int *mod)
|
||||||
|
|||||||
@@ -2,15 +2,9 @@
|
|||||||
/* Copyright (c) Gregg Wonderly, Naperville, Illinois, 1991,1992,1993. */
|
/* Copyright (c) Gregg Wonderly, Naperville, Illinois, 1991,1992,1993. */
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
|
|
||||||
#ifndef CROSS_TO_AMIGA
|
|
||||||
#include "NH:sys/amiga/windefs.h"
|
|
||||||
#include "NH:sys/amiga/winext.h"
|
|
||||||
#include "NH:sys/amiga/winproto.h"
|
|
||||||
#else
|
|
||||||
#include "windefs.h"
|
#include "windefs.h"
|
||||||
#include "winext.h"
|
#include "winext.h"
|
||||||
#include "winproto.h"
|
#include "winproto.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#define GADBLUEPEN 2
|
#define GADBLUEPEN 2
|
||||||
#define GADREDPEN 3
|
#define GADREDPEN 3
|
||||||
@@ -45,11 +39,7 @@ struct NewWindow StrWindow = {
|
|||||||
&String, NULL, NULL, NULL, NULL, 5, 5, 0xffff, 0xffff, CUSTOMSCREEN
|
&String, NULL, NULL, NULL, NULL, 5, 5, 0xffff, 0xffff, CUSTOMSCREEN
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifndef CROSS_TO_AMIGA
|
|
||||||
#include "NH:sys/amiga/colorwin.c"
|
|
||||||
#else
|
|
||||||
#include "colorwin.c"
|
#include "colorwin.c"
|
||||||
#endif
|
|
||||||
|
|
||||||
#define XSIZE 2
|
#define XSIZE 2
|
||||||
#define YSIZE 3
|
#define YSIZE 3
|
||||||
@@ -58,11 +48,7 @@ struct NewWindow StrWindow = {
|
|||||||
#define GADOKAY 6
|
#define GADOKAY 6
|
||||||
#define GADCANCEL 7
|
#define GADCANCEL 7
|
||||||
|
|
||||||
#ifndef CROSS_TO_AMIGA
|
|
||||||
#include "NH:sys/amiga/clipwin.c"
|
|
||||||
#else
|
|
||||||
#include "clipwin.c"
|
#include "clipwin.c"
|
||||||
#endif
|
|
||||||
|
|
||||||
void ClearCol(struct Window *w);
|
void ClearCol(struct Window *w);
|
||||||
|
|
||||||
|
|||||||
@@ -2,15 +2,9 @@
|
|||||||
/* Copyright (c) Gregg Wonderly, Naperville, Illinois, 1991,1992,1993. */
|
/* Copyright (c) Gregg Wonderly, Naperville, Illinois, 1991,1992,1993. */
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
|
|
||||||
#ifndef CROSS_TO_AMIGA
|
|
||||||
#include "NH:sys/amiga/windefs.h"
|
|
||||||
#include "NH:sys/amiga/winext.h"
|
|
||||||
#include "NH:sys/amiga/winproto.h"
|
|
||||||
#else
|
|
||||||
#include "windefs.h"
|
#include "windefs.h"
|
||||||
#include "winext.h"
|
#include "winext.h"
|
||||||
#include "winproto.h"
|
#include "winproto.h"
|
||||||
#endif
|
|
||||||
/* Put a string into the indicated window using the indicated attribute */
|
/* Put a string into the indicated window using the indicated attribute */
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user