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.569 2004/05/06 18:40:33 mast Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.570 2004/05/07 17:32:23 grubba 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:1327:       res+="<br />";       return res;   }      //! Find all applicable locks for this user on @[path].   multiset(DAVLock) find_locks(string path, int(0..1) recursive,    int(0..1) exclude_shared, RequestID id)   { -  TRACE_ENTER(sprintf("find_locks(%O, %O, %O, X)", -  path, recursive, exclude_shared), 0); +  SIMPLE_TRACE_ENTER(0, "find_locks(%O, %O, %O, X)", +  path, recursive, exclude_shared);    multiset(DAVLock) locks = (<>);       foreach(location_module_cache||location_modules(),    [string loc, function func])    { -  TRACE_ENTER(sprintf("Finding locks in %O.", loc), -  function_object(func)); +  SIMPLE_TRACE_ENTER(function_object(func), +  "Finding locks in %O.", loc);    string subpath;    if (has_prefix(path, loc)) {    // path == loc + subpath.    subpath = path[sizeof(loc)..];    } else if (recursive && has_prefix(loc, path)) {    // loc == path + ignored.    subpath = "/";    } else {    // Does not apply to this location module.    TRACE_LEAVE("Skip this module.");    continue;    }    TRACE_ENTER(sprintf("subpath: %O", subpath),    function_object(func)->find_locks);    multiset(DAVLock) sub_locks =    function_object(func)->find_locks(subpath, recursive,    exclude_shared, id);    TRACE_LEAVE("");    if (sub_locks) { -  TRACE_LEAVE(sprintf("Got some locks: %O", sub_locks)); +  SIMPLE_TRACE_LEAVE("Got some locks: %O", sub_locks);    locks |= sub_locks;    } else {    TRACE_LEAVE("Got no locks.");    }    } -  TRACE_LEAVE(sprintf("Returning %O", locks)); +  SIMPLE_TRACE_LEAVE("Returning %O", locks);    return locks;   }      //! Check if there are any applicable locks for this user on @[path].   int(0..3)|DAVLock check_locks(string path, int(0..1) recursive, RequestID id)   {    int state = 0;    foreach(location_module_cache||location_modules(),    [string loc, function func])    {