Ignore:
Timestamp:
Aug 15, 2012, 1:38:16 PM (7 years ago)
Author:
ksherdy
Message:

Updated SYMBOL_TABLE to LSST. Used explicit signed integer type for negative array indexing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/symbol_table/templates/main.template.cpp

    r2298 r2304  
    4040
    4141#define TEST_DELIMETER // ','
    42 #include "../src/symbol_table.hpp"
     42#include "../src/lsst.hpp"
    4343
    4444#ifdef BUFFER_PROFILING
     
    128128        ///////////////////////////////////////////////////////////////////////////
    129129        gid<SEGMENT_SIZE> gids;
    130     symbol_table<gid<SEGMENT_SIZE>, fast_pool_allocator<1024> > st;
     130    lsst<gid<SEGMENT_SIZE>, fast_pool_allocator<1024> > symbol_table;
    131131
    132132    is.read ((char *)src_buffer, SEGMENT_SIZE);
     
    156156
    157157    PERF_SEC_START(parser_timer);
    158     st.resolve(src_buffer, groups, starts, h0, h1, SEGMENT_BLOCKS, gids);
     158    symbol_table.resolve(src_buffer, groups, starts, h0, h1, SEGMENT_BLOCKS, gids);
    159159    PERF_SEC_END(parser_timer, SEGMENT_SIZE);
    160160
     
    182182                        while(!scanner.is_done()) {
    183183                                gid = gids.at[scanner.get_pos() + blk_offset];
    184                                 cout << string((char *)st.get_raw_data(gid), st.get_lgth(gid)) << ",";
     184                                cout << string((char *)symbol_table.get_raw_data(gid), symbol_table.get_lgth(gid)) << ",";
    185185                                scanner.scan_to_next();
    186186                        }
     
    226226    // PERF_SEC_BIND(0);
    227227    PERF_SEC_START(parser_timer);
    228     st.resolve(src_buffer, groups, starts, h0, h1, segment_blocks, gids);
     228    symbol_table.resolve(src_buffer, groups, starts, h0, h1, segment_blocks, gids);
    229229    PERF_SEC_END(parser_timer, chars_avail);
    230230
     
    244244                while(!scanner.is_done()) {
    245245                        gid = gids.at[scanner.get_pos() + blk_offset];
    246                         cout << string((char *)st.get_raw_data(gid), st.get_lgth(gid)) << ",";
     246                        cout << string((char *)symbol_table.get_raw_data(gid), symbol_table.get_lgth(gid)) << ",";
    247247                        scanner.scan_to_next();
    248248                }
     
    251251
    252252    #ifdef GID_TEST
    253                         cout << st.get_max_gid() << endl;
     253                        cout << symbol_table.get_max_gid() << endl;
    254254    #endif
    255255
Note: See TracChangeset for help on using the changeset viewer.