Branch: Tag:

2001-08-23

2001-08-23 18:54:53 by Martin Stjernholm <mast@lysator.liu.se>

get_module() proved to be a duplicate of find_module().

Rev: server/base_server/configuration.pike:1.470
Rev: server/base_server/prototypes.pike:1.34

3:   //   // A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.469 2001/08/23 18:40:14 mast Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.470 2001/08/23 18:54:53 mast Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>
522:    }   }    - RoxenModule get_module (string modname) - //! Resolves a string as returned by @[RoxenModule.module_local_id] to - //! a module object in this configuration, if one exists. - { -  string mname; -  int mid = 0; -  sscanf (modname, "%s#%d", mname, mid); -  if (mapping moddata = modules[mname]) -  return moddata->copies[mid]; -  return 0; - } -  +    array (function) file_extension_modules(string ext)   {    if(!file_extension_module_cache[ext])
3037:   RoxenModule find_module(string name)   //! Return the module corresponding to the name (eg "rxmlparse",   //! "rxmlparse#0" or "filesystem#1") or zero, if there was no such - //! module. + //! module. The string is on the same format as the one returned by + //! @[RoxenModule.module_local_id].   {    int id;    sscanf(name, "%s#%d", name, id);