Changeset 62 for trunk


Ignore:
Timestamp:
Feb 29, 2008, 6:45:30 PM (11 years ago)
Author:
ksherdy
Message:

Include document start and document end action routines.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/engine.c

    r52 r62  
    433433}
    434434
    435 
    436435template <CodeUnit_Base C>
    437436inline void ParsingEngine<C>::ParseContent() {
    438437
    439438        int text_start = AbsPos();
     439        DocumentStart_action();
    440440        do {
    441441                ScanTo(MarkupStart); /* '<', '&', or ']' for ']]>' test */
     
    484484                text_start = AbsPos();
    485485        } while (1);
     486        DocumentEnd_action();   
    486487#ifdef BUFFER_PROFILING
    487488        printf("Bit stream computation.\n");
  • trunk/src/engine.h

    r52 r62  
    6969        void Parse_CDATA ();
    7070        void Parse_PI ();
    71         void Parse_Reference ();
     71        void Parse_Reference ();       
    7272       
    73         /* Action routines. */
     73        /* Action routine for document start. */
     74        void DocumentStart_action();   
     75       
     76        /* Action routine for document end. */
     77        void DocumentEnd_action();
     78       
    7479        /* Action routine for an XML comment in "<!--"  "-->" brackets. */
    7580        void Comment_action(int start_pos, int end_pos);
Note: See TracChangeset for help on using the changeset viewer.