Roxen.git / server / etc / include / module.h

version» Context lines:

Roxen.git/server/etc/include/module.h:1: - // $Id: module.h,v 1.53 2001/07/31 09:32:26 per Exp $ + // -*- pike -*- + // + // $Id$ +    #ifndef ROXEN_MODULE_H   #define ROXEN_MODULE_H   /* #include "config.h" */   #include <roxen.h>   // compat -  + // + // NOTE: This used to be a valid lvalue. + // In the few places where it was used as an lvalue, + // use set("var", value).   #define QUERY(var) query( #var )      // Like query, but for global variables.   #ifdef IN_ROXEN   #define GLOBVAR(x) query( #x )   #else /* !IN_ROXEN */   #define GLOBVAR(x) roxenp()->query(#x)   #endif /* IN_ROXEN */    - #define CACHE(seconds) ([mapping(string:mixed)]id->misc)->cacheable=min(([mapping(string:mixed)]id->misc)->cacheable,seconds) - #define NOCACHE() ([mapping(string:mixed)]id->misc)->cacheable=0 +    #define TAGDOCUMENTATION mapping tagdocumentation(){return [mapping]get_value_from_file(__FILE__,"tagdoc","#define manual\n");}    - #define ROXEN_MAJOR_VERSION 2 - #define ROXEN_MINOR_VERSION 2 + #define ROXEN_MAJOR_VERSION 5 + #define ROXEN_MINOR_VERSION 0         #define TYPE_STRING 1   #define TYPE_FILE 2   #define TYPE_INT 3   #define TYPE_DIR 4   #define TYPE_STRING_LIST 5   #define TYPE_MULTIPLE_STRING 5   #define TYPE_INT_LIST 6   #define TYPE_MULTIPLE_INT 6
Roxen.git/server/etc/include/module.h:73:    ((value) ? (type && type != RXML.t_text ? type->encode ((value), RXML.t_text) : (value)) : RXML.nil)   #define ENCODE_RXML_XML(value, type) \    ((value) ? (type && type != RXML.t_xml ? type->encode ((value), RXML.t_xml) : (value)) : RXML.nil)      #if constant (thread_create)   # define RXML_CONTEXT (_cur_rxml_context->get())   #else   # define RXML_CONTEXT (_cur_rxml_context)   #endif    + // Debug macros. +  + #ifdef MODULE_DEBUG + # define DO_IF_MODULE_DEBUG(code...) code + #else + # define DO_IF_MODULE_DEBUG(code...)   #endif -  +  + #ifdef RXML_VERBOSE + # define TAG_DEBUG_TEST(test) 1 + #elif defined (RXML_REQUEST_VERBOSE) + # define TAG_DEBUG_TEST(test) \ +  ((test) || RXML_CONTEXT->id && RXML_CONTEXT->id->misc->rxml_verbose) + #else + # define TAG_DEBUG_TEST(test) (test) + #endif +  + #endif // !ROXEN_MODULE_H