Branch: Tag:

2001-03-23

2001-03-23 22:49:43 by Martin Stjernholm <mast@lysator.liu.se>

Fixed bug in debug check of return value from Scope.`[]. Added
Parser.initialize for doing initialization in parser objects. Various
minor twiddling.

Rev: server/etc/modules/RXML.pmod/PEnt.pike:1.19
Rev: server/etc/modules/RXML.pmod/PXml.pike:1.53
Rev: server/etc/modules/RXML.pmod/module.pmod:1.144
Rev: server/etc/modules/RXML.pmod/utils.pmod:1.19

4:   //!   //! Created 2000-01-28 by Martin Stjernholm.   //! - //! $Id: PEnt.pike,v 1.18 2001/03/01 03:13:32 mast Exp $ + //! $Id: PEnt.pike,v 1.19 2001/03/23 22:49:42 mast Exp $      //#pragma strict_types // Disabled for now since it doesn't work well enough.   
44:      void reset (RXML.Context ctx, RXML.Type _type, RXML.TagSet _tag_set)   { -  context = ctx; +    #ifdef DEBUG    if (type != _type) error ("Internal error: Type change in reset().\n");    if (tag_set != _tag_set) error ("Internal error: Tag set change in reset().\n");   #endif -  +  initialize (ctx, _type, _tag_set);      #ifdef OLD_RXML_COMPAT    int new_not_compat = !(ctx && ctx->id && ctx->id->conf->old_rxml_compat);
74:    not_compat = !(ctx && ctx->id && ctx->id->conf->old_rxml_compat);   #endif    -  _tag_set_parser_create (ctx, type, tag_set); +  initialize (ctx, type, tag_set);       if (cloned) return;