Changeset 139 for trunk/src/engine.c


Ignore:
Timestamp:
May 7, 2008, 10:00:53 AM (11 years ago)
Author:
lindanl
Message:

Storing name length in Name Table.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/engine.c

    r138 r139  
    637637       
    638638        int name_start = AbsPos();
    639         ScanTo(NameFollow);
    640         int lgth = AbsPos()-name_start;
     639//      ScanTo(NameFollow);
     640//      int lgth = AbsPos()-name_start;
     641
     642        char * start_elem_name = model_info->symbol_table->Get_UTF8_name(nameID);
     643        int lgth = model_info->symbol_table->Get_UTF8_lgth(nameID);
     644        Advance(lgth);
    641645        char * end_elem_name = (char *)GetCodeUnitPtr(name_start);
    642         char * start_elem_name = model_info->symbol_table->Get_UTF8_name(nameID);
    643646       
    644647        for(int i=0; i<lgth; i++) {
Note: See TracChangeset for help on using the changeset viewer.