pike.git / src / modules / _Stdio / socket.c

version» Context lines:

pike.git/src/modules/_Stdio/socket.c:254:    int addr_len,fd,tmp;       do_close(p);       if(args < 1)    SIMPLE_TOO_FEW_ARGS_ERROR("bind", 1);       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?    Pike_sp[2-args].u.string->str : NULL),    (TYPEOF(Pike_sp[-args]) == PIKE_T_STRING?    Pike_sp[-args].u.string->str : NULL),    (TYPEOF(Pike_sp[-args]) == PIKE_T_INT?    Pike_sp[-args].u.integer : -1), 0);    INVALIDATE_CURRENT_TIME();   
pike.git/src/modules/_Stdio/socket.c:682:    *! @[query_backend]    */   static void port_set_backend (INT32 args)   {    struct port *p = THIS;    struct Backend_struct *backend;       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);    else    INIT_FD_CALLBACK_BOX (&p->box, backend, p->box.ref_obj,    p->box.fd, 0, got_port_event, 0);   }      /*! @decl Pike.Backend query_backend()    *!