Branch: Tag:

2001-06-28

2001-06-28 20:09:18 by Martin Stjernholm <mast@lysator.liu.se>

Fixed so that my_configuration() and module_identifier() always works,
even before create() in the module object is called.

Rev: server/base_server/configuration.pike:1.443
Rev: server/base_server/module.pike:1.115
Rev: server/base_server/roxen.pike:1.680

6:   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.679 2001/06/27 16:45:20 wellhard Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.680 2001/06/28 20:04:24 mast Exp $";      // The argument cache. Used by the image cache.   ArgCache argcache;
3407:   private mapping(string:Configuration) config_lookup = ([]);   // Maps config name to config object.    + Thread.Local module_init_info = Thread.Local(); + // Used temporarily at module initialization to hold some info so that + // it's available even before create() in the module is called. +    void fix_config_lookup()   {    config_lookup = mkmapping (configurations->name, configurations);