Branch: Tag:

2000-01-11

2000-01-11 02:00:38 by Martin Stjernholm <mast@lysator.liu.se>

Renamed the eval function in evaluated variable objects to
rxml_var_eval to avoid potential name clashes. Added FLAG_NO_PREFIX.

Rev: server/etc/modules/RXML.pmod/module.pmod:1.12

2:   //!   //! Created 1999-07-30 by Martin Stjernholm.   //! - //! $Id: module.pmod,v 1.11 2000/01/08 12:12:01 mast Exp $ + //! $Id: module.pmod,v 1.12 2000/01/11 02:00:38 mast Exp $      //! Kludge: Must use "RXML.refs" somewhere for the whole module to be   //! loaded correctly.
16:   class Tag   //! Interface class for the static information about a tag.   { +  constant is_RXML_Tag = 1; +     //! Interface.       //!string name;
351:    if (mapping(string:mixed) vars = scopes[scope_name || ""]) {    mixed val;    if (zero_type (val = vars[var])) return ([])[0]; -  else if (objectp (val) && ([object] val)->eval) -  return ([function(Context,string,string:mixed)] ([object] val)->eval) ( +  else if (objectp (val) && ([object] val)->rxml_var_eval) +  return ([function(Context,string,string:mixed)] ([object] val)->rxml_var_eval) (    this_object(), var, scope_name);    else return val;    }
687:   //! If set, the tag accepts non-empty content. E.g. with the standard   //! HTML parser this defines whether the tag is a container or not.    + constant FLAG_NO_PREFIX = 0x00000002; + //! Never apply any prefix to this tag. +    //! The rest of the flags are dynamic (i.e. tested in the Frame object).      constant FLAG_PARENT_SCOPE = 0x00000100;