Fix a bug in the error exits for &> .
authorGuillermo J. Rozas <edu/mit/csail/zurich/gjr>
Wed, 11 Oct 1989 15:30:29 +0000 (15:30 +0000)
committerGuillermo J. Rozas <edu/mit/csail/zurich/gjr>
Wed, 11 Oct 1989 15:30:29 +0000 (15:30 +0000)
v7/src/microcode/generic.c
v7/src/microcode/version.h
v8/src/microcode/version.h

index e114c4cc5ce82fc25e43916d16708d8f973e84d0..2c0b1e618521ada5808c7ddb8bb0258b6b10aec1 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-C-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/generic.c,v 9.30 1989/09/20 23:08:54 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/generic.c,v 9.31 1989/10/11 15:30:29 jinx Exp $
 
 Copyright (c) 1987, 1988, 1989 Massachusetts Institute of Technology
 
@@ -267,6 +267,16 @@ real_less_p (Arg1, Arg2)
   TWO_OP_COMPARATOR (<, BIGNUM_LESS_P);
 }
 
+#define BIGNUM_GREATER_P(x, y)         (BIGNUM_LESS_P((y), (x)))
+
+static Boolean
+real_greater_p (Arg1, Arg2)
+     fast SCHEME_OBJECT Arg1;
+     fast SCHEME_OBJECT Arg2;
+{
+  TWO_OP_COMPARATOR (>, BIGNUM_GREATER_P);
+}
+
 DEFINE_PRIMITIVE ("&=", Prim_equal_number, 2, 2, 0)
 {
   PRIMITIVE_HEADER (2);
@@ -298,7 +308,7 @@ DEFINE_PRIMITIVE ("&>", Prim_greater, 2, 2, 0)
   PRIMITIVE_HEADER (2);
   Set_Time_Zone (Zone_Math);
   PRIMITIVE_RETURN
-    (BOOLEAN_TO_OBJECT (real_less_p ((ARG_REF (2)), (ARG_REF (1)))));
+    (BOOLEAN_TO_OBJECT (real_greater_p ((ARG_REF (1)), (ARG_REF (2)))));
 }
 \f
 #define TWO_OP_OPERATOR(FIXNUM_OP, FLONUM_OP, BIGNUM_OP)               \
index b63eb8618a2e950c873f7f4b29d1a8473f77f3da..b832cbc5dc82c2e793a1c7f1ef161c635b297fc2 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-C-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/Attic/version.h,v 11.4 1989/09/28 21:19:51 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/Attic/version.h,v 11.5 1989/10/11 15:30:17 jinx Exp $
 
 Copyright (c) 1988, 1989 Massachusetts Institute of Technology
 
@@ -37,7 +37,7 @@ MIT in each case. */
 /* Scheme system release version */
 
 #ifndef RELEASE
-#define RELEASE                "7.0.0 (beta)"
+#define RELEASE                "7.1.0"
 #endif
 
 /* Microcode release version */
@@ -46,7 +46,7 @@ MIT in each case. */
 #define VERSION                11
 #endif
 #ifndef SUBVERSION
-#define SUBVERSION     4
+#define SUBVERSION     5
 #endif
 
 #ifndef UCODE_TABLES_FILENAME
index 8cde4c23eb428d6ec75585684aafcacb48a00a76..a3fb81bb23904928033282489bc476f103da055e 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-C-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/microcode/version.h,v 11.4 1989/09/28 21:19:51 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/microcode/version.h,v 11.5 1989/10/11 15:30:17 jinx Exp $
 
 Copyright (c) 1988, 1989 Massachusetts Institute of Technology
 
@@ -37,7 +37,7 @@ MIT in each case. */
 /* Scheme system release version */
 
 #ifndef RELEASE
-#define RELEASE                "7.0.0 (beta)"
+#define RELEASE                "7.1.0"
 #endif
 
 /* Microcode release version */
@@ -46,7 +46,7 @@ MIT in each case. */
 #define VERSION                11
 #endif
 #ifndef SUBVERSION
-#define SUBVERSION     4
+#define SUBVERSION     5
 #endif
 
 #ifndef UCODE_TABLES_FILENAME