Difference for common/object.c from version 1.115 to 1.116


version 1.115 version 1.116
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_object_c =   * static char *rcsid_object_c =
  *   "$Id: object.c,v 1.115 2005/12/05 22:58:34 akirschbaum Exp $";   *   "$Id: object.c,v 1.116 2005/12/05 23:34:03 akirschbaum Exp $";
  */   */
   
 /*  /*
Line 372
 
Line 372
  * All objects are dumped to stderr (or alternate logfile, if in server-mode)   * All objects are dumped to stderr (or alternate logfile, if in server-mode)
  */   */
   
 void dump_all_objects() {  void dump_all_objects(void) {
   object *op;    object *op;
   for(op=objects;op!=NULL;op=op->next) {    for(op=objects;op!=NULL;op=op->next) {
     dump_object(op);      dump_object(op);
Line 425
 
Line 425
   return op;    return op;
 }  }
   
 void free_all_object_data() {  void free_all_object_data(void) {
 #ifdef MEMORY_DEBUG  #ifdef MEMORY_DEBUG
     object *op, *next;      object *op, *next;
   
Line 767
 
Line 767
  * It is called from get_object() if the unused list is empty.   * It is called from get_object() if the unused list is empty.
  */   */
   
 void expand_objects() {  void expand_objects(void) {
   int i;    int i;
   object *new;    object *new;
   new = (object *) CALLOC(OBJ_EXPAND,sizeof(object));    new = (object *) CALLOC(OBJ_EXPAND,sizeof(object));
Line 801
 
Line 801
  * If there are no free objects, expand_objects() is called to get more.   * If there are no free objects, expand_objects() is called to get more.
  */   */
   
 object *get_object() {  object *get_object(void) {
   object *op;    object *op;
   
   if(free_objects==NULL) {    if(free_objects==NULL) {
Line 1176
 
Line 1176
  * count_free() returns the number of objects on the list of free objects.   * count_free() returns the number of objects on the list of free objects.
  */   */
   
 int count_free() {  int count_free(void) {
   int i=0;    int i=0;
   object *tmp=free_objects;    object *tmp=free_objects;
   while(tmp!=NULL)    while(tmp!=NULL)
Line 1188
 
Line 1188
  * count_used() returns the number of objects on the list of used objects.   * count_used() returns the number of objects on the list of used objects.
  */   */
   
 int count_used() {  int count_used(void) {
   int i=0;    int i=0;
   object *tmp=objects;    object *tmp=objects;
   while(tmp!=NULL)    while(tmp!=NULL)
Line 1200
 
Line 1200
  * count_active() returns the number of objects on the list of active objects.   * count_active() returns the number of objects on the list of active objects.
  */   */
   
 int count_active() {  int count_active(void) {
   int i=0;    int i=0;
   object *tmp=active_objects;    object *tmp=active_objects;
   while(tmp!=NULL)    while(tmp!=NULL)


Legend:
line(s) removed in v.1.115 
line(s) changed
 line(s) added in v.1.116

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:14