pike.git / src / constants.c

version» Context lines:

pike.git/src/constants.c:206:    visit_string_ref (c->name, REF_TYPE_NORMAL);    }       /* Looks like the c->prog isn't refcounted..? */    /* visit_program_ref (c->prog, REF_TYPE_NORMAL); */   }      #ifdef PIKE_DEBUG   void present_constant_profiling(void)   { -  struct callable_block *b; -  size_t e; -  for(b=callable_blocks;b;b=b->next) -  { -  for(e=0;e<NELEM(b->x);e++) -  { -  if(b->x[e].name) -  { -  fprintf(stderr,"%010ld @E@: %s\n",b->x[e].runs, b->x[e].name->str); +  struct callable *c; +  WALK_NONFREE_BLOCKS (callable, c, c->name, { +  fprintf(stderr,"%010ld @E@: %s\n",c->runs, c->name->str); +  });   } -  } -  } - } +    #endif      void init_builtin_constants(void)   {    builtin_constants = allocate_mapping(300);   }      void exit_builtin_constants(void)   {   #ifdef DO_PIKE_CLEANUP    if(builtin_constants)    {    free_mapping(builtin_constants);    builtin_constants=0;    }   #endif   }