pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:2576:    *!    *! Check if a function of the type @[fun_type] may be called    *! with an argument, and return the type of that argument.    *!    *! @returns    *! Returns the expected type of the first argument to the function.    *!    *! Returns @tt{0@} (zero) if a function of the type @[fun_type]    *! may not be called with any argument, or if it is not callable.    */ - static void f___get_first_arg_type(INT32 args) + 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, CALL_NOT_LAST_ARG)) &&    !(res = get_first_arg_type(Pike_sp[-1].u.type, 0))) {