Branch: Tag:

2016-01-26

2016-01-26 19:38:42 by Martin Nilsson <nilsson@fastmail.com>

SIMPLE_BAD_ARG_ERROR is only kept for compatibility, but we still had 500+ uses of it.

533:    {    int max;    if (TYPEOF(sp[j-args]) != T_STRING) -  SIMPLE_BAD_ARG_ERROR("write",1,"string"); +  SIMPLE_ARG_TYPE_ERROR("write",1,"string");       xsize = max = 1;    to_write_len = sp[j-args].u.string->len;
746:    p_wchar2 *to_write2;    ptrdiff_t to_write_len;    if (TYPEOF(sp[j-args]) != T_STRING) -  SIMPLE_BAD_ARG_ERROR("text_extents",1,"string"); +  SIMPLE_ARG_TYPE_ERROR("text_extents",1,"string");       xsize = max = 1;    to_write_len = sp[j-args].u.string->len;