Branch: Tag:

1997-08-06

1997-08-06 16:39:06 by Henrik Grubbström (Grubba) <grubba@grubba.org>

create() in modules now gets the current configuration as the first argument.

Rev: server/base_server/configuration.pike:1.45
Rev: server/base_server/roxen.pike:1.90

1: - string cvs_version = "$Id: configuration.pike,v 1.44 1997/08/06 15:00:39 marcus Exp $"; + string cvs_version = "$Id: configuration.pike,v 1.45 1997/08/06 16:39:06 grubba Exp $";   #include <module.h>   #include <roxen.h>   /* A configuration.. */
2116:    object obj;    program prog;    +  // It is not thread-safe to use this.    roxen->current_configuration = this_object();   #ifdef MODULE_DEBUG    perror("Modules: Loading " + module_file + "... ");
2123:       if(prog=cache_lookup("modules", module_file)) {    err = catch { -  obj = prog(); +  obj = prog(thist_object());    };    } else {    string dir;
2131:    _master->set_inhibit_compile_errors("");       err = catch { -  obj = roxen->load_from_dirs(roxen->QUERY(ModuleDirs), module_file); +  obj = roxen->load_from_dirs(roxen->QUERY(ModuleDirs), module_file, +  this_object());    };       string errors = _master->errors;