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.58 2001/07/31 09:32:27 per Exp $ + // $Id: module.pmod,v 1.59 2001/08/01 17:10:50 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:905:    ::create( default_value, 0, flags,std_name, std_doc );    }   }      class DatabaseChoice   //! Select a database from all available databases.   {    inherit StringChoice;    constant type = "DatabaseChoice";    -  function(void:void|object) config = lambda() { return; }; +  function(void:void|object) config = lambda() { return 0; };       DatabaseChoice set_configuration_pointer( function(void:object) configuration )    //! Provide a function that returns a configuration object,    //! that will be used for authentication against the database    //! manager. Typically called as    //! @code{set_configuration_pointer(my_configuration)}.    {    config = configuration;    return this_object();    }