pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:205:    errname Program.implements;    optflags OPT_TRY_OPTIMIZE;   {    RETURN implements(prog, api);   }      /*! @decl int program_inherits(program child, program parent)    *!    *! Returns 1 if @[child] has inherited @[parent].    */ - PIKEFUN int program_inherits(program child, program parent) + PIKEFUN int program_inherits(program parent, program child)    errname Program.inherits;    optflags OPT_TRY_OPTIMIZE;   { -  RETURN !!low_get_storage(parent, child); +  RETURN low_get_storage(parent, child) != -1;   }      /*! @decl string program_defined(program p)    *!    *! Returns a string with filename and linenumber describing where    *! the program @[p] was defined.    *!    *! The returned string is of the format @tt{"@i{filename@}:@i{linenumber@}"@}.    *!    *! If it cannot be determined where the program was defined, @tt{0@} (zero)