NHDT->ANH, nethack->anethack, nhdat->anhdat
[aNetHack.git] / sys / winnt / stubs.c
blob7576b18a764cc4583fc6ee354b9d8b03a962e33a
1 #include "hack.h"
3 #ifdef GUISTUB
4 #ifdef TTYSTUB
5 #error You can't compile this with both GUISTUB and TTYSTUB defined.
6 #endif
8 int GUILaunched;
9 struct window_procs mswin_procs = { "guistubs" };
11 void
12 mswin_destroy_reg()
14 return;
17 /* MINGW32 has trouble with both a main() and WinMain()
18 * so we move main for the MINGW tty version into this stub
19 * so that it is out of sight for the gui linkage.
21 #ifdef __MINGW32__
22 extern char default_window_sys[];
24 int
25 main(argc, argv)
26 int argc;
27 char *argv[];
29 boolean resuming;
31 sys_early_init();
32 Strcpy(default_window_sys, "tty");
33 resuming = pcmain(argc, argv);
34 moveloop(resuming);
35 anethack_exit(EXIT_SUCCESS);
36 /*NOTREACHED*/
37 return 0;
39 #endif
41 #endif /* GUISTUB */
43 /* =============================================== */
45 #ifdef TTYSTUB
47 #include "hack.h"
48 #include "win32api.h"
50 HANDLE hConIn;
51 HANDLE hConOut;
52 int GUILaunched;
53 struct window_procs tty_procs = { "ttystubs" };
55 void
56 win_tty_init(dir)
57 int dir;
59 return;
62 void
63 nttty_open(mode)
64 int mode;
66 return;
69 void
70 xputc(ch)
71 char ch;
73 return;
76 void
77 xputs(s)
78 const char *s;
80 return;
83 void
84 raw_clear_screen()
86 return;
89 void
90 clear_screen()
92 return;
95 void
96 backsp()
98 return;
102 has_color(int color)
104 return 1;
107 #ifndef NO_MOUSE_ALLOWED
108 void
109 toggle_mouse_support()
111 return;
113 #endif
115 #ifdef PORT_DEBUG
116 void
117 win32con_debug_keystrokes()
119 return;
121 void
122 win32con_handler_info()
124 return;
126 #endif
128 void
129 map_subkeyvalue(op)
130 register char *op;
132 return;
135 void
136 load_keyboard_handler()
138 return;
141 /* this is used as a printf() replacement when the window
142 * system isn't initialized yet
144 void msmsg
145 VA_DECL(const char *, fmt)
147 VA_START(fmt);
148 VA_INIT(fmt, const char *);
149 VA_END();
150 return;
153 /*VARARGS1*/
154 void nttty_error
155 VA_DECL(const char *, s)
157 VA_START(s);
158 VA_INIT(s, const char *);
159 VA_END();
160 return;
163 void
164 synch_cursor()
166 return;
169 void
170 more()
172 return;
175 #endif /* TTYSTUBS */