Roxen.git / server / etc / modules / RXML.pmod / PEnt.pike

version» Context lines:

Roxen.git/server/etc/modules/RXML.pmod/PEnt.pike:1:   //! Variant of PXml that parses only entities.   //!   //! This parser is the default for arguments.   //!   //! Created 2000-01-28 by Martin Stjernholm.   //! - //! $Id: PEnt.pike,v 1.20 2001/04/18 04:51:39 mast Exp $ + //! $Id: PEnt.pike,v 1.21 2001/04/19 12:59:51 mast Exp $      //#pragma strict_types // Disabled for now since it doesn't work well enough.      #include <config.h>      inherit RXML.PXml;      // Block these to avoid confusion.   constant add_tag = 0;   constant add_tags = 0;
Roxen.git/server/etc/modules/RXML.pmod/PEnt.pike:41:    _set_entity_callback (.utils.p_xml_compat_entity_cb);   #endif   }      void reset (RXML.Context ctx, RXML.Type _type, RXML.TagSet _tag_set)   {   #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 +  value = RXML.nil;    initialize (ctx, _type, _tag_set);      #ifdef OLD_RXML_COMPAT    int new_not_compat = !(ctx && ctx->id && ctx->id->conf->old_rxml_compat);    if (new_not_compat == not_compat) return;    not_compat = new_not_compat;    init_entities();   #endif   }