pike.git / lib / master.pike.in

version» Context lines:

pike.git/lib/master.pike.in:5526:    protected string _sprintf(int t) {    switch(t) {    case 's': return sprintf("%d.%d",major,minor);    case 'O': return sprintf("%O(%s)", this_program, this);    }    }       //! The version object can be casted into a string.    protected mixed cast(string type)    { -  switch(type) -  { -  case "string": +  if( type=="string" )    return sprintf("%d.%d",major,minor); -  +  return UNDEFINED;    }   } - } +       //! Version information about the current Pike version.   Version currentversion = Version(__REAL_MAJOR__, __REAL_MINOR__);      Version lowestcompat = Version(Builtin.LOWEST_COMPAT_MAJOR,    Builtin.LOWEST_COMPAT_MINOR);      mapping(Version:CompatResolver) compat_handler_cache = ([    currentversion:this_object(),   ]);