version 1.8 | | version 1.9 |
---|
| | |
/* | | /* |
* static char *rcsid_init_c = | | * static char *rcsid_init_c = |
* "$Id: init.c,v 1.8 2001/03/19 07:58:10 mwedel Exp $"; | | * "$Id: init.c,v 1.9 2001/05/09 06:58:12 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
void init_objects() { | | void init_objects() { |
int i; | | int i; |
/* Initialize all objects: */ | | /* Initialize all objects: */ |
free_objects=objarray; | | |
objects=NULL; | | objects=NULL; |
active_objects = NULL; | | active_objects = NULL; |
| | |
| | #ifdef MEMORY_DEBUG |
| | free_objects=NULL; |
| | #else |
| | free_objects=objarray; |
objarray[0].prev=NULL, | | objarray[0].prev=NULL, |
objarray[0].next= &objarray[1], | | objarray[0].next= &objarray[1], |
SET_FLAG(&objarray[0], FLAG_REMOVED); | | SET_FLAG(&objarray[0], FLAG_REMOVED); |
| | |
objarray[STARTMAX-1].prev= &objarray[STARTMAX-2]; | | objarray[STARTMAX-1].prev= &objarray[STARTMAX-2]; |
SET_FLAG(&objarray[STARTMAX-1], FLAG_REMOVED); | | SET_FLAG(&objarray[STARTMAX-1], FLAG_REMOVED); |
SET_FLAG(&objarray[STARTMAX-1], FLAG_FREED); | | SET_FLAG(&objarray[STARTMAX-1], FLAG_FREED); |
| | #endif |
} | | } |
| | |
/* | | /* |