File: moveinit.pat

package info (click to toggle)
glhack 1.2-1
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 24,604 kB
  • ctags: 18,992
  • sloc: ansic: 208,570; cpp: 13,139; yacc: 2,005; makefile: 1,161; lex: 377; sh: 321; awk: 89; sed: 11
file content (37 lines) | stat: -rw-r--r-- 1,167 bytes parent folder | download | duplicates (35)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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 */