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.24 2001/05/29 23:59:52 per Exp $"); + RCSID("$Id: whitefish.c,v 1.25 2001/05/30 00:33:39 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:231:    int h2 = wf_blob_hit_raw( blobs[j], k );    if( h2 > h )    {    first[j]=k;    if( h2-j == h )    hit++;    break;    }    }    - /* if( hit > 2 ) */ - /* { */ - /* int h = wf_blob_hit_raw( blobs[0], i ); */ - /* printf("%d/%d\n", hit, nblobs ); */ - /* for( j = 1; j<nblobs; j++ ) */ - /* { */ - /* for( k = 0; k<nhits[j]; k++ ) */ - /* { */ - /* int h2 = wf_blob_hit_raw( blobs[j], k ); */ - /* printf( "[%d %x] ", ((int)h2-(int)h),h2 ); */ - /* } */ - /* printf("\n"); */ - /* } */ - /* printf("\n"); */ - /* } */ -  +     if( hit == nblobs )    accum += add/mc;    }       free( nhits );       if( accum >= 0.01 )    wf_resultset_add( res, docid, (int)(accum*100) );   }