203 |
|
/* Verbose mode global */ |
204 |
|
extern int verbose; |
205 |
|
|
206 |
< |
extern char *emalloc(unsigned int n); |
207 |
< |
extern char *ecalloc(unsigned int ne, unsigned int n); |
208 |
< |
extern char *erealloc(char *cp, unsigned int n); |
209 |
< |
extern void efree(char *cp); |
206 |
> |
extern void *emalloc(unsigned int n); |
207 |
> |
extern void *ecalloc(unsigned int ne, unsigned int n); |
208 |
> |
extern void *erealloc(void *ptr, unsigned int n); |
209 |
> |
extern void efree(void *ptr); |
210 |
|
|
211 |
|
#define getGroupID(sc,nm) findName(nm, (const char **)(sc)->grpname, (sc)->ngrps) |
212 |
|
#define getMaterialID(sc,nm) findName(nm, (const char **)(sc)->matname, (sc)->nmats) |
216 |
|
|
217 |
|
#define chunk_alloc(typ, arr, nold) \ |
218 |
|
((nold)&(CHUNKSIZ-1) ? (arr) : \ |
219 |
< |
(typ *)erealloc((char *)(arr), sizeof(typ)*((nold)+CHUNKSIZ))) |
219 |
> |
(typ *)erealloc(arr, sizeof(typ)*((nold)+CHUNKSIZ))) |
220 |
|
|
221 |
|
#ifdef __cplusplus |
222 |
|
} |