/* -*-C-*-
-$Id: scheme31.c,v 1.5 1993/09/13 18:41:24 gjr Exp $
+$Id: scheme31.c,v 1.6 1995/10/24 05:34:23 cph Exp $
-Copyright (c) 1993 Massachusetts Institute of Technology
+Copyright (c) 1993-95 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
/* Utilities */
+#ifdef CL386
+
unsigned short
getCS (void)
{
{
_asm mov ax,ss
}
+
+#else /* not CL386 */
+#ifdef __WATCOMC__
+
+extern unsigned short getCS (void);
+#pragma aux getCS = "mov ax,cs" value [ax];
+
+extern unsigned short getDS (void);
+#pragma aux getDS = "mov ax,ds" value [ax];
+
+extern unsigned short getSS (void);
+#pragma aux getSS = "mov ax,ss" value [ax];
+
+#endif /* __WATCOMC__ */
+#endif /* not CL386 */
\f
static UT32PROC call_16_bit_code = NULL;
/* -*-C-*-
-$Id: scheme32.c,v 1.7 1993/09/13 18:40:22 gjr Exp $
+$Id: scheme32.c,v 1.8 1995/10/24 05:36:00 cph Exp $
-Copyright (c) 1993 Massachusetts Institute of Technology
+Copyright (c) 1993-95 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
char *
win32_allocate_heap (unsigned long size, unsigned long * handle)
{
+#ifdef CL386
extern char * malloc (unsigned long);
-
+#endif
* handle = 0L;
return ((char *) (malloc (size)));
}
HWND window;
};
-static void _stdcall
+#ifdef CL386
+#define __STDCALL _stdcall
+#endif
+
+#ifdef __WATCOMC__
+#define __STDCALL __stdcall
+#endif
+
+static void __STDCALL
win32_nt_timer_tick (UINT wID, UINT wMsg, DWORD dwUser, DWORD dw1, DWORD dw2)
{
struct win32_timer_closure_s * scm_timer =