pike.git
/
src
/
constants.c
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/constants.c:189:
add_ref(n); SET_SVAL(s, T_FUNCTION, FUNCTION_BUILTIN, efun, low_make_callable(fun, n, t, flags, optimize, docode)); mapping_string_insert(builtin_constants, n, &s); free_svalue(&s); free_string(n); } PMOD_EXPORT void visit_callable (struct callable *c, int action, void *extra) {
+
visit_enter(c, T_STRUCT_CALLABLE, extra);
switch (action) { #ifdef PIKE_DEBUG default: Pike_fatal ("Unknown visit action %d.\n", action); case VISIT_NORMAL: case VISIT_COMPLEX_ONLY: break; #endif case VISIT_COUNT_BYTES: mc_counted_bytes += sizeof (struct callable); break; } if (!(action & VISIT_COMPLEX_ONLY)) { visit_type_ref (c->type, REF_TYPE_NORMAL, extra); visit_string_ref (c->name, REF_TYPE_NORMAL, extra); } /* Looks like the c->prog isn't refcounted..? */ /* visit_program_ref (c->prog, REF_TYPE_NORMAL); */
-
+
visit_leave(c, T_STRUCT_CALLABLE, extra);
} #ifdef PIKE_DEBUG void present_constant_profiling(void) { struct callable *c; for (c = first_callable; c; c = c->next) { fprintf(stderr,"%010ld @E@: %s\n",c->runs, c->name->str); } }