Roxen.git
/
server
/
etc
/
include
/
roxen.h
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/server/etc/include/roxen.h:1:
// -*- pike -*- //
-
// $Id: roxen.h,v 1.
26
2003/11/25
16
:
00
:
13
anders Exp $
+
// $Id: roxen.h,v 1.
27
2003/11/25
17
:
02
:
04
anders Exp $
#ifndef _ROXEN_H_ #define _ROXEN_H_ #include <config.h> #define HOST_TO_IP 'H' #define IP_TO_HOST 'I' // Localization support
Roxen.git/server/etc/include/roxen.h:61:
int old_cacheable = ([mapping(string:mixed)]id->misc)->cacheable; \ ([mapping(string:mixed)]id->misc)->cacheable = 0; \ report_debug("%s:%d set cacheable to 0 (was: %d)\n", \ __FILE__, __LINE__, old_cacheable, \ ([mapping(string:mixed)]id->misc)->cacheable); \ } while(0) # define NO_PROTO_CACHE() do { \ ([mapping(string:mixed)]id->misc)->no_proto_cache = 1; \ report_debug("%s:%d disabled proto cache\n", __FILE__, __LINE__); \ } while(0)
+
# define PROTO_CACHE() do { \
+
([mapping(string:mixed)]id->misc)->no_proto_cache = 0; \
+
report_debug("%s:%d enabled proto cache\n", __FILE__, __LINE__); \
+
} while(0)
#else # define CACHE(seconds) ([mapping(string:mixed)]id->misc)->cacheable=min(([mapping(string:mixed)]id->misc)->cacheable,seconds) # define RAISE_CACHE(seconds) ([mapping(string:mixed)]id->misc)->cacheable=max(([mapping(string:mixed)]id->misc)->cacheable,seconds) # define NOCACHE() ([mapping(string:mixed)]id->misc)->cacheable=0 # define NO_PROTO_CACHE() ([mapping(string:mixed)]id->misc)->no_proto_cache=1
-
+
# define PROTO_CACHE() ([mapping(string:mixed)]id->misc)->no_proto_cache=0
#endif /* DEBUG_CACHEABLE */ #endif /* !_ROXEN_H_ */