pike.git / src / pike_types.cmod

version» Context lines:

pike.git/src/pike_types.cmod:2817:    }    t = t->cdr;    string_builder_sprintf(s, " : %T)", t);    }    }    break;    }       case T_ARRAY:    string_builder_strcat(s, "array"); -  if (t->cdr && (t->cdr->type == T_MIXED) && -  (t->car == int_pos_type_string)) { +  if ((t->cdr == mixed_type_string) && (t->car == int_pos_type_string)) {    break;    }    string_builder_putchar(s, '('); -  if (t->car != int_pos_type_string) { +     if (t->car == zero_type_string) {    /* Zero-length array. */ -  string_builder_strcat(s, "zero"); +  string_builder_strcat(s, "zero:");    } else { -  +  if (t->car != int_pos_type_string) {    low_describe_int_range(s, t->car); -  } +     string_builder_putchar(s, ':'); -  if (t->cdr->type != T_MIXED) { +  if (t->cdr != mixed_type_string) {    string_builder_putchar(s, ' ');    }    } -  if (t->cdr && (t->cdr->type != T_MIXED)) { +  if (t->cdr != mixed_type_string) {    string_builder_sprintf(s, "%T", t->cdr);    } -  +  }    string_builder_putchar(s, ')');    break;       case T_MULTISET: -  if(t->car && (t->car->type != T_MIXED)) { +  if(t->car != mixed_type_string) {    string_builder_sprintf(s, "multiset(%T)", t->car);    } else {    string_builder_strcat(s, "multiset");    }    break;       case T_NOT:    if (t->car && (t->car->type > T_NOT)) {    string_builder_sprintf(s, "!(%T)", t->car);    } else {
pike.git/src/pike_types.cmod:2890:    }    string_builder_strcat(s, " & ");    if (t->cdr && (t->cdr->type > T_AND)) {    string_builder_sprintf(s, "(%T)", t->cdr);    } else {    low_describe_type(s, t->cdr);    }    break;       case T_MAPPING: -  if((t->car && (t->car->type != T_MIXED)) || -  (t->cdr && (t->cdr->type != T_MIXED))) { +  if ((t->car != mixed_type_string) || (t->cdr != mixed_type_string)) {    string_builder_sprintf(s, "mapping(%T:%T)", t->car, t->cdr);    } else {    string_builder_strcat(s, "mapping");    }    break;       case PIKE_T_AUTO:    if (t->car && (t->car->type != T_ZERO)) {    string_builder_sprintf(s, "auto(%T)", t->car);    } else {