/[gcl]/gcl/h/powerpc-macosx.h
ViewVC logotype

Diff of /gcl/h/powerpc-macosx.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by rlbk, Sun Oct 5 17:10:54 2003 UTC revision 1.6 by rlbk, Sun Oct 5 19:16:32 2003 UTC
# Line 24  Line 24 
24  /* The following value determines the running process size. */  /* The following value determines the running process size. */
25  #define BIG_HEAP_SIZE   0x50000000  #define BIG_HEAP_SIZE   0x50000000
26    
 /* based on NeXT32-m68k.h */  
 #undef SET_REAL_MAXPAGE  
 #define SET_REAL_MAXPAGE \  
   { extern int mach_maplimit; my_sbrk(0); real_maxpage = mach_maplimit/PAGESIZE; }  
   
27  extern char *mach_mapstart;  extern char *mach_mapstart;
28  extern char *mach_maplimit;  extern char *mach_maplimit;
29  extern char *mach_brkpt;  extern char *mach_brkpt;
30    
31    /* based on NeXT32-m68k.h */
32    #undef SET_REAL_MAXPAGE
33    #define SET_REAL_MAXPAGE \
34      { my_sbrk(0); real_maxpage = (int) mach_maplimit/PAGESIZE; }
35    
36  #define sbrk my_sbrk  #define sbrk my_sbrk
37  extern char *my_sbrk(int incr);  extern char *my_sbrk(int incr);
38    
# Line 147  do {\ Line 147  do {\
147  #undef calloc  #undef calloc
148  #define calloc my_calloc  #define calloc my_calloc
149    
150  #define GET_FULL_PATH_SELF (a_) \  #define GET_FULL_PATH_SELF(a_) \
151  do { \  do { \
152  extern int _NSGetExecutablePath (char *, unsigned long *); \  extern int _NSGetExecutablePath (char *, unsigned long *); \
153  unsigned long bufsize = PATH_MAX; \  unsigned long bufsize = PATH_MAX; \
# Line 155  static char buf [PATH_MAX]; \ Line 155  static char buf [PATH_MAX]; \
155  if (_NSGetExecutablePath (buf, &bufsize) != 0) { \  if (_NSGetExecutablePath (buf, &bufsize) != 0) { \
156      error ("_NSGetExecutablePath failed"); \      error ("_NSGetExecutablePath failed"); \
157  } \  } \
158  (a_) = q; \  (a_) = buf; \
159  } while (0);  } while (0);

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26