Ignore:
Timestamp:
2012-02-28T13:59:00+13:00 (12 years ago)
Author:
kjdon
Message:

merged 64_bit_Greenstone branch into trunk, rev 25139

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/mgpp_invf_dump.cpp

    r19822 r25147  
    5252               invf_file_header &ifh,
    5353               word_dict_el &wordEl,
    54                unsigned long wordStart,
     54               mg_u_long wordStart,
    5555               bool printFrags) {
    5656  cout << wordEl.frag_occur << " \"" << wordEl.el << "\"\n";
     
    6262    stdio_bitio_buffer buffer(invfFile);
    6363   
    64     unsigned long B = BIO_Bblock_Init (idh.num_frags, wordEl.frag_occur);
    65     unsigned long fragNum = 0;
    66     unsigned long i;
     64    mg_u_long B = BIO_Bblock_Init (idh.num_frags, wordEl.frag_occur);
     65    mg_u_long fragNum = 0;
     66    mg_u_long i;
    6767    for (i=0; i<wordEl.frag_occur; ++i) {
    68       unsigned long delta = buffer.bblock_decode (B, NULL);
     68      mg_u_long delta = buffer.bblock_decode (B, NULL);
    6969      fragNum += delta;
    7070      cout << " " << fragNum;
    7171     
    7272      if (!ifh.word_level_index ) {
    73     unsigned long count = buffer.gamma_decode (NULL);
     73    mg_u_long count = buffer.gamma_decode (NULL);
    7474    cout << "(" << count << ")";
    7575      } else {
     
    8888              invf_file_header &/*ifh*/,
    8989              dict_el &tagEl,
    90               unsigned long tagStart,
     90              mg_u_long tagStart,
    9191              bool printFrags) {
    9292  cout << tagEl.frag_occur << " \"<" << tagEl.el << ">\"\n";
     
    9898    stdio_bitio_buffer buffer(invfFile);
    9999   
    100     unsigned long pTag = tagEl.frag_occur*2;
    101     unsigned long B = BIO_Bblock_Init (idh.num_frags+pTag, pTag);
    102     unsigned long fragNum = 0;
    103     unsigned long i;
     100    mg_u_long pTag = tagEl.frag_occur*2;
     101    mg_u_long B = BIO_Bblock_Init (idh.num_frags+pTag, pTag);
     102    mg_u_long fragNum = 0;
     103    mg_u_long i;
    104104    for (i=0; i<tagEl.frag_occur; ++i) {
    105       unsigned long delta = buffer.bblock_decode (B, NULL)-1;
     105      mg_u_long delta = buffer.bblock_decode (B, NULL)-1;
    106106      fragNum += delta;
    107107      cout << " " << fragNum;
     
    169169  // process all the words
    170170  if (printWords) {
    171     unsigned long wordNum;
    172     unsigned long wordStart;
     171    mg_u_long wordNum;
     172    mg_u_long wordStart;
    173173    word_dict_el wordEl;
    174174    wordEl.SetNumLevels (idh.num_levels);
     
    182182  // process all the tags
    183183  if (printTags) {
    184     unsigned long tagNum;
    185     unsigned long tagStart;
     184    mg_u_long tagNum;
     185    mg_u_long tagStart;
    186186    dict_el tagEl;
    187187    for (tagNum=0; tagNum<idh.tag_dict_size; ++tagNum) {
     
    199199
    200200int main (int argc, char **argv) {
    201   char *dir_name, *filename = "";
     201  char *dir_name, *filename = (char*)"";
    202202  int ch;
    203203  msg_prefix = argv[0];
Note: See TracChangeset for help on using the changeset viewer.