pike.git / src / pike_types.c

version» Context lines:

pike.git/src/pike_types.c:57:   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 *inheritable_type_string;   PMOD_EXPORT struct pike_type *typeable_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; + PMOD_EXPORT struct pike_type *utf8_type_string;      PMOD_EXPORT struct pike_string *literal_string_string;   PMOD_EXPORT struct pike_string *literal_int_string;   PMOD_EXPORT struct pike_string *literal_float_string;   PMOD_EXPORT struct pike_string *literal_function_string;   PMOD_EXPORT struct pike_string *literal_object_string;   PMOD_EXPORT struct pike_string *literal_program_string;   PMOD_EXPORT struct pike_string *literal_array_string;   PMOD_EXPORT struct pike_string *literal_multiset_string;   PMOD_EXPORT struct pike_string *literal_mapping_string;
pike.git/src/pike_types.c:2380:    string_builder_sprintf(s, "{ %S = %T }",    (struct pike_string *)t->car, t->cdr);    break;       case PIKE_T_ATTRIBUTE:    {    struct pike_string *deprecated;    MAKE_CONST_STRING(deprecated, "deprecated");    if (((struct pike_string *)t->car) == deprecated) {    string_builder_sprintf(s, "__deprecated__(%T)", t->cdr); +  } else if (t == utf8_type_string) { +  string_builder_sprintf(s, "utf8_string");    } else {    struct svalue sval;    SET_SVAL(sval, PIKE_T_STRING, 0, string,    (struct pike_string *)t->car);    string_builder_sprintf(s, "__attribute__(%O, %T)", &sval, t->cdr);    }    }    break;       case T_FUNCTION:
pike.git/src/pike_types.c:8719:    typeable_type_string = CONSTTYPE(tOr4(tPrg(tObj), tObj,    tFuncV(tNone, tOr(tVoid, tMix),    tObj),    tType(tMix)));    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)); +  utf8_type_string = CONSTTYPE(tUtf8Str);       /* add_ref(weak_type_string); *//* LEAK */       literal_string_string = make_shared_string("string");    literal_int_string = make_shared_string("int");    literal_float_string = make_shared_string("float");    literal_function_string = make_shared_string("function");    literal_object_string = make_shared_string("object");    literal_program_string = make_shared_string("program");    literal_array_string = make_shared_string("array");
pike.git/src/pike_types.c:8804:    free_type(typeable_type_string);    typeable_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(utf8_type_string); +  utf8_type_string = NULL;       free_string(literal_string_string); literal_string_string = NULL;    free_string(literal_int_string); literal_int_string = NULL;    free_string(literal_float_string); literal_float_string = NULL;    free_string(literal_function_string); literal_function_string = NULL;    free_string(literal_object_string); literal_object_string = NULL;    free_string(literal_program_string); literal_program_string = NULL;    free_string(literal_array_string); literal_array_string = NULL;    free_string(literal_multiset_string); literal_multiset_string = NULL;    free_string(literal_mapping_string); literal_mapping_string = NULL;