]> granicus.if.org Git - nethack/commitdiff
*** empty log message ***
authorjwalz <jwalz>
Sat, 5 Jan 2002 21:05:57 +0000 (21:05 +0000)
committerjwalz <jwalz>
Sat, 5 Jan 2002 21:05:57 +0000 (21:05 +0000)
sys/msdos/moveinit.pat [new file with mode: 0644]

diff --git a/sys/msdos/moveinit.pat b/sys/msdos/moveinit.pat
new file mode 100644 (file)
index 0000000..fc8ab0c
--- /dev/null
@@ -0,0 +1,37 @@
+ These are patches for MOVEINIT.C, supplied    
+ with the MSVC compiler in the compiler's SOURCE\MOVE  
+ subdirectory. (Copy that and the MOVEAPI.H    
+ file into your NetHack src directory and apply this patch) 
+
+
+*** ../linc/src/moveinit.c     Tue Nov 23 08:01:00 1993
+--- src/moveinit.c     Sun Mar 13 10:13:10 1994
+***************
+*** 13,18 ****
+--- 13,19 ----
+  *******************************************************************************/
+  
+  #include "moveapi.h"
++ extern unsigned memavail(unsigned);
+  
+  #ifndef MOVE_ENV
+  
+***************
+*** 125,132 ****
+      /* attempt to allocate the overlay heap. ignore return value (heap size).
+       * note that MOVE will abort if not enough memory to alloc minimum size.
+       */
+! 
+!     _movesetheap ($$COVL, cparaLarge, cparaMax);
+  
+      /* get available cache ressource amount */
+  
+--- 126,133 ----
+      /* attempt to allocate the overlay heap. ignore return value (heap size).
+       * note that MOVE will abort if not enough memory to alloc minimum size.
+       */
+!     cparaMax = memavail(cparaMin);
+!     _movesetheap ($$COVL, cparaMin, cparaMax);
+  
+      /* get available cache ressource amount */
+