Changeset 44 for trunk/src


Ignore:
Timestamp:
Feb 11, 2008, 8:04:20 PM (11 years ago)
Author:
cameron
Message:

sentinel/minLexicalItem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/engine.c

    r42 r44  
    6161}
    6262
     63unsigned char * Parser_Interface::GetCodeUnitPtr(int pos) {
     64        return &((unsigned char *) (xml_buf->ByteBuffer))[pos * (int) xml_buf->code_unit_size];
     65}
     66
    6367
    6468
     
    8084        BitBlock sentinel_value = sisd_sfli(simd_const_1(1), 8*sizeof(unsigned long));
    8185#endif
    82         for (int j = MarkupStart; j < LexicalItemCount; j++) {
     86        for (int j = minLexicalItem; j < LexicalItemCount; j++) {
    8387                buf->item_stream[j][BUFFER_BLOCKS] = sentinel_value;
    8488        }
     
    181185#endif
    182186      lexer->AdvanceBuffer(buffer_base_pos, buffer_rel_pos, buffer_limit_pos);
    183         x8data = &xml_buf->x8data[buffer_base_pos/PACKSIZE];
     187      x8data = &xml_buf->x8data[buffer_base_pos/PACKSIZE];
    184188      buffer_rel_pos = bitstream_scan(buf->item_stream[item], buffer_rel_pos);
    185189    }
Note: See TracChangeset for help on using the changeset viewer.