85 an arena. If these functions are called from within an Init function, they |
85 an arena. If these functions are called from within an Init function, they |
86 will be allocated from permanent storage. Otherwise, they will be freed |
86 will be allocated from permanent storage. Otherwise, they will be freed |
87 when the current request is finished. |
87 when the current request is finished. |
88 */ |
88 */ |
89 |
89 |
90 #define MALLOC(size) INTsystem_malloc(size) |
90 //define MALLOC(size) INTsystem_malloc(size) |
91 NSAPI_PUBLIC void *INTsystem_malloc(int size); |
91 NSAPI_PUBLIC void *INTsystem_malloc(int size); |
92 |
92 |
93 #define CALLOC(size) INTsystem_calloc(size) |
93 //define CALLOC(size) INTsystem_calloc(size) |
94 NSAPI_PUBLIC void *INTsystem_calloc(int size); |
94 NSAPI_PUBLIC void *INTsystem_calloc(int size); |
95 |
95 |
96 #define REALLOC(ptr, size) INTsystem_realloc(ptr, size) |
96 //define REALLOC(ptr, size) INTsystem_realloc(ptr, size) |
97 NSAPI_PUBLIC void *INTsystem_realloc(void *ptr, int size); |
97 NSAPI_PUBLIC void *INTsystem_realloc(void *ptr, int size); |
98 |
98 |
99 #define FREE(ptr) INTsystem_free(ptr) |
99 //define FREE(ptr) INTsystem_free(ptr) |
100 NSAPI_PUBLIC void INTsystem_free(void *ptr); |
100 NSAPI_PUBLIC void INTsystem_free(void *ptr); |
101 |
101 |
102 #define STRDUP(ptr) INTsystem_strdup(ptr) |
102 #define STRDUP(ptr) INTsystem_strdup(ptr) |
103 NSAPI_PUBLIC char *INTsystem_strdup(const char *ptr); |
103 NSAPI_PUBLIC char *INTsystem_strdup(const char *ptr); |
104 |
104 |