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.33 2002/01/02 12:48:46 js Exp $"); + RCSID("$Id: whitefish.c,v 1.34 2003/02/18 10:35:38 mast 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 "module.h"      #include "config.h"      #include "whitefish.h"   #include "resultset.h"   #include "blob.h"   #include "blobs.h"   #include "linkfarm.h"    -  + /* 7.2 compatibility stuff. */ +  + #ifndef PIKE_MODULE_INIT   /* must be included last */   #include "module_magic.h" -  + #define PIKE_MODULE_INIT void pike_module_init(void) + #define PIKE_MODULE_EXIT void pike_module_exit(void) + #endif      struct tofree   {    Blob **blobs;    Blob **tmp;    int nblobs;    struct object *res;   };      static void free_stuff( void *_t )
pike.git/src/modules/_WhiteFish/whitefish.c:621:       res = low_do_query_or(blobs,numblobs,    field_coefficients,    proximity_coefficients,    cutoff );    pop_n_elems( args );    wf_resultset_push( res );   }       - void pike_module_init(void) + PIKE_MODULE_INIT   {    init_resultset_program();    init_blob_program();    init_blobs_program();    init_linkfarm_program();       add_function( "do_query_or", f_do_query_or,    "function(array(string),array(int),array(int),int"    ",function(string,int:string):object)",    0 );
pike.git/src/modules/_WhiteFish/whitefish.c:644:    "function(array(string),array(int),array(int),int"    ",function(string,int:string):object)",    0 );       add_function( "do_query_phrase", f_do_query_phrase,    "function(array(string),array(int)"    ",function(string,int:string):object)",    0 );   }    - void pike_module_exit(void) + PIKE_MODULE_EXIT   {    exit_resultset_program();    exit_blob_program();    exit_blobs_program();    exit_linkfarm_program();   }