pike.git / src / pike_types.cmod

version» Context lines:

pike.git/src/pike_types.cmod:2414:    }    break;       case T_STRING:    {    string_builder_strcat(s, "string");    if ((t->cdr == int_type_string) && (t->car == int_pos_type_string)) {    break;    }    string_builder_putchar(s, '('); +  if (t->car == zero_type_string) { +  /* Zero-length string. */ +  string_builder_strcat(s, "zero"); +  } else {    if (t->car != int_pos_type_string) {    low_describe_int_range(s, t->car);    string_builder_strcat(s, ": ");    }    low_describe_int_range(s, t->cdr); -  +  }    string_builder_putchar(s, ')');    break;    }    case T_TYPE:    string_builder_sprintf(s, "type(%T)", t->car);    break;       case PIKE_T_NAME:    string_builder_sprintf(s, "{ %S = %T }",    (struct pike_string *)t->car, t->cdr);
pike.git/src/pike_types.cmod:2496:    }    break;    }       case T_ARRAY:    string_builder_strcat(s, "array");    if((t->cdr->type == T_MIXED) && (t->car == int_pos_type_string)) {    break;    }    string_builder_putchar(s, '('); +  if (t->car == zero_type_string) { +  /* Zero-length array. */ +  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) {    string_builder_putchar(s, ' ');    }    } -  +  }    if (t->cdr->type != T_MIXED) {    string_builder_sprintf(s, "%T", t->cdr);    }    string_builder_putchar(s, ')');    break;       case T_MULTISET:    if(t->car->type != T_MIXED) {    string_builder_sprintf(s, "multiset(%T)", t->car);    } else {