Roxen.git / server / base_server / module.pike

version» Context lines:

Roxen.git/server/base_server/module.pike:1:   // This file is part of Roxen Webserver.   // Copyright © 1996 - 2000, Roxen IS. - // $Id: module.pike,v 1.86 2000/03/14 05:10:37 nilsson Exp $ + // $Id: module.pike,v 1.87 2000/03/18 02:59:18 mast Exp $      #include <module_constants.h>   #include <module.h>   #include <request_trace.h>      mapping (string:array) variables=([]);   RoxenModule this = this_object();   mapping(string:array(int)) error_log=([]);      constant is_module = 1;
Roxen.git/server/base_server/module.pike:28:   void report_notice( mixed ... args ) { predef::report_notice( @args ); }   void report_debug( mixed ... args ) { predef::report_debug( @args ); }         private string _module_identifier;   string module_identifier()   {    if (!_module_identifier) {    string|mapping name = register_module()[1];    if (mappingp (name)) name = name->standard; -  _module_identifier = sprintf ("%s,%O", name || module_name, my_configuration()); +  string cname = sprintf ("%O", my_configuration()); +  if (sscanf (cname, "Configuration(%s", cname) == 1 && +  sizeof (cname) && cname[-1] == ')') +  cname = cname[..sizeof (cname) - 2]; +  _module_identifier = sprintf ("%s,%s", name || module_name, cname);    }    return _module_identifier;   }      string _sprintf()   {    return "RoxenModule(" + module_identifier() + ")";   }      array register_module()