shithub: rott

Download patch

ref: e31bc9746dab3973c7cdff3fe24adee4c20fab19
parent: bfa6b519e6dedf03e6ece23ac93bc57bbf8e6476
author: Marc-Alexandre Espiaut <marcalexandre@member.fsf.org>
date: Mon Jun 4 11:32:25 EDT 2018

Removing DOS code _rt_swft.h

--- a/rott/_rt_swft.h
+++ b/rott/_rt_swft.h
@@ -20,90 +20,5 @@
 #ifndef _rt_swift_private
 #define _rt_swift_private
 
-#ifdef DOS
-//****************************************************************************
-//
-// Private header for RT_SWIFT.C.
-//
-//****************************************************************************
-
-
-
-//****************************************************************************
-//
-// DEFINES
-//
-//****************************************************************************
-
-#define DPMI_INT     0x31
-#define MOUSE_INT    0x33
-#define DOSMEMSIZE   64                // enough for any SWIFT structure
-
-//
-// device type codes, returned in deviceType field (SWIFT_StaticData)
-//
-#define SWIFT_DEV_NONE		0
-#define SWIFT_DEV_CYBERMAN	1
-
-//
-// Dynamic device data
-//
-#define SDD_EXTERNAL_POWER_CONNECTED	1
-#define SDD_EXTERNAL_POWER_TOO_HIGH	   2
-
-#define AX(r) ((r).x.eax)
-#define BX(r) ((r).x.ebx)
-#define CX(r) ((r).x.ecx)
-#define DX(r) ((r).x.edx)
-#define SI(r) ((r).x.esi)
-#define DI(r) ((r).x.edi)
-
-
-//****************************************************************************
-//
-// TYPEDEFS
-//
-//****************************************************************************
-
-// Active flag:
-static int fActive;                       //  TRUE after successful init
-//  and before termination
-static int nAttached = SWIFT_DEV_NONE;    // type of SWIFT device
-
-union REGS regs;
-struct SREGS sregs;
-
-short selector;                           // selector of DOS memory block
-short segment;                            // segment of DOS memory block
-void far *pdosmem;                        // pointer to DOS memory block
-
-// DPMI real mode interrupt structure
-static struct rminfo
-{
-    long di;
-    long si;
-    long bp;
-    long reserved_by_system;
-    long bx;
-    long dx;
-    long cx;
-    long ax;
-    short flags;
-    short es, ds, fs, gs, ip, cs, sp, ss;
-} RMI;
-
-
-//****************************************************************************
-//
-// PROTOTYPES
-//
-//****************************************************************************
-
-void MouseInt (struct rminfo *prmi);
-static void far *allocDOS (unsigned nbytes, short *pseg, short *psel);
-static void freeDOS (short sel);
-
-#endif
-
 #endif