version 1.7 | | version 1.8 |
---|
| | |
/* | | /* |
* static char *rcsid_friend_c = | | * static char *rcsid_friend_c = |
* "$Id: friend.c,v 1.7 2005/10/18 16:54:30 gros Exp $"; | | * "$Id: friend.c,v 1.8 2005/12/05 23:34:03 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
* Dumps all friendly objects. Invoked in DM-mode with the G key. | | * Dumps all friendly objects. Invoked in DM-mode with the G key. |
*/ | | */ |
| | |
void dump_friendly_objects() { | | void dump_friendly_objects(void) { |
objectlink *ol; | | objectlink *ol; |
| | |
for(ol=first_friendly_object;ol!=NULL;ol=ol->next) | | for(ol=first_friendly_object;ol!=NULL;ol=ol->next) |
| | |
* It traverses the friendly list removing objects that should not be here | | * It traverses the friendly list removing objects that should not be here |
* (ie, do not have friendly flag set, freed, etc) | | * (ie, do not have friendly flag set, freed, etc) |
*/ | | */ |
void clean_friendly_list() { | | void clean_friendly_list(void) { |
objectlink *this, *prev=NULL, *next; | | objectlink *this, *prev=NULL, *next; |
int count=0; | | int count=0; |
| | |