Add conditionalization to distinguish versions 1.0 and 2.0 of NeXT OS.
authorChris Hanson <org/chris-hanson/cph>
Wed, 16 Jan 1991 00:34:58 +0000 (00:34 +0000)
committerChris Hanson <org/chris-hanson/cph>
Wed, 16 Jan 1991 00:34:58 +0000 (00:34 +0000)
v7/src/microcode/oscond.h
v7/src/microcode/s/nextos.h
v7/src/microcode/ux.h
v7/src/microcode/uxtrap.c

index 9c3666e818f85c0a9bbeff93a653ff7452b5a657..594075397e66f6a218b31a67414c59c86ec1c431 100644 (file)
@@ -1,8 +1,8 @@
 /* -*-C-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/Attic/oscond.h,v 1.3 1990/08/10 02:02:25 cph Rel $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/Attic/oscond.h,v 1.4 1991/01/16 00:34:45 cph Exp $
 
-Copyright (c) 1990 Massachusetts Institute of Technology
+Copyright (c) 1990, 1991 Massachusetts Institute of Technology
 
 This material was developed by the Scheme project at the Massachusetts
 Institute of Technology, Department of Electrical Engineering and
@@ -84,6 +84,19 @@ MIT in each case. */
 #define _SYSV
 #endif
 
+#if defined(_NEXTOS)
+
+#define _BSD4_3
+
+#include <sys/port.h>
+#ifdef PORT_BACKLOG_DEFAULT
+#define _NEXTOS_VERSION 20
+#else
+#define _NEXTOS_VERSION 10
+#endif
+
+#endif /* _NEXTOS */
+
 #if defined(_ULTRIX)
 #define _POSIX
 #define _BSD4_3
index 9f0a9a6043bac518870746741afe872b45322dee..29dc08fcb8a23326c066e95c57bfbfb1c36e24e0 100644 (file)
@@ -1,9 +1,9 @@
 /* -*-C-*-
    System file for NeXT running Mach
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/s/Attic/nextos.h,v 1.2 1990/10/16 20:57:07 cph Rel $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/s/Attic/nextos.h,v 1.3 1991/01/16 00:34:58 cph Exp $
 
-Copyright (c) 1990 Massachusetts Institute of Technology
+Copyright (c) 1990, 1991 Massachusetts Institute of Technology
 
 This material was developed by the Scheme project at the Massachusetts
 Institute of Technology, Department of Electrical Engineering and
@@ -33,6 +33,6 @@ Technology nor of any adaptation thereof in any advertising,
 promotional, or sales literature without prior written consent from
 MIT in each case. */
 
-#define C_SWITCH_SYSTEM -bsd -fwritable-strings -D_BSD4_3
+#define C_SWITCH_SYSTEM -bsd -fwritable-strings -D_NEXTOS
 
 #define LIBS_TERMCAP -ltermcap
index 66440e7b60cca13c521fe7c9807d9e33938a2aa4..901f20d49f0c6d106246f9257f6aa923ef3507f2 100644 (file)
@@ -1,8 +1,8 @@
 /* -*-C-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/ux.h,v 1.16 1991/01/07 23:56:58 cph Rel $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/ux.h,v 1.17 1991/01/16 00:34:21 cph Exp $
 
-Copyright (c) 1988, 1989, 1990 Massachusetts Institute of Technology
+Copyright (c) 1988, 1989, 1990, 1991 Massachusetts Institute of Technology
 
 This material was developed by the Scheme project at the Massachusetts
 Institute of Technology, Department of Electrical Engineering and
@@ -116,7 +116,7 @@ extern void EXFUN (error_system_call, (int code, CONST char * name));
 /* #define HAVE_WAIT4 */
 #define UNION_WAIT_STATUS
 
-#if defined(_ULTRIX) || defined(_SUNOS4) || defined(sun4) || defined(NeXT)
+#if defined(_ULTRIX) || defined(_SUNOS4) || defined(sun4) || defined(_NEXTOS)
 #define VOID_SIGNAL_HANDLERS
 #endif
 
@@ -218,7 +218,7 @@ extern void EXFUN (error_system_call, (int code, CONST char * name));
 #define SYSTEM_VARIANT "Ultrix"
 #endif
 
-#ifdef NeXT
+#ifdef _NEXTOS
 #define SYSTEM_VARIANT "NeXT"
 #endif
 
index f844a003bb9f93019082f8ff5c516e61daee2b19..85d964a0b4d8ac6b0ef3bc55fc8d8ef168e58e27 100644 (file)
@@ -1,8 +1,8 @@
 /* -*-C-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/uxtrap.c,v 1.6 1990/12/30 02:00:19 cph Rel $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/uxtrap.c,v 1.7 1991/01/16 00:34:33 cph Exp $
 
-Copyright (c) 1990 Massachusetts Institute of Technology
+Copyright (c) 1990, 1991 Massachusetts Institute of Technology
 
 This material was developed by the Scheme project at the Massachusetts
 Institute of Technology, Department of Electrical Engineering and
@@ -414,7 +414,7 @@ DEFUN (continue_from_trap, (signo, code, scp),
 static SCHEME_OBJECT * EXFUN
   (find_block_address, (char * pc_value, SCHEME_OBJECT * area_start));
 
-#ifndef NeXT
+#if !(defined (_NEXTOS) && (_NEXTOS_VERSION >= 20))
 extern long etext;
 #define get_etext() (&etext)
 #endif