Changeset 7399 for trunk/indexers/mg


Ignore:
Timestamp:
2004-05-25T09:10:52+12:00 (20 years ago)
Author:
kjdon
Message:

need to close the file we created in done_text_1 otherwise java holds a lock on it when we build using jni

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/indexers/mg/src/text/text.pass1.c

    r3745 r7399  
    9898{
    9999  int which;
    100 
    101100  if (!(Pool = Xmalloc (POOL_SIZE)))
    102101    {
     
    118117      dd->HashSize = INITIAL_HASH_SIZE;
    119118      dd->HashUsed = 0;
    120 
    121119      if (!(dd->HashTable = Xmalloc (sizeof (hash_rec) * dd->HashSize)))
    122120    {
     
    161159  int which;
    162160  u_char *end = s_in + l_in - 1;
    163 
    164161  if (l_in > LongestDoc)
    165162    LongestDoc = l_in;
     
    225222        break;
    226223          }
    227 
    228224        /* Compare the words */
    229225        s1 = Word;
     
    248244      }
    249245
    250 
     246 
    251247      if (dd->HashUsed >= dd->HashSize >> 1)
    252248    {
     
    405401  WriteHashTable (fp, &DictData[1]);
    406402  msg_prefix = temp_str;
     403  fclose(fp);
    407404  return COMPALLOK;
    408405}               /* done_encode */
Note: See TracChangeset for help on using the changeset viewer.