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

version» Context lines:

Roxen.git/server/etc/include/module.h:1: - // $Id: module.h,v 1.20 1998/11/22 17:04:47 per Exp $ + // $Id: module.h,v 1.21 1999/03/27 20:31:03 grubba Exp $   #ifndef ROXEN_MODULE_H   #define ROXEN_MODULE_H      /* Variable types. */   #define TYPE_STRING 1   #define TYPE_FILE 2   #define TYPE_INT 3   #define TYPE_DIR 4      #define TYPE_STRING_LIST 5
Roxen.git/server/etc/include/module.h:46:   #define VAR_CONFIGURABLE 5   #define VAR_SHORTNAME 6      #define VAR_SIZE 7      #define VAR_TYPE_MASK 255   #define VAR_EXPERT 256   #define VAR_MORE 512      // Fast but unreliable. - #if constant(cpp) +    #define QUERY(var) variables[ #var ][VAR_VALUE] - #else /* !constant(cpp) */ - #define QUERY(var) variables["var"][VAR_VALUE] - #endif /* constant(cpp) */ +       // Like query, but for global variables. - #if constant(cpp) - #define GLOBVAR(x) roxen->variables[ #x ][VAR_VALUE] - #else /* !constant(cpp) */ - #define GLOBVAR(x) roxen->variables["x"][VAR_VALUE] - #endif /* constant(cpp) */ + #ifdef IN_ROXEN + #define GLOBVAR(x) QUERY(x) + #else /* !IN_ROXEN */ + #define GLOBVAR(x) roxen->QUERY(x) + #endif /* IN_ROXEN */      #define MODULE_EXTENSION (1<<0)   #define MODULE_LOCATION (1<<1)   #define MODULE_URL (1<<2)   #define MODULE_FILE_EXTENSION (1<<3)   #define MODULE_PARSER (1<<4)   #define MODULE_LAST (1<<5)   #define MODULE_FIRST (1<<6)      #define MODULE_AUTH (1<<7)