pike.git / lib / master.pike.in

version» Context lines:

pike.git/lib/master.pike.in:1:   // -*- Pike -*-   //   // Master Control Program for Pike.   //   // This file is part of Pike. For copyright information see COPYRIGHT.   // Pike is distributed under GPL, LGPL and MPL. See the file COPYING   // for more information.   // - // $Id: master.pike.in,v 1.234 2002/12/01 23:47:00 mast Exp $ + // $Id: master.pike.in,v 1.235 2002/12/03 21:17:58 nilsson Exp $      #pike __REAL_VERSION__      // Some programs destroys character pairs beginning with the currency   // symbol when running in chinese locale.   #if "ยค/" != "\244/"   #error "master.pike.in is corrupted."   #endif      // --- Some configurable parameters
pike.git/lib/master.pike.in:1052:    }       void delete_value (mixed val)    {    if (string name = search (cache, val))    m_delete (cache, name);    }       string _sprintf(int as)    { -  return sprintf("master()->dirnode(%O)",dirname); +  return as=='O' && sprintf("master()->dirnode(%O)",dirname);    }      };      static class ZERO_TYPE {};      class joinnode   {    constant is_resolv_joinnode = 1;    array(object|mapping) joined_modules;    mapping(string:mixed) cache=([]);       string _sprintf(int as)    { -  return sprintf("master()->joinnode(%O)",joined_modules); +  return as=='O' && sprintf("master()->joinnode(%O)",joined_modules);    }       void create(array(object|mapping) _joined_modules)    {    joined_modules = _joined_modules;    }       static mixed ind(string index)    {    array(mixed) res = ({});
pike.git/lib/master.pike.in:1511:    return path;    }       //!    string read_include(string f)    {    AUTORELOAD_CHECK_FILE(f)    return master_read_file(f);    }    -  string _sprintf() +  string _sprintf(int t)    { -  return sprintf("CompatResolver(%s)",ver); +  return t=='O' && sprintf("CompatResolver(%O)",ver);    }   }      inherit CompatResolver;      //! These are useful if you want to start other Pike processes   //! with the same options as this one was started with.   string _pike_file_name;   string _master_file_name;   
pike.git/lib/master.pike.in:2848:      #define CMP(X) ((major - (X)->major) || (minor - (X)->minor))       //! Methods define so that version objects    //! can be compared and ordered.    int `<(Version v) { return CMP(v) < 0; }    int `>(Version v) { return CMP(v) > 0; }    int `==(Version v) { return CMP(v)== 0; }    int _hash() { return major * 4711 + minor ; }    -  string _sprintf() { return sprintf("%d.%d",major,minor); } +  string _sprintf(int t) { +  switch(t) { +  case 's': return sprintf("%d.%d",major,minor); +  case 'O': return sprintf("%O(%s)", this_program, this_object()); +  } +  }       //! The version object can be casted into a string.    mixed cast(string type)    {    switch(type)    {    case "string":    return sprintf("%d.%d",major,minor);    }    }
pike.git/lib/master.pike.in:2971:       compat_handler_cache[v] = ret;      #ifndef RESOLVER_HACK    compat_handler_cache[available[0]] = ret; /* may be equal to 'v' */   #endif       return ret;   }    - string _sprintf() + string _sprintf(int t)   { -  return "master()"; +  switch(t) { +  case 't': return "master"; +  case 'O': return "master()";    } -  + }