Changeset 161 for trunk


Ignore:
Timestamp:
Jun 21, 2008, 10:22:06 AM (11 years ago)
Author:
cameron
Message:

markup_stats fix: nonexistent file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/markup_stats.cxx

    r160 r161  
    117117
    118118/* Action routine for an XML comment in "<!--"  "-->" brackets. */
    119 template <class C>
    120 inline void ParsingEngine<C>::Comment_action(unsigned char * item, int lgth) {
     119template <class B>
     120inline void ParsingEngine<B>::Comment_action(unsigned char * item, int lgth) {
    121121        comment_count +=1;
    122122       
     
    127127
    128128/* Action routine called upon recognizing "<![CDATA[" to start a CDATA section. */
    129 template <class C>
    130 inline void ParsingEngine<C>::CDATA_start_action(unsigned char * CDATA_ptr){
     129template <class B>
     130inline void ParsingEngine<B>::CDATA_start_action(unsigned char * CDATA_ptr){
    131131        CDATA_start_pos = AbsPos() - 9;
    132132        CDATA_start_count +=1;
     
    134134
    135135/* Action routine called upon recognizing "]]>" to end a CDATA section. */
    136 template <class C>
    137 inline void ParsingEngine<C>::CDATA_end_action(unsigned char * CDATA_end_ptr) {
     136template <class B>
     137inline void ParsingEngine<B>::CDATA_end_action(unsigned char * CDATA_end_ptr) {
    138138        CDATA_end_count +=1;
    139139       
     
    144144
    145145/* Action routine for an XML processing instruction enclosed in "<?" and "?>" brackets. */
    146 template <class C>
    147 inline void ParsingEngine<C>::PI_action(unsigned char * item, int lgth) {
     146template <class B>
     147inline void ParsingEngine<B>::PI_action(unsigned char * item, int lgth) {
    148148        PI_count +=1;
    149149       
     
    154154
    155155/* Action routine for an empty element enclosed in "<" and "/>" brackets. */
    156 template <class C>
    157 inline void ParsingEngine<C>::EmptyElement_action(unsigned char * item, int lgth) {
     156template <class B>
     157inline void ParsingEngine<B>::EmptyElement_action(unsigned char * item, int lgth) {
    158158        empty_elem_count +=1;
    159159       
     
    164164
    165165/* Action routine for a start tag enclosed in "<" and ">" brackets. */
    166 template <class C>
    167 inline void ParsingEngine<C>::StartTag_action(unsigned char * item, int lgth) {
     166template <class B>
     167inline void ParsingEngine<B>::StartTag_action(unsigned char * item, int lgth) {
    168168        start_tag_count +=1;
    169169       
     
    178178
    179179/* Action routine for an end tag enclosed in "</" and ">" brackets. */
    180 template <class C>
    181 inline void ParsingEngine<C>::EndTag_action(unsigned char * item, int lgth) {
     180template <class B>
     181inline void ParsingEngine<B>::EndTag_action(unsigned char * item, int lgth) {
    182182        end_tag_count +=1;
    183183       
     
    190190
    191191/* Action routine for an error item */
    192 template <class C>
    193 inline void ParsingEngine<C>::Error_action(unsigned char * item, int lgth) {
     192template <class B>
     193inline void ParsingEngine<B>::Error_action(unsigned char * item, int lgth) {
    194194        error_item_count +=1;
    195195       
     
    203203
    204204/* Action routine for a text item */
    205 template <class C>
    206 inline void ParsingEngine<C>::Text_action(unsigned char * item, int lgth) {
     205template <class B>
     206inline void ParsingEngine<B>::Text_action(unsigned char * item, int lgth) {
    207207        text_item_count +=1;
    208208       
     
    212212}
    213213
    214 template <class C>
    215 inline void ParsingEngine<C>::Reference_action(unsigned char * item, int lgth) {
     214template <class B>
     215inline void ParsingEngine<B>::Reference_action(unsigned char * item, int lgth) {
    216216        reference_count +=1;
    217217       
     
    244244/* Action routine for an element name occurring immediately after the
    245245   opening "<" of a start tag or empty element tag. */
    246 template <class C>
    247 inline void ParsingEngine<C>::ElementName_action(unsigned char * item, int lgth) {
     246template <class B>
     247inline void ParsingEngine<B>::ElementName_action(unsigned char * item, int lgth) {
    248248}
    249249
    250250/* Action routine for a processing instruction target name occurring immediately
    251251   after the opening "<?" of a processing instruction. */
    252 template <class C>
    253 inline void ParsingEngine<C>::PI_Target_action(unsigned char * item, int lgth) {
     252template <class B>
     253inline void ParsingEngine<B>::PI_Target_action(unsigned char * item, int lgth) {
    254254}
    255255
    256256/* Action routine for an individual attribute/value pair occurring in
    257257   a element start tag or an empty element tag. */
    258 template <class C>
    259 inline void ParsingEngine<C>::AttributeValue_action(unsigned char * name, int name_lgth,
     258template <class B>
     259inline void ParsingEngine<B>::AttributeValue_action(unsigned char * name, int name_lgth,
    260260                                 unsigned char * val, int val_lgth) {
    261261        total_attribute_count+=1;
     
    269269/* Action routine for an individual attribute/value pair occurring in
    270270   a element start tag or an empty element tag. */
    271 template <class C>
    272 inline void ParsingEngine<C>::Namespace_action(unsigned char * name, int name_lgth,
     271template <class B>
     272inline void ParsingEngine<B>::Namespace_action(unsigned char * name, int name_lgth,
    273273                             unsigned char * URI, int URI_lgth) {
    274274        namespace_count+=1;
     
    281281
    282282
    283 template <class C>
    284 inline void ParsingEngine<C>::FinalizeBuffer_action() {
     283template <class B>
     284inline void ParsingEngine<B>::FinalizeBuffer_action() {
    285285       
    286286       
     
    299299
    300300
    301 template <class C>
    302 inline void ParsingEngine<C>::DocumentStart_action() {
     301template <class B>
     302inline void ParsingEngine<B>::DocumentStart_action() {
    303303        #if defined(PAPI) and defined(CODE_CLOCKING) and (CODE_CLOCKING == BUFFER_TOTAL)
    304304                code_clocker->cc_start_interval();
     
    306306}
    307307
    308 template <class C>
    309 inline void ParsingEngine<C>::DocumentEnd_action() {
     308template <class B>
     309inline void ParsingEngine<B>::DocumentEnd_action() {
    310310        #if defined(PAPI) and defined(CODE_CLOCKING) and (CODE_CLOCKING == BUFFER_TOTAL)
    311311                code_clocker->cc_end_interval(buffer_rel_pos);
     
    313313}
    314314
    315 template <class C>
    316 inline void ParsingEngine<C>::Doctype_action(unsigned char * item, int lgth) {
     315template <class B>
     316inline void ParsingEngine<B>::Doctype_action(unsigned char * item, int lgth) {
    317317#ifdef SHOW_DTD_ACTIONS
    318318        printf("Document Type:\n");
     
    321321}
    322322
    323 template <class C>
    324 inline void ParsingEngine<C>::PEReference_action(unsigned char * item, int lgth) {
    325 }
    326 
    327 
    328 template <class C>
    329 inline void ParsingEngine<C>::ExtSubsetDecl_action(unsigned char * item, int lgth) {
     323template <class B>
     324inline void ParsingEngine<B>::PEReference_action(unsigned char * item, int lgth) {
     325}
     326
     327
     328template <class B>
     329inline void ParsingEngine<B>::ExtSubsetDecl_action(unsigned char * item, int lgth) {
    330330#ifdef SHOW_DTD_ACTIONS
    331331        printf("ExtSubsetDecl:\n");
     
    334334}
    335335
    336 template <class C>
    337 inline void ParsingEngine<C>::Prolog_action(unsigned char * item, int lgth) {
     336template <class B>
     337inline void ParsingEngine<B>::Prolog_action(unsigned char * item, int lgth) {
    338338#ifdef SHOW_DTD_ACTIONS
    339339        printf("Prolog:\n");
     
    381381        // open file and fstat 
    382382        src_file = fopen ( src_filename , "rb" );
     383        if (!src_file) {
     384                fprintf(stderr, "Cannot open '%s'. Terminating the process ...\n", src_filename);
     385                exit(-1);
     386        }
    383387        if(fstat(fileno(src_file), &fileinfo)!=0) {
    384388                fprintf(stderr, "Cannot fstat '%s'. Terminating the process ...\n", src_filename);
Note: See TracChangeset for help on using the changeset viewer.