pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:9829:    d->type_field = types;    pop_stack();    stack_pop_n_elems_keep_top(args);    }   }      /*! @module Program    */       - /*! @decl string defined(program x, string identifier) + /*! @decl string|zero defined(program x, string identifier)    *!    *! Returns a string with filename and linenumber where @[idenfifier]    *! in @[x] was defined.    *!    *! Returns @expr{0@} (zero) when no line can be found, e.g. for    *! builtin functions.    *! -  *! If @[idenfier] can not be found in @[x] this function returns +  *! If @[identifier] can not be found in @[x] this function returns    *! where the program is defined.    */   PMOD_EXPORT void f_program_identifier_defined(INT32 args)   {    struct program *p;    struct pike_string *ident;    struct program *id_prog, *p2;    struct identifier *id;    INT_TYPE line;    INT_TYPE offset;
pike.git/src/builtin_functions.c:10726:    tFunc(tIntPos tObj tOr(tVoid,tMix),tArr(tVar(1))),    tFunc(tIntPos tMix tMix    tFuncV(tNone,tMix,tSetvar(1,tMix)),tArr(tVar(1)))),    OPT_TRY_OPTIMIZE);       ADD_FUNCTION2("inherit_list", f_inherit_list,    tFunc(tOr(tObj,tPrg(tObj)),tArr(tPrg(tObj))), 0,    OPT_TRY_OPTIMIZE);       ADD_FUNCTION2("program_identifier_defined", f_program_identifier_defined, -  tFunc(tOr(tObj,tPrg(tObj)) tString,tString), 0, +  tFunc(tOr(tObj,tPrg(tObj)) tString, tOr(tString, tZero)), 0,    OPT_TRY_OPTIMIZE);       ADD_FUNCTION2("function_defined", f_function_defined,    tFunc(tFunction,tString), 0, OPT_TRY_OPTIMIZE);       ADD_EFUN("_gdb_breakpoint", pike_gdb_breakpoint,    tFunc(tNone,tVoid), OPT_SIDE_EFFECT);       ADD_EFUN("_gc_status",f__gc_status,    tFunc(tNone,tMap(tString,tOr(tInt,tFloat))),