Fix bug in bchscheme. The current disk position was not being updated
authorGuillermo J. Rozas <edu/mit/csail/zurich/gjr>
Tue, 25 Aug 1987 20:37:58 +0000 (20:37 +0000)
committerGuillermo J. Rozas <edu/mit/csail/zurich/gjr>
Tue, 25 Aug 1987 20:37:58 +0000 (20:37 +0000)
in some cases.

v7/src/microcode/bchmmg.c
v7/src/microcode/version.h
v8/src/microcode/version.h

index 3e0e8446560f0347fc94235915aaf070f722e924..85dcb206160133390b6a417675356145234a10ab 100644 (file)
@@ -30,7 +30,7 @@ Technology nor of any adaptation thereof in any advertising,
 promotional, or sales literature without prior written consent from
 MIT in each case. */
 
-/* $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/Attic/bchmmg.c,v 9.35 1987/08/10 21:25:07 jinx Exp $ */
+/* $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/Attic/bchmmg.c,v 9.36 1987/08/25 20:37:58 jinx Exp $ */
 
 /* Memory management top level.  Garbage collection to disk.
 
@@ -304,12 +304,15 @@ load_buffer(position, to, nbytes, name)
 {
   long bytes_read;
 
-  if ((current_disk_position != position) &&
-      (lseek(gc_file, position, 0) == -1))
+  if (current_disk_position != position)
   {
-    fprintf(stderr, "\nCould not position GC file to read %s.\n", name);
-    Microcode_Termination(TERM_EXIT);
-    /*NOTREACHED*/
+    if (lseek(gc_file, position, 0) == -1)
+    {
+      fprintf(stderr, "\nCould not position GC file to read %s.\n", name);
+      Microcode_Termination(TERM_EXIT);
+      /*NOTREACHED*/
+    }
+    current_disk_position = position;
   }
   if ((bytes_read = read(gc_file, to, nbytes)) != nbytes)
   {
index fadf04b61f1765343da4465cb9ffbdc17c442f7c..81cbbc500310ebd029053fa9896502fb2a2a0cdf 100644 (file)
@@ -30,7 +30,7 @@ Technology nor of any adaptation thereof in any advertising,
 promotional, or sales literature without prior written consent from
 MIT in each case. */
 
-/* $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/Attic/version.h,v 9.98 1987/08/17 19:33:01 jinx Exp $
+/* $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/Attic/version.h,v 9.99 1987/08/25 20:36:51 jinx Exp $
 
 This file contains version information for the microcode. */
 \f
@@ -46,7 +46,7 @@ This file contains version information for the microcode. */
 #define VERSION                9
 #endif
 #ifndef SUBVERSION
-#define SUBVERSION     98
+#define SUBVERSION     99
 #endif
 
 #ifndef UCODE_TABLES_FILENAME
index cfc7757d13358b5967e6058ec606dadeb0e01228..eea94a7b7ebe0f52dd9f24cf48ebe19909a6c608 100644 (file)
@@ -30,7 +30,7 @@ Technology nor of any adaptation thereof in any advertising,
 promotional, or sales literature without prior written consent from
 MIT in each case. */
 
-/* $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/microcode/version.h,v 9.98 1987/08/17 19:33:01 jinx Exp $
+/* $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/microcode/version.h,v 9.99 1987/08/25 20:36:51 jinx Exp $
 
 This file contains version information for the microcode. */
 \f
@@ -46,7 +46,7 @@ This file contains version information for the microcode. */
 #define VERSION                9
 #endif
 #ifndef SUBVERSION
-#define SUBVERSION     98
+#define SUBVERSION     99
 #endif
 
 #ifndef UCODE_TABLES_FILENAME