pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:3097:    }    if (args > 3) {    switch(TYPEOF(Pike_sp[3-args])) {    case T_MAPPING:    state = Pike_sp[3-args].u.mapping;    break;    case T_INT:    if (!Pike_sp[3-args].u.integer) break;    /* FALLTHRU */    default: -  Pike_error("Bad argument 3 to __low_check_call() expected mapping.\n"); +  Pike_error("Bad argument 4 to __low_check_call() expected mapping.\n");    }    }    if (args > 4) sval = Pike_sp + 4 - args; -  +     LOW_INIT_CALL_STATE(cs, 1, state); -  if (!(res = low_new_check_call(Pike_sp[-args].u.type, +  res = low_new_check_call(Pike_sp[-args].u.type,    Pike_sp[1-args].u.type, -  flags, &cs, sval))) { +  flags, &cs, sval); +  FREE_CALL_STATE(cs); +     pop_n_elems(args); -  push_undefined(); -  } else { -  pop_n_elems(args); +     push_type_value(res);   } -  FREE_CALL_STATE(cs); - } +       /*! @decl type|zero get_return_type(type fun_type)    *!    *! Check what a function of the type @[fun_type] will    *! return if called with no arguments.    *!    *! @returns    *! Returns the type of the returned value on success    *!    *! Returns @tt{0@} (zero) on failure.
pike.git/src/builtin_functions.c:10544:       ADD_EFUN("typeof_identifier", f_typeof_identifier,    tFunc(tPrg(tObj) tStr, tOr(tType(tMix), tZero)), OPT_TRY_OPTIMIZE);       ADD_EFUN("__soft_cast", f___soft_cast,    tFunc(tSetvar(0, tType(tMix)) tSetvar(1, tType(tMix)),    tOr(tAnd(tVar(0), tVar(1)), tZero)),    OPT_TRY_OPTIMIZE);       ADD_EFUN("__low_check_call", f___low_check_call, -  tFunc(tType(tCallable) tType(tMix) tOr(tInt,tVoid) tOr(tMix,tVoid), +  tFunc(tType(tCallable) tType(tMix) tOr(tInt, tVoid) +  tOr(tMapping, tVoid) tOr(tMix, tVoid),    tOr(tType(tCallable), tZero)),    OPT_TRY_OPTIMIZE);       /* FIXME: Could have a stricter type. */    ADD_EFUN("__get_return_type", f___get_return_type,    tFunc(tType(tCallable), tOr(tType(tMix), tZero)),    OPT_TRY_OPTIMIZE);       /* FIXME: Could have a stricter type. */    ADD_EFUN("__get_first_arg_type", f___get_first_arg_type,