Ignore:
Timestamp:
Jan 11, 2008, 6:16:25 AM (11 years ago)
Author:
cameron
Message:

Bytespace scanning in XML declarations; various updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/charsets/ext_ascii_8.c

    r8 r15  
    1111
    1212int Ext_ASCII_8_Lexer::AdvanceBuffer(int newpos) {
    13   unsigned char * buf_ptr = xml_buf->GetBytePtr(newpos * CODE_UNIT_BYTES);
    14   int avail_bytes = xml_buf->PrepareBytes(BYTE_STREAM_SIZE);
     13  int byte_pos = newpos * CODE_UNIT_BYTES;
     14  int avail_bytes = xml_buf->PrepareBytes(byte_pos, BYTE_STREAM_SIZE);
     15  unsigned char * buf_ptr = xml_buf->BytePtr(byte_pos);
    1516  int new_blocks = min(BUFFER_BLOCKS, (avail_bytes + BLOCKSIZE - 1)/BLOCKSIZE);
    1617  int new_packs = new_blocks * 8 + 1;
Note: See TracChangeset for help on using the changeset viewer.