r40: made c++ compatible
[ctsim.git] / include / cio.h
index a96a67f744856f21f6b180ddb45cabca8bbcd6f0..7057bd43d055064528b2e364f55f2e1d7961728a 100644 (file)
@@ -2,8 +2,11 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: cio.h,v 1.4 2000/04/28 18:18:59 kevin Exp $
+**  $Id: cio.h,v 1.5 2000/05/07 12:46:19 kevin Exp $
 **  $Log: cio.h,v $
+**  Revision 1.5  2000/05/07 12:46:19  kevin
+**  made c++ compatible
+**
 **  Revision 1.4  2000/04/28 18:18:59  kevin
 **  removed unused files
 **
 #ifndef __CIO_H
 #define __CIO_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+
 struct crtv_st {
     int init;          /* True if initialized */
     int bios_mode;     /* Current BIOS crt mode */
@@ -46,34 +54,6 @@ struct crtv_st {
 #define CRT_ROWS  25
 #define CRT_COLS  80
 
-/* crt modes */
-
-#define GM_TEXT40    1     /* color */
-#define GM_TEXT80    3     /* color */
-#define GM_320x200   4     /* color */
-#define GM_640x200   6
-#define GM_MONOTEXT  7
-#define GM_E320x200 13
-#define GM_E640x200 14
-#define GM_MONOGRF  15
-#define GM_ENHANCED 16
-
-#define GM_640x480x16  0x12
-#define GM_640x480x256 0x2E
-#define GM_1024x768x16 0x37
-#define GM_1024x768x256        0x38
-
-
-
-#define GM_TEXT             -1
-#define GM_HIGHRES   -2
-#define GM_MEDRES    -3
-
-#define CRT_NONE    -1
-#define CRT_MONO     0
-#define CRT_COLOR    1
-#define CRT_ENHANCED 2
-
 /*----------------------------------------------------------------------*/
 
 #define  ATTR_NORMAL     7
@@ -105,13 +85,6 @@ struct crtv_st {
 #define SC_TAB           9
 #define SC_BLANK       ' '
 
-#define SC_TOP_LEFT    218
-#define SC_TOP_RIGHT   191
-#define SC_BOTT_LEFT   192
-#define SC_BOTT_RIGHT  217
-#define SC_HORIZ       196
-#define SC_VERTICAL    179
-
 
 #define WAITKEY()      {cio_kb_clr(); while (cio_kb_read() == 0);}
 
@@ -173,4 +146,8 @@ void cio_tone(double freq, double length);
 /* check_kb */
 int cio_check_kb_escape(void);
 
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
 #endif