Changeset 23508 for main/branches/64_bit_Greenstone/greenstone2/common-src/indexers/mg/jni/MGWrapperImpl.c
- Timestamp:
- 2010-12-17T14:04:10+13:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/branches/64_bit_Greenstone/greenstone2/common-src/indexers/mg/jni/MGWrapperImpl.c
r16583 r23508 168 168 169 169 /* Save the object on the Java side */ 170 (*j_env)->SetIntField(j_env, j_obj, FID_mg_data, ( long) data);170 (*j_env)->SetIntField(j_env, j_obj, FID_mg_data, (mg_s_long) data); 171 171 172 172 /* Initialise MG environment variables */ … … 285 285 query_data* qd; 286 286 287 u_long pos, len;287 mg_u_long pos, len; 288 288 u_char* c_buffer = NULL; 289 289 u_char* uc_buffer = NULL; … … 322 322 323 323 /* Get the document position and length in the text file */ 324 printf("Fetching document number % ld...\n", (unsignedlong) j_docnum);325 FetchDocStart(qd, ( unsignedlong) j_docnum, &pos, &len);326 printf("Fetched document start. Pos: % ld, Len: %ld\n", pos, len);324 printf("Fetching document number %d...\n", (mg_u_long) j_docnum); 325 FetchDocStart(qd, (mg_u_long) j_docnum, &pos, &len); 326 printf("Fetched document start. Pos: %d, Len: %d\n", pos, len); 327 327 328 328 /* Allocate memory for the document text (from mg/src/text/mgquery.c:RawDocOutput()) */ … … 730 730 731 731 /* Print the data to a character array */ 732 sprintf(result, "Query params:\nindex\t\t%s\ncasefold\t%d\nstem\t\t%d\nquery type\t%s\nmax docs\t% ld\n",732 sprintf(result, "Query params:\nindex\t\t%s\ncasefold\t%d\nstem\t\t%d\nquery type\t%s\nmax docs\t%d\n", 733 733 (data->queryInfo->index == NULL ? "<none loaded>" : data->queryInfo->index), 734 734 (data->defaultStemMethod & 1),
Note:
See TracChangeset
for help on using the changeset viewer.