Changeset 154 for trunk/src


Ignore:
Timestamp:
May 22, 2008, 6:10:17 PM (11 years ago)
Author:
lindanl
Message:

Performance test definitions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/engine.c

    r151 r154  
    641641
    642642#if (not defined(OMISSION)) or ((OMISSION != END_TAG_MATCHING)  and (OMISSION != NAME_LOOKUP))
     643printf("WF_EndTag\n");
    643644        char * start_elem_name = model_info->symbol_table->Get_UTF8_name(nameID);
    644645        int lgth = model_info->symbol_table->Get_UTF8_lgth(nameID);
     
    706707        Advance(1);
    707708       
     709        #if (not defined(OMISSION)) or (OMISSION != NAME_LOOKUP)
    708710        int nameID = Parse_Name();
    709        
     711        #endif
     712        #if (defined(OMISSION)) and (OMISSION == NAME_LOOKUP)
     713        ScanTo(NameFollow);
     714        int nameID = 0;
     715        #endif
    710716        ElementName_action(GetCodeUnitPtr(text_or_markup_start+1), LengthFrom(text_or_markup_start+1));
    711717        /* The following test optimizes the most common case of a
     
    729735                        /* Must be an attribute-value pair or error. */
    730736                        att_name_start = AbsPos();
    731                         int att_nameID = Parse_Name();
    732                         att_name_end = AbsPos();
     737                        #if (not defined(OMISSION)) or (OMISSION != NAME_LOOKUP)
     738                        int att_nameID = Parse_Name();
     739                        #endif
     740                        #if (defined(OMISSION)) and (OMISSION == NAME_LOOKUP)
     741                        ScanTo(NameFollow);
     742                        int att_nameID = 0;
     743                        #endif
     744            att_name_end = AbsPos();
    733745                #if (not defined(OMISSION)) or ((OMISSION != ATTRIBUTE_UNIQUENESS) and (OMISSION != NAME_LOOKUP))
    734746                        int attID = model_info->getOrInsertGlobalAttName(att_nameID);
     
    21622174        int name_pos = AbsPos();
    21632175        ScanTo(NameFollow);
    2164         #if (not defined(OMISSION)) or (OMISSION != NAME_LOOKUP)
    21652176        int lgth = AbsPos()-name_pos;
    21662177
     
    21702181        else
    21712182                return model_info->symbol_table->UTF8_Lookup_or_Insert_XML10_Name((char *)GetCodeUnitPtr(name_pos),lgth);
    2172         #endif
    21732183}
    21742184
Note: See TracChangeset for help on using the changeset viewer.