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.32 2001/07/31 15:27:18 js Exp $"); + RCSID("$Id: whitefish.c,v 1.33 2002/01/02 12:48:46 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:32:    struct object *res;   };      static void free_stuff( void *_t )   {    struct tofree *t= (struct tofree *)_t;    int i;    if( t->res ) free_object( t->res );    for( i = 0; i<t->nblobs; i++ )    wf_blob_free( t->blobs[i] ); +  free(t->blobs);    free( t->tmp );    free( t );   }      #define OFFSET(X) \    (X.type == HIT_BODY?X.u.body.pos:X.u.field.pos)      #define DOFF(X) _distance_f(X)   #define MOFF(X) (X.type==HIT_BODY?0:X.u.field.type+1)   
pike.git/src/modules/_WhiteFish/whitefish.c:522:    for( i = 0; i<8; i++ )    proximity_coefficients[i] = (double)_prox->item[i].u.integer;       for( i = 0; i<65; i++ )    field_coefficients[i] = (double)_field->item[i].u.integer;       res = low_do_query_and(blobs,numblobs,    field_coefficients,    proximity_coefficients,    cutoff ); +     pop_n_elems( args );    wf_resultset_push( res );   }      static void f_do_query_or( INT32 args )   /*! @decl ResultSet do_query_or( array(string) words, @    *! array(int) field_coefficients, @    *! array(int) proximity_coefficients, @    *! function(int:string) blobfeeder)    *! @[words]