Branch: Tag:

2014-08-18

2014-08-18 21:31:29 by Martin Nilsson <nilsson@opera.com>

Shortened some error messages.

845:    */    push_int(36);    apply(val->u.object,"digits",1); + #ifdef PIKE_DEBUG    if(TYPEOF(Pike_sp[-1]) != T_STRING)    Pike_error("Gmp.mpz->digits did not return a string!\n"); -  + #endif    encode_value2(Pike_sp-1, data, 0);    pop_stack();    break;
1838:       if(args > 1 && TYPEOF(Pike_sp[1-args]) == T_OBJECT)    { -  if (SUBTYPEOF(Pike_sp[1-args])) { -  Pike_error("encode_value: " -  "The codec may not be a subtyped object yet.\n"); -  } +  if (SUBTYPEOF(Pike_sp[1-args])) +  Pike_error("The codec may not be a subtyped object yet.\n"); +     data->codec=Pike_sp[1-args].u.object;    add_ref (data->codec);    }else{
1916:       if(args > 1 && TYPEOF(Pike_sp[1-args]) == T_OBJECT)    { -  if (SUBTYPEOF(Pike_sp[1-args])) { -  Pike_error("encode_value_canonic: " -  "The codec may not be a subtyped object yet.\n"); -  } +  if (SUBTYPEOF(Pike_sp[1-args])) +  Pike_error("The codec may not be a subtyped object yet.\n"); +     data->codec=Pike_sp[1-args].u.object;    add_ref (data->codec);    }else{
2003:   static int my_extract_char(struct decode_data *data)   {    if(data->ptr >= data->len) -  Pike_error("Decode error: Not enough data in string.\n"); +  Pike_error("Not enough data in string.\n");    return data->data [ data->ptr++ ];   }