Changeset 10335
- Timestamp:
- 2005-07-28T10:19:14+12:00 (19 years ago)
- Location:
- trunk/gsdl/src/phind/generate
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/phind/generate/phrase.cpp
r9614 r10335 230 230 return -1; 231 231 } else { 232 ++*p;233 ++*words;232 *p++; 233 *words++; 234 234 } 235 235 } … … 250 250 return 1; 251 251 } else { 252 --*p;253 --*words;252 *p--; 253 *words--; 254 254 } 255 255 } -
trunk/gsdl/src/phind/generate/suffix.cpp
r9632 r10335 187 187 // If the two elements are the same, examine the next one 188 188 while (*pa == *pb) { 189 ++*pa;190 ++*pb;189 *pa++; 190 *pb++; 191 191 } 192 192 … … 217 217 // If the two elements are the same, examine the next one 218 218 while (*pa == *pb) { 219 --*pa;220 --*pb;219 *pa--; 220 *pb--; 221 221 } 222 222 … … 756 756 // Read the statistics file 757 757 readStatistics(); 758 759 758 // Read the numbers file 760 759 readNumbers(); 761 760 762 761 if (numberOfDocuments == 0) { 763 762 cerr << "There are no documents in this collection!" << endl; … … 777 776 cerr << "Suffix: not enough memory to hold " << inputLength << " symbols." << endl; 778 777 exit(2); 779 } 778 } 780 779 allocateSuffixCheck(contentLength); 781 782 780 // Initialise prefix and suffix arrays, only use the needed suffixes 783 781 for (cellcount j = 0, here = 0; j < inputLength; ++j) { … … 790 788 qsort(suffixArray, contentLength, sizeof(symbol *), suffixCompare); 791 789 qsort(prefixArray, contentLength, sizeof(symbol *), prefixCompare); 792 793 790 // Create the document arrays 794 791 if (verbosity > 1) {
Note:
See TracChangeset
for help on using the changeset viewer.