Branch: Tag:

2005-02-04

2005-02-04 20:14:44 by Martin Stjernholm <mast@lysator.liu.se>

Added Variable.set_doc and Variable.set_name.

Rev: server/etc/modules/Variable.pmod/module.pmod:1.88

1: - // $Id: module.pmod,v 1.87 2005/02/04 13:26:34 mast Exp $ + // $Id: module.pmod,v 1.88 2005/02/04 20:14:44 mast Exp $      #include <module.h>   #include <roxen.h>
356:    return __doc || "";    }    +  void set_doc (LocaleString doc) +  //! Set the (locale dependent) documentation for this variable. +  { +  __doc = doc; +  } +     LocaleString name( )    //! Return the name of this variable (locale dependant).    //!
365:    return __name || LOCALE(326,"unnamed")+" "+_id;    }    +  void set_name (LocaleString name) +  //! Set the (locale dependent) name for this variable. +  { +  __name = name; +  } +     LocaleString type_hint( )    //! Return the type hint for this variable.    //! Type hints are generic documentation for this variable type,