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.26 2001/05/31 00:19:26 js Exp $"); + RCSID("$Id: whitefish.c,v 1.27 2001/05/31 00:26:33 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:121:       /* Limit */    if( accum > 32000.0 )    accum = 32000.0;    accum_i = (int)(accum *100 );    if( accum_i > 0 )    wf_resultset_add( res, docid, accum_i );    }   }    - static struct object *low_do_query_merge( Blob **blobs, + static struct object *low_do_query_or( Blob **blobs,    int nblobs,    double field_c[66],    double prox_c[8],    int cutoff)   {    struct object *res = wf_resultset_new();    struct tofree *__f = malloc( sizeof( struct tofree ) );    double max_c=0.0, max_p=0.0;    ONERROR e;    int i, j;
pike.git/src/modules/_WhiteFish/whitefish.c:612:       for( i = 0; i<numblobs; i++ )    blobs[i] = wf_blob_new( cb, _words->item[i].u.integer );       for( i = 0; i<8; i++ )    proximity_coefficients[i] = (double)_prox->item[i].u.integer;       for( i = 0; i<66; i++ )    field_coefficients[i] = (double)_field->item[i].u.integer;    -  res = low_do_query_merge(blobs,numblobs, +  res = low_do_query_or(blobs,numblobs,    field_coefficients,    proximity_coefficients,    cutoff );    pop_n_elems( args );    push_object( res );   }         void pike_module_init(void)   {