pike.git / src / pike_types.c

version» Context lines:

pike.git/src/pike_types.c:92:   PMOD_EXPORT struct pike_type *function_type_string;   PMOD_EXPORT struct pike_type *object_type_string;   PMOD_EXPORT struct pike_type *program_type_string;   PMOD_EXPORT struct pike_type *array_type_string;   PMOD_EXPORT struct pike_type *multiset_type_string;   PMOD_EXPORT struct pike_type *mapping_type_string;   PMOD_EXPORT struct pike_type *type_type_string;   PMOD_EXPORT struct pike_type *mixed_type_string;   PMOD_EXPORT struct pike_type *void_type_string;   PMOD_EXPORT struct pike_type *zero_type_string; + PMOD_EXPORT struct pike_type *enumerable_type_string;   PMOD_EXPORT struct pike_type *any_type_string;   PMOD_EXPORT struct pike_type *weak_type_string; /* array|mapping|multiset|function */   struct pike_type *sscanf_type_string;   struct pike_type *sscanf_76_type_string;      #ifdef DO_PIKE_CLEANUP   struct pike_type_location *all_pike_type_locations = NULL;   #endif /* DO_PIKE_CLEANUP */      static struct pike_type *a_markers[10], *b_markers[10];
pike.git/src/pike_types.c:8577:    program_type_string = CONSTTYPE(tPrg(tObj));    float_type_string = CONSTTYPE(tFloat);    mixed_type_string = CONSTTYPE(tMix);    array_type_string = CONSTTYPE(tArray);    multiset_type_string = CONSTTYPE(tMultiset);    mapping_type_string = CONSTTYPE(tMapping);    function_type_string = CONSTTYPE(tFunction);    type_type_string = CONSTTYPE(tType(tMix));    void_type_string = CONSTTYPE(tVoid);    zero_type_string = CONSTTYPE(tZero); +  enumerable_type_string = CONSTTYPE(tOr3(tString,tInt,tFloat));    any_type_string = CONSTTYPE(tOr(tVoid,tMix));    weak_type_string = CONSTTYPE(tOr4(tArray,tMultiset,tMapping,    tFuncV(tNone,tZero,tOr(tMix,tVoid))));    sscanf_type_string = CONSTTYPE(tFuncV(tStr tAttr("sscanf_format", tStr),    tAttr("sscanf_args", tMix), tIntPos));    sscanf_76_type_string = CONSTTYPE(tFuncV(tStr tAttr("sscanf_76_format", tStr),    tAttr("sscanf_args", tMix), tIntPos));    /* add_ref(weak_type_string); *//* LEAK */      #ifdef PIKE_DEBUG
pike.git/src/pike_types.c:8630:    free_type(mapping_type_string);    mapping_type_string = NULL;    free_type(type_type_string);    type_type_string = NULL;    free_type(mixed_type_string);    mixed_type_string = NULL;    free_type(void_type_string);    void_type_string = NULL;    free_type(zero_type_string);    zero_type_string = NULL; +  free_type(enumerable_type_string); +  enumerable_type_string = NULL;    free_type(any_type_string);    any_type_string = NULL;    free_type(weak_type_string);    weak_type_string = NULL;    free_type(sscanf_type_string);    sscanf_type_string = NULL;    free_type(sscanf_76_type_string);    sscanf_76_type_string = NULL;   #ifdef PIKE_DEBUG    remove_callback(pike_type_gc_callback);
pike.git/src/pike_types.c:8873: Inside #if defined (PIKE_DEBUG) || defined (DO_PIKE_CLEANUP) and #if defined(PIKE_DEBUG)
   if (mapping_type_string)    gc_mark_external(mapping_type_string, " as mapping_type_string");    if (function_type_string)    gc_mark_external(function_type_string, " as function_type_string");    if (type_type_string)    gc_mark_external(type_type_string, " as type_type_string");    if (void_type_string)    gc_mark_external(void_type_string, " as void_type_string");    if (zero_type_string)    gc_mark_external(zero_type_string, " as zero_type_string"); +  if (enumerable_type_string) +  gc_mark_external(enumerable_type_string, " as enumerable_type_string");    if (any_type_string)    gc_mark_external(any_type_string, " as any_type_string");    if (weak_type_string)    gc_mark_external(weak_type_string, " as weak_type_string");      #ifdef DO_PIKE_CLEANUP    {    struct pike_type_location *t = all_pike_type_locations;    while(t) {    gc_mark_external (t->t, " as constant type");