pike.git / src / modules / _WhiteFish / whitefish.c

version» Context lines:

pike.git/src/modules/_WhiteFish/whitefish.c:1: + /* -*- c -*- + || This file is part of Pike. For copyright information see COPYRIGHT. + || Pike is distributed under GPL, LGPL and MPL. See the file COPYING + || for more information. + */ +    #include <math.h>    - #include "global.h" - #include "stralloc.h" - #include "global.h" + #include "module.h"   #include "pike_macros.h"   #include "interpret.h" - #include "program.h" - #include "object.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"      struct tofree
pike.git/src/modules/_WhiteFish/whitefish.c:403:    double proximity_coefficients[8];    double field_coefficients[65];    int numblobs, i;    Blob **blobs;       struct svalue *cb;    struct object *res;    struct array *_words, *_field;       /* 1: Get all arguments. */ -  get_all_args( "do_query_phrase", args, "%a%a%*", +  get_all_args( NULL, args, "%a%a%*",    &_words, &_field, &cb);       if( _field->size != 65 )    Pike_error("Illegal size of field_coefficients array (expected 65)\n" );       numblobs = _words->size;    if( !numblobs )    {    struct object *o = wf_resultset_new( );    pop_n_elems( args );
pike.git/src/modules/_WhiteFish/whitefish.c:495:    double proximity_coefficients[8];    double field_coefficients[65];    int numblobs, i, cutoff;    Blob **blobs;       struct svalue *cb;    struct object *res;    struct array *_words, *_field, *_prox;       /* 1: Get all arguments. */ -  get_all_args( "do_query_and", args, "%a%a%a%d%*", +  get_all_args( NULL, args, "%a%a%a%d%*",    &_words, &_field, &_prox, &cutoff, &cb);       if( _field->size != 65 )    Pike_error("Illegal size of field_coefficients array (expected 65)\n" );    if( _prox->size != 8 )    Pike_error("Illegal size of proximity_coefficients array (expected 8)\n" );       numblobs = _words->size;    if( !numblobs )    {
pike.git/src/modules/_WhiteFish/whitefish.c:596:    double proximity_coefficients[8];    double field_coefficients[65];    int numblobs, i, cutoff;    Blob **blobs;       struct svalue *cb;    struct object *res;    struct array *_words, *_field, *_prox;       /* 1: Get all arguments. */ -  get_all_args( "do_query_or", args, "%a%a%a%d%*", +  get_all_args( NULL, args, "%a%a%a%d%*",    &_words, &_field, &_prox, &cutoff, &cb);       if( _field->size != 65 )    Pike_error("Illegal size of field_coefficients array (expected 65)\n" );    if( _prox->size != 8 )    Pike_error("Illegal size of proximity_coefficients array (expected 8)\n" );       numblobs = _words->size;    if( !numblobs )    {