pike.git / src / modules / _WhiteFish / whitefish.c

version» Context lines:

pike.git/src/modules/_WhiteFish/whitefish.c:1:   #include <math.h>      #include "global.h"   #include "stralloc.h"   #include "global.h" - RCSID("$Id: whitefish.c,v 1.11 2001/05/25 10:38:53 per Exp $"); + RCSID("$Id: whitefish.c,v 1.12 2001/05/25 12:13:07 per Exp $");   #include "pike_macros.h"   #include "interpret.h"   #include "program.h"   #include "program_id.h"   #include "object.h"   #include "operators.h"   #include "array.h"   #include "module_support.h"      #include "config.h"
pike.git/src/modules/_WhiteFish/whitefish.c:132:    for( i = 0; i<nblobs; i++ ) /* Forward to first element */    wf_blob_next( blobs[i] );          /* Main loop: Find the smallest element in the blob array. */    while( !end )    {    int min = blobs[0]->docid;       for( i = 1; i<nblobs; i++ ) -  if( blobs[i]->docid < min ) +  if( !blobs[i]->eof && blobs[i]->docid < min )    min = blobs[i]->docid;       for( j = 0, i = 0; i < nblobs; i++ )    if( blobs[i]->docid == min && !blobs[i]->eof )    tmp[j++] = blobs[i];       handle_hit( tmp, j, res, min, &field_c, &prox_c );       /* Step the 'min' blobs */    for( i = 0; i<j; i++ )