Changeset 26135

Show
Ignore:
Timestamp:
28.08.2012 15:32:46 (7 years ago)
Author:
ak19
Message:

Changing unsigned long to mg_u_long in Phind's suffix.exe program. This did not help to get suffix to work on 64 bit linux, but the changes have not broken it on Windows either (where it already worked). Therefore, since the unsigned long to mg_u_long changes bring this part of the code up to speed with the same changes made elsewhere in the C code, am still committing this.

Location:
main/trunk/greenstone2/build-src/src/phind/generate
Files:
1 added
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/build-src/src/phind/generate/suffix.cpp

    r10335 r26135  
    5757#include "phrase.h" 
    5858#include "check.h" 
     59#include "mglong.h" 
    5960 
    6061// Global variables declared in suffix.h 
     
    846847 
    847848  // Count the number of phrases output 
    848   unsigned long int phraseCounter = 0; 
     849  mg_u_long phraseCounter = 0; //unsigned long int phraseCounter = 0; 
    849850 
    850851  // Set up the phrase expansion memory. 
     
    863864  ofstream outPhrase; 
    864865  char     outPhraseName[FILENAME_MAX]; 
    865   unsigned long int outPhraseCounter = 0; 
     866  mg_u_long outPhraseCounter = 0; // unsigned long int outPhraseCounter = 0; 
    866867 
    867868  // On the first pass, simply work through the vocabulary