Roxen.git / server / etc / modules / Variable.pmod / module.pmod

version» Context lines:

Roxen.git/server/etc/modules/Variable.pmod/module.pmod:1: - // $Id: module.pmod,v 1.21 2000/09/22 14:17:35 jonasw Exp $ + // $Id: module.pmod,v 1.22 2000/09/24 13:35:51 nilsson Exp $      #include <module.h>   #include <roxen.h>      // Locale macros   static inline string getloclang() {    return roxenp()->locale->get();   }      //<locale-token project="roxen_config"> LOCALE </locale-token>    - #if constant(Locale.DeferredLocale) +    #define LOCALE(X,Y) \    ([string](mixed)Locale.DeferredLocale("roxen_config",getloclang,X,Y)) - #else /* !Locale.DeferredLocale */ - #define LOCALE(X,Y) \ -  ([string](mixed)RoxenLocale.DeferredLocale("roxen_config",getloclang,X,Y)) - #endif /* Locale.DeferredLocale */ +       // Increased for each variable, used to index the mappings below.   static int unique_vid;      // The theory is that most variables (or at least a sizable percentage   // of all variables) does not have these members. Thus this saves   // quite a respectable amount of memory, the cost is speed. But   // hopefully not all that great a percentage of speed.   static mapping(int:mixed) changed_values = ([]);   static mapping(int:function(object:void)) changed_callbacks = ([]);