Changeset 7399
- Timestamp:
- 2004-05-25T09:10:52+12:00 (20 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/packages/mg/src/text/text.pass1.c
r3745 r7399 98 98 { 99 99 int which; 100 101 100 if (!(Pool = Xmalloc (POOL_SIZE))) 102 101 { … … 118 117 dd->HashSize = INITIAL_HASH_SIZE; 119 118 dd->HashUsed = 0; 120 121 119 if (!(dd->HashTable = Xmalloc (sizeof (hash_rec) * dd->HashSize))) 122 120 { … … 161 159 int which; 162 160 u_char *end = s_in + l_in - 1; 163 164 161 if (l_in > LongestDoc) 165 162 LongestDoc = l_in; … … 225 222 break; 226 223 } 227 228 224 /* Compare the words */ 229 225 s1 = Word; … … 248 244 } 249 245 250 246 251 247 if (dd->HashUsed >= dd->HashSize >> 1) 252 248 { … … 405 401 WriteHashTable (fp, &DictData[1]); 406 402 msg_prefix = temp_str; 403 fclose(fp); 407 404 return COMPALLOK; 408 405 } /* done_encode */ -
trunk/gsdl3/src/packages/mg/src/text/text.pass1.c
r3745 r7399 98 98 { 99 99 int which; 100 101 100 if (!(Pool = Xmalloc (POOL_SIZE))) 102 101 { … … 118 117 dd->HashSize = INITIAL_HASH_SIZE; 119 118 dd->HashUsed = 0; 120 121 119 if (!(dd->HashTable = Xmalloc (sizeof (hash_rec) * dd->HashSize))) 122 120 { … … 161 159 int which; 162 160 u_char *end = s_in + l_in - 1; 163 164 161 if (l_in > LongestDoc) 165 162 LongestDoc = l_in; … … 225 222 break; 226 223 } 227 228 224 /* Compare the words */ 229 225 s1 = Word; … … 248 244 } 249 245 250 246 251 247 if (dd->HashUsed >= dd->HashSize >> 1) 252 248 { … … 405 401 WriteHashTable (fp, &DictData[1]); 406 402 msg_prefix = temp_str; 403 fclose(fp); 407 404 return COMPALLOK; 408 405 } /* done_encode */ -
trunk/indexers/mg/src/text/text.pass1.c
r3745 r7399 98 98 { 99 99 int which; 100 101 100 if (!(Pool = Xmalloc (POOL_SIZE))) 102 101 { … … 118 117 dd->HashSize = INITIAL_HASH_SIZE; 119 118 dd->HashUsed = 0; 120 121 119 if (!(dd->HashTable = Xmalloc (sizeof (hash_rec) * dd->HashSize))) 122 120 { … … 161 159 int which; 162 160 u_char *end = s_in + l_in - 1; 163 164 161 if (l_in > LongestDoc) 165 162 LongestDoc = l_in; … … 225 222 break; 226 223 } 227 228 224 /* Compare the words */ 229 225 s1 = Word; … … 248 244 } 249 245 250 246 251 247 if (dd->HashUsed >= dd->HashSize >> 1) 252 248 { … … 405 401 WriteHashTable (fp, &DictData[1]); 406 402 msg_prefix = temp_str; 403 fclose(fp); 407 404 return COMPALLOK; 408 405 } /* done_encode */
Note:
See TracChangeset
for help on using the changeset viewer.