Branch: Tag:

1999-06-28

1999-06-28 01:42:10 by Martin Stjernholm <mast@lysator.liu.se>

Add configuration.add_modules() and use it from module.module_dependencies().

Rev: server/base_server/configuration.pike:1.201
Rev: server/base_server/module.pike:1.44

1: - /* $Id: module.pike,v 1.43 1999/06/21 19:31:47 mast Exp $ */ + /* $Id: module.pike,v 1.44 1999/06/28 01:42:10 mast Exp $ */      #include <module.h>   
18:      int module_dependencies(object configuration, array (string) modules)   { -  if(configuration) -  { -  foreach (modules, string module) -  { -  if(!configuration->modules[module] || -  (!configuration->modules[module]->copies && -  !configuration->modules[module]->master)) -  configuration->enable_module(module+"#0"); -  } -  if(roxen->root) -  roxen->build_root(roxen->root); -  } +  if(configuration) configuration->add_modules (modules);    mixed err;    if (err = catch (_do_call_outs()))    report_error ("Error doing call outs:\n" + describe_backtrace (err));