Changeset 128


Ignore:
Timestamp:
May 3, 2008, 8:05:57 AM (11 years ago)
Author:
cameron
Message:

Set lexer_base_pos for error reporting.

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bitlex.c

    r120 r128  
    860860
    861861
    862 void Lexer_Interface::AnalyzeBuffer(BitBlockBasis * basis, int buffer_limit_pos) {
     862void Lexer_Interface::AnalyzeBuffer(BitBlockBasis * basis, int base_pos, int buffer_limit_pos) {
    863863#ifdef DEBUG
    864864        printf("Entered AnalyzeBuffer, buffer_limit_pos = %i\n", buffer_limit_pos);
    865865#endif
    866866        x8basis = basis;
     867        lexer_base_pos = base_pos; /* for error reporting. */
    867868        int err_pos;
    868869#ifdef CODE_CLOCKING
  • trunk/src/bitlex.h

    r124 r128  
    6464        Lexer_Interface(Entity_Info * e, LexicalStreamSet *l);
    6565        ~Lexer_Interface();
    66         void AnalyzeBuffer(BitBlockBasis * x8basis, int buffer_limit_pos);
     66        void AnalyzeBuffer(BitBlockBasis * x8basis, int base_pos, int buffer_limit_pos);
    6767
    6868protected:
  • trunk/src/engine.c

    r127 r128  
    172172        lexer = Lexer<C>::LexerFactory(e, buf);
    173173        bitplex->TransposeToBitStreams(byteplex->x8data, blocks_in_buffer);
    174         lexer->AnalyzeBuffer(bitplex->x8basis, buffer_limit_pos);
     174        lexer->AnalyzeBuffer(bitplex->x8basis, buffer_base_pos, buffer_limit_pos);
    175175}
    176176
     
    198198        byteplex->PreparePseudoASCII_Stream();
    199199        bitplex->TransposeToBitStreams(byteplex->x8data, blocks_in_buffer);
    200         lexer->AnalyzeBuffer(bitplex->x8basis, buffer_limit_pos);
     200        lexer->AnalyzeBuffer(bitplex->x8basis, buffer_base_pos, buffer_limit_pos);
    201201}
    202202
Note: See TracChangeset for help on using the changeset viewer.