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.

261:    if(TYPEOF(Pike_sp[-args]) != PIKE_T_INT &&    (TYPEOF(Pike_sp[-args]) != PIKE_T_STRING ||    Pike_sp[-args].u.string->size_shift)) -  SIMPLE_BAD_ARG_ERROR("bind", 1, "int|string(8bit)"); +  SIMPLE_ARG_TYPE_ERROR("bind", 1, "int|string(8bit)");       addr_len = get_inet_addr(&addr,    (args > 2 && TYPEOF(Pike_sp[2-args])==PIKE_T_STRING?
689:    if (!args)    SIMPLE_TOO_FEW_ARGS_ERROR ("set_backend", 1);    if (TYPEOF(Pike_sp[-args]) != PIKE_T_OBJECT) -  SIMPLE_BAD_ARG_ERROR ("set_backend", 1, "object(Pike.Backend)"); +  SIMPLE_ARG_TYPE_ERROR ("set_backend", 1, "object(Pike.Backend)");    backend = get_storage (Pike_sp[-args].u.object, Backend_program);    if (!backend) -  SIMPLE_BAD_ARG_ERROR ("set_backend", 1, "object(Pike.Backend)"); +  SIMPLE_ARG_TYPE_ERROR ("set_backend", 1, "object(Pike.Backend)");       if (p->box.backend)    change_backend_for_box (&p->box, backend);