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.341 2004/04/17 15:18:52 marcus Exp $ + // $Id: master.pike.in,v 1.342 2004/04/17 16:00:41 marcus Exp $      #pike __REAL_VERSION__   //#pragma strict_types      // Some programs destroys character pairs beginning with the currency   // symbol when running in chinese locale.   #if "ยค/" != "\244/"   #error "master.pike.in is corrupted."   #endif   
pike.git/lib/master.pike.in:1998:    static mapping(string:mixed) instantiate_static_modules(object|mapping static_modules)    {    mapping(string:mixed) res = ([]);    foreach(indices(static_modules), string name) {    mixed val = static_modules[name];    if (!val->_module_value)    val = val();    if(mixed tmp=val->_module_value) val=tmp;    mapping(string:mixed) level = res;    string pfx; -  while(2 == sscanf(name, "%s/%s", pfx, name)) +  while(2 == sscanf(name, "%s.%s", pfx, name))    level = (level[pfx] || (level[pfx] = ([])));    level[name] = val;    }    return res;    }       //!    mapping get_default_module()    {    /* This is an ugly kluge to avoid an infinite recursion.