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.42 2000/12/08 08:13:02 nilsson Exp $ + // $Id: module.pmod,v 1.43 2000/12/12 13:50:40 per Exp $      #include <module.h>   #include <roxen.h>      // Locale macros   //<locale-token project="roxen_config"> LOCALE </locale-token>      #define LOCALE(X,Y) \    ([string](mixed)Locale.translate("roxen_config",roxenp()->locale->get(),X,Y))   
Roxen.git/server/etc/modules/Variable.pmod/module.pmod:29:   {    constant is_variable = 1;       constant type = "Basic";    //! Mostly used for debug (sprintf( "%O", variable_obj ) uses it)       int _id = unique_vid++;    // used for indexing the mappings.       static mixed _initial; // default value -  static string _path; // used for forms +  static string _path = sprintf("v%x",_id); // used for forms    static LocaleString __name, __doc;       void destroy()    {    // clean up...    m_delete( all_flags, _id );    m_delete( all_warnings, _id );    m_delete( invisibility_callbacks, _id );    m_delete( changed_values, _id );    }