Changeset 135 for trunk/src/xmlmodel.c


Ignore:
Timestamp:
May 6, 2008, 11:53:48 AM (11 years ago)
Author:
lindanl
Message:

SymbolTable? class and end tag checking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/xmlmodel.c

    r126 r135  
    1111
    1212void Model_Info::SimpleEntity(char * entity_Name, char * replText) {
    13                 int entity_NameID = GlobalNameTable[entity_Name];
    14                 if (entity_NameID == 0) {
    15                         GlobalNameTable[entity_Name] = ++(globalNameCount);
    16                         entity_NameID = globalNameCount;
    17                 }
     13               
     14                int entity_NameID = symbol_table->UTF8_Lookup_or_Insert_XML10_Name(entity_Name, strlen(entity_Name));
    1815                int entityID = GlobalGEntityTable[entity_NameID];
    1916                if(entityID==0){       
     
    3734        globalElementCount = 0;
    3835        globalAttributeCount = 0;
    39         globalNameCount = 0;
     36        symbol_table = new Symbol_Table();
    4037        SimpleEntity("lt", "<");
    4138        SimpleEntity("gt", ">");
Note: See TracChangeset for help on using the changeset viewer.