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.71 2001/11/05 13:37:49 grubba Exp $ + // $Id: module.pmod,v 1.72 2001/11/12 21:32:05 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:395:    //! Otherwise 0 is returned. 0 is also returned if the variable was    //! not changed by the set. 1 is returned if the variable was    //! changed, and -1 is returned if the variable was changed back to    //! its default value.    //!    //! If verify_set() threw a string, ([])[0] is returned, that is,    //! 0 with zero_type set.    //!    //! If verify_set() threw an exception, the exception is thrown.    { -  string err, e2; +  string err; +  mixed e2;    if( e2 = catch( [err,to] = verify_set( to )) )    {    if( stringp( e2 ) )    {    add_warning( e2 );    return ([])[0];    }    throw( e2 );    }    add_warning( err );