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 |
|
|
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; \ |
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); |