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.108 2008/08/15 12:33:54 mast Exp $ + // $Id: module.pmod,v 1.109 2008/09/25 20:29:44 mast 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:863:    return input(path(), value, size, additional_args);    }       void may_be_empty(int(0..1) state)    //! Decides if an empty variable also is valid.    {    _may_be_empty = state;    }   }    + class TmpInt + //! @[Int] that doesn't get saved. + { +  inherit Int; +  void save() {} + }    -  +    // =====================================================================   // String   // =====================================================================   class String   //! String variable   {    inherit Variable;    constant type = "String";    int width = 40;    //! The width of the input field. Used by overriding classes.