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.23 2001/06/29 15:11:29 mast Exp $ + //! $Id: PEnt.pike,v 1.24 2008/08/15 12:33:54 mast Exp $      //#pragma strict_types // Disabled for now since it doesn't work well enough.      #include <config.h>      inherit RXML.PXml;      constant name = "xml-entity";      // Block these to avoid confusion.   constant add_tag = 0;   constant add_tags = 0;   constant add_container = 0;   constant add_containers = 0;    - static void init_entities() + protected void init_entities()   {    if (!type->entity_syntax) {    // Don't decode normal entities if we're outputting xml-like stuff.   #ifdef OLD_RXML_COMPAT    clear_entities();    if (not_compat) {   #endif    add_entities (tag_set->get_string_entities());   #ifdef OLD_RXML_COMPAT    }
Roxen.git/server/etc/modules/RXML.pmod/PEnt.pike:64:   this_program clone (RXML.Context ctx, RXML.Type type,    RXML.PCode p_code, RXML.TagSet 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 this_program (ctx, type, p_code, tag_set);   #endif    return [object(this_program)] _low_clone (ctx, type, p_code, tag_set, 1);   }    - static void create (RXML.Context ctx, RXML.Type type, + protected void create (RXML.Context ctx, RXML.Type type,    RXML.PCode p_code, RXML.TagSet tag_set, void|int cloned)   {   #ifdef OLD_RXML_COMPAT    not_compat = !(ctx && ctx->id && ctx->id->conf->old_rxml_compat);   #endif       if (type->free_text)    alternative = FREE_TEXT;    else    alternative = type->handle_literals ? LITERALS : NO_LITERALS;