pike.git / src / pike_types.c

version» Context lines:

pike.git/src/pike_types.c:8906: Inside #if defined(PIKE_DEBUG)
   default:    Pike_fatal("find_type: Unhandled type-node: %d\n", t->type);    break;   #endif /* PIKE_DEBUG */    }    return NULL;   }      PMOD_EXPORT void visit_type (struct pike_type *t, int action, void *extra)   { +  visit_enter(t, PIKE_T_TYPE, extra);    switch (action) {   #ifdef PIKE_DEBUG    default:    Pike_fatal ("Unknown visit action %d.\n", action);    case VISIT_NORMAL:    break;   #endif    case VISIT_COMPLEX_ONLY: -  +  visit_leave(t, PIKE_T_TYPE, extra);    return;    case VISIT_COUNT_BYTES:    mc_counted_bytes += sizeof (struct pike_type);    break;    }       switch (t->type) {    case T_FUNCTION:    case T_MANY:    case T_TUPLE:
pike.git/src/pike_types.c:8972: Inside #if defined(PIKE_DEBUG)
   case T_ZERO:    case PIKE_T_UNKNOWN:    case T_INT:    case T_OBJECT:    break;    default:    Pike_fatal("visit_type: Unhandled type-node: %d\n", t->type);    break;   #endif /* PIKE_DEBUG */    } +  visit_leave(t, PIKE_T_TYPE, extra);   }      #if defined (PIKE_DEBUG) || defined (DO_PIKE_CLEANUP)      /* This is only enough gc stuff to detect leaking pike_type structs    * and to locate references to them. More is needed if types are    * extended to contain pointers to other memory objects or if they    * might contain cycles. */      void gc_mark_type_as_referenced(struct pike_type *t)