Branch: Tag:

2017-11-05

2017-11-05 15:03:11 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Runtime: LFUN::destroy() has been renamed to _destruct().

Reflect the name change on some APIs.

3507:    cpu_time_t gc_start_time, gc_start_real_time;    ptrdiff_t objs, pre_kill_objs;   #if defined (PIKE_DEBUG) || defined (DO_PIKE_CLEANUP) -  unsigned destroy_count; +  unsigned destruct_count;   #endif   #ifdef PIKE_DEBUG    unsigned obj_count;
3863:    objs += num_objects;    }   #if defined (PIKE_DEBUG) || defined (DO_PIKE_CLEANUP) -  destroy_count = 0; +  destruct_count = 0;   #endif       if (!SAFE_IS_ZERO(&gc_post_cb)) {
3939:    free_object(o);    gc_free_extra_ref(o);   #if defined (PIKE_DEBUG) || defined (DO_PIKE_CLEANUP) -  destroy_count++; +  destruct_count++;   #endif    really_free_gc_rec_frame (kill_list);    kill_list = next;
3953:       GC_VERBOSE_DO(fprintf(stderr, "| kill: %u objects killed, "    "%"PRINTSIZET"u things really freed\n", -  destroy_count, pre_kill_objs - num_objects)); +  destruct_count, pre_kill_objs - num_objects));       Pike_in_gc=GC_PASS_DESTRUCT;    /* Destruct objects on the destruct queue. */
4178: Inside #if defined(DO_PIKE_CLEANUP)
  #ifdef DO_PIKE_CLEANUP    if (gc_destruct_everything)    fprintf(stderr, "done (%u %s destructed)%s\n", -  destroy_count, destroy_count == 1 ? "was" : "were", timestr); +  destruct_count, destruct_count == 1 ? "was" : "were", timestr);    else   #endif    fprintf(stderr, "done (%"PRINTSIZET"u of %"PRINTSIZET"u "
4210: Inside #if defined(DO_PIKE_CLEANUP)
     #ifdef DO_PIKE_CLEANUP    if (gc_destruct_everything) -  return destroy_count; +  return destruct_count;   #endif       if (!SAFE_IS_ZERO(&gc_done_cb)) {