Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2001, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.494 2001/11/09 15:55:43 grubba Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.495 2001/11/12 17:51:54 mast Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>   #include <timers.h>      #define CATCH(P,X) do{mixed e;if(e=catch{X;})report_error("While "+P+"\n"+describe_backtrace(e));}while(0)      // --- Locale defines ---   //<locale-token project="roxen_start"> LOC_S </locale-token>
Roxen.git/server/base_server/configuration.pike:517:   }      mixed call_provider(string provides, string fun, mixed ... args)   //! Maps the function "fun" over all matching provider modules and   //! returns the first positive response.   {    foreach(get_providers(provides), RoxenModule mod)    {    function f;    if(objectp(mod) && functionp(f = mod[fun])) { -  mixed error; -  if (arrayp(error = catch { +     mixed ret;    if (ret = f(@args)) {    return ret;    } -  })) { -  error[0] = "Error in call_provider(): "+error[0]; -  throw(error); +     }    }   } - } +       array (function) file_extension_modules(string ext)   {    if(!file_extension_module_cache[ext = lower_case(ext)])    {    int i;    file_extension_module_cache[ext] = ({ });    for(i=9; i>=0; i--)    {    array(RoxenModule) d;
Roxen.git/server/base_server/configuration.pike:1434: Inside #if defined(URL_MODULES)
      if(mappingp(tmp))    {    TRACE_LEAVE("");    TRACE_LEAVE("Returning data");    TIMER_END(url_modules);    return tmp;    }    if(objectp( tmp ))    { -  array err; +  mixed err;       nest ++;    err = catch {    if( nest < 20 )    tmp = (id->conf || this_object())->low_get_file( tmp, no_magic );    else    {    TRACE_LEAVE("Too deep recursion");    error("Too deep recursion in roxen::get_file() while mapping "    +file+".\n");
Roxen.git/server/base_server/configuration.pike:1761: Inside #if defined(URL_MODULES)
      if(mappingp( remap ))    {    id->not_query=of;    TRACE_LEAVE("Returned 'No thanks'.");    TRACE_LEAVE("");    return 0;    }    if(objectp( remap ))    { -  array err; +  mixed err;    nest ++;       TRACE_LEAVE("Recursing");    file = id->not_query;    err = catch {    if( nest < 20 )    dir = (id->conf || this_object())->find_dir( file, id );    else    error("Too deep recursion in roxen::find_dir() while mapping "    +file+".\n");
Roxen.git/server/base_server/configuration.pike:1883: Inside #if defined(URL_MODULES)
   if(mappingp( tmp )) {    id->not_query = of;    TRACE_LEAVE("");    TRACE_LEAVE("Returned 'No thanks'.");    return 0;    }    if(objectp( tmp ))    {    file = id->not_query;    -  array err; +  mixed err;    nest ++;    TRACE_LEAVE("Recursing");    err = catch {    if( nest < 20 )    tmp = (id->conf || this_object())->stat_file( file, id );    else    error("Too deep recursion in roxen::stat_file() while mapping "    +file+".\n");    };    nest = 0;
Roxen.git/server/base_server/configuration.pike:2070: Inside #if defined(URL_MODULES) and #if defined(MODULE_DEBUG)
  #ifdef MODULE_DEBUG    report_debug("conf->find_dir_stat(\"%s\"): url_module returned mapping:%O\n",    file, tmp);   #endif /* MODULE_DEBUG */    TRACE_LEAVE("Returned mapping."+sprintf("%O", tmp));    TRACE_LEAVE("");    return 0;    }    if(objectp( tmp ))    { -  array err; +  mixed err;    nest ++;       file = id->not_query;    err = catch {    if( nest < 20 )    tmp = (id->conf || this_object())->find_dir_stat( file, id );    else {    TRACE_LEAVE("Too deep recursion");    error("Too deep recursion in roxen::find_dir_stat() while mapping "    +file+".\n");