Roxen.git / server / base_server / global_variables.pike

version» Context lines:

Roxen.git/server/base_server/global_variables.pike:1:   // This file is part of Roxen Webserver.   // Copyright © 1996 - 2000, Roxen IS. - // $Id: global_variables.pike,v 1.35 2000/07/14 20:03:02 lange Exp $ + // $Id: global_variables.pike,v 1.36 2000/07/15 01:05:42 lange Exp $      /*   #pragma strict_types   */   #define DEFVAR string,int|string,string|mapping,int,string|mapping(string:string),void|array(string),void|function:void   #define BDEFVAR string,int|string,string|mapping,int,string|mapping(string:string),void|array(string),void|mapping(string:mapping(string:string)):void      #include <module.h>   #include <roxen.h>   #include <config.h>   inherit "read_config";   inherit "basic_defvar";   #include <version.h>      //<locale-token project="config_interface">LOCALE</locale-token> - static inline object GETLOCOBJ() { -  return roxenp()->locale->get()->config_interface; + static inline string GETLOCLANG() { +  return roxenp()->locale->get();   } - #define LOCALE(X,Y) _DEF_LOCALE(X,Y) + #define LOCALE(X,Y) _DEF_LOCALE("config_interface",X,Y)      mixed save()   {    store( "Variables", variables, 0, 0 );   }      // The following three functions are used to hide variables when they   // are not used. This makes the user-interface clearer and quite a lot   // less clobbered.   
Roxen.git/server/base_server/global_variables.pike:244:    LOCALE("ah", "Logging: Log directory prefix"),    TYPE_STRING|VAR_MORE,    LOCALE("ai", "This is the default file path that will be prepended "    "to the log file path in all the default modules and the "    "virtual server."));       defvar("cache", 0, LOCALE("aj", "Cache: Proxy Disk Cache Enabled"),    TYPE_FLAG,    LOCALE("ak", "If set to Yes, caching will be enabled."));    -  defvar("garb_min_garb", 1, LOCALE("am", "Cache: Proxy Disk Cache Clean size"), +  defvar("garb_min_garb", 1, +  LOCALE("am", "Cache: Proxy Disk Cache Clean size"),    TYPE_INT,    LOCALE("an", "Minimum number of Megabytes removed when a garbage collect is done."),    0, cache_disabled_p);       defvar("cache_minimum_left", 5,    LOCALE("ao", "Cache: Proxy Disk Cache Minimum available free space and inodes (in %)"),    TYPE_INT,    LOCALE("ap", "If less than this amount of disk space or inodes (in %) "    "is left, the cache will remove a few files. This check may "    "work half-hearted if the diskcache is spread over several "