pike.git / lib / modules / Program.pmod

version» Context lines:

pike.git/lib/modules/Program.pmod:7:      // documented in the C-code.   string defined(program x,string|void y)   {    if( !y )    return __builtin.program_defined(x);    return __builtin.program_identifier_defined(x,y);   }       - //! @fixme - //! Document this function. + //! Recursively enumerate all programs this program inherits. + //! Similar to inherit_tree() but returns a flat array.   array(program) all_inherits(program p)   { -  array(program) ret = inherit_list(p); -  for(int e=0;e<sizeof(ret);e++) ret+=inherit_list(ret[e]); -  return ret; +  return inherit_list(p) + all_inherits(inherit_list(p)[*]) * ({});   }      //! Recursively builds a inheritance tree by   //! fetching programs inheritance lists.   //!   //! @returns   //! Returns an array with programs or arrays   //! as elements.   //!   //! @example