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.14 2000/03/18 03:33:17 mast Exp $ + //! $Id: PEnt.pike,v 1.15 2000/07/05 23:08:59 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:19:   constant add_containers = 0;      static void init_entities()   {    if (type->quoting_scheme != "xml") {    // Don't decode entities if we're outputting xml-like stuff.   #ifdef OLD_RXML_COMPAT    clear_entities();    if (not_compat) {   #endif -  array(RXML.TagSet) list = ({tag_set}); -  for (int i = 0; i < sizeof (list); i++) { -  array(RXML.TagSet) sublist = list[i]->imported; -  if (sizeof (sublist)) -  list = list[..i] + sublist + list[i + 1..]; -  } -  for (int i = sizeof (list) - 1; i >= 0; i--) -  if (list[i]->low_entities) add_entities (list[i]->low_entities); +  add_entities (tag_set->get_string_entities());   #ifdef OLD_RXML_COMPAT    }   #endif    }      #ifdef OLD_RXML_COMPAT    if (not_compat)   #endif    _set_entity_callback (.utils.p_xml_entity_cb);   #ifdef OLD_RXML_COMPAT