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.21 2001/05/28 18:17:07 per Exp $"); + RCSID("$Id: whitefish.c,v 1.22 2001/05/28 20:46:59 js 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:159:       if( max_p != 0.0 && max_c != 0.0 )    {    /* Time to do the real work. :-) */    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( 1 )    { -  unsigned int min = 0x7ffffff; +  unsigned int min = 0x7fffffff;       for( i = 0; i<nblobs; i++ )    if( !blobs[i]->eof && ((unsigned int)blobs[i]->docid) < min )    min = blobs[i]->docid;    -  if( min == 0x7ffffff ) +  if( min == 0x7fffffff )    break;       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, max_c, max_p, cutoff );       for( i = 0; i<j; i++ )    wf_blob_next( tmp[i] );
pike.git/src/modules/_WhiteFish/whitefish.c:271:       if( max_c != 0.0 )    {    /* Time to do the real work. :-) */    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( 1 )    { -  unsigned int min = 0x7ffffff; +  unsigned int min = 0x7fffffff;       for( i = 0; i<nblobs; i++ )    if( blobs[i]->eof )    goto end;    else if( ((unsigned int)blobs[i]->docid) < min )    min = blobs[i]->docid;    -  if( min == 0x7ffffff ) +  if( min == 0x7fffffff )    goto end;       for( j = 0, i = 0; i < nblobs; i++ )    if( blobs[i]->docid != min )    goto next;       handle_phrase_hit( blobs, nblobs, res, min, &field_c, max_c );       next:    for( i = 0; i<nblobs; i++ )
pike.git/src/modules/_WhiteFish/whitefish.c:337:       if( max_c != 0.0 )    {    /* Time to do the real work. :-) */    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( 1 )    { -  unsigned int min = 0x7ffffff; +  unsigned int min = 0x7fffffff;       for( i = 0; i<nblobs; i++ )    if( blobs[i]->eof )    goto end;    else if( ((unsigned int)blobs[i]->docid) < min )    min = blobs[i]->docid;    -  if( min == 0x7ffffff ) +  if( min == 0x7fffffff )    goto end;       for( j = 0, i = 0; i < nblobs; i++ )    if( blobs[i]->docid != min )    goto next;       handle_hit( blobs, nblobs, res, min, &field_c,&prox_c, max_c,max_p,    cutoff );       next: