pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:2491:    */   static void f___get_first_arg_type(INT32 args)   {    struct pike_type *res;    if (args != 1) {    Pike_error("Bad number of arguments to __get_first_arg_type().\n");    }    if (TYPEOF(Pike_sp[-1]) != PIKE_T_TYPE) {    Pike_error("Bad argument 1 to __get_first_arg_type() expected type.\n");    } -  if (!(res = get_first_arg_type(Pike_sp[-1].u.type, 0))) { +  if (!(res = get_first_arg_type(Pike_sp[-1].u.type, CALL_NOT_LAST_ARG)) && +  !(res = get_first_arg_type(Pike_sp[-1].u.type, 0))) {    pop_n_elems(args);    push_undefined();    } else {    pop_n_elems(args);    push_type_value(res);    }   }      /*! @decl array(string) __get_type_attributes(type t)    *!