rnd-20000815-2-src
[rocksndiamonds.git] / src / msdos.h
index c344414ed379eeeffb461de91d0d437e2016fbbc..ce86234e85e33f83331565e04006008b9a28e1aa 100644 (file)
 *  msdos.h                                                 *
 ***********************************************************/
 
+#ifndef MSDOS_H
+#define MSDOS_H
+
 #include <allegro.h>
 #include <time.h>
 
+
+/* system dependent definitions */
+
+#define PLATFORM_STRING                "DOS"
+
 /* allegro defines TRUE as -1 */
 #ifdef TRUE
 #undef TRUE
 
 #define XFlush(a)
 #define XGetImage(a,b,c,d,e,f,g,h)             ((XImage *) NULL)
-#define XAutoRepeatOn(a)
-#define XAutoRepeatOff(a)
 #define XDisplayName(a)                                ((char *) NULL)
 #define XFreeColors(a,b,c,d,e)
 #define XpmFreeAttributes(a)
@@ -550,6 +556,7 @@ typedef long XVisualInfo;
 typedef long Atom;
 typedef int Status;
 typedef int Bool;
+typedef int XComposeStatus;    /* we don't need the real type */
 
 typedef struct _XGC
 {
@@ -677,7 +684,6 @@ typedef union _XEvent
   XKeyEvent xkey;
 } XEvent;
 
-unsigned char get_ascii(KeySym);
 void XMapWindow(Display *, Window);
 Display *XOpenDisplay(char *);
 Window XCreateSimpleWindow(Display *, Window, int, int,
@@ -706,4 +712,14 @@ void XCloseDisplay(Display *);
 void XNextEvent(Display *, XEvent *);
 int XPending(Display *);
 KeySym XLookupKeysym(XKeyEvent *, int);
+int XLookupString(XKeyEvent *, char *, int, KeySym *, XComposeStatus *);
+void XSetForeground(Display *, GC, unsigned long);
+void XDrawLine(Display *, Drawable, GC, int, int, int, int);
+void XDestroyImage(XImage *);
+Bool XQueryPointer(Display *, Window, Window *, Window *, int *, int *,
+                  int *, int *, unsigned int *);
+void XAutoRepeatOn(Display *);
+void XAutoRepeatOff(Display *);
 void NetworkServer(int, int);
+
+#endif /* MSDOS_H */