Ignore:
Timestamp:
2006-07-28T12:06:09+12:00 (18 years ago)
Author:
kjdon
Message:

made MAXNUMERIC a global variable instead of a \#define. Its now a command line arg to mgpp_passes, and an option in Queryer, and a parameter to ParseQuery

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/indexers/mgpp/text/GSDLQueryParser.cpp

    r9616 r12321  
    2222#include "GSDLQueryParser.h"
    2323#include "GSDLQueryLex.h"
    24 
     24#include "words.h"
    2525
    2626static QueryNode *ParseExpression (UCArray::const_iterator &here,
     
    509509
    510510QueryNode *ParseQuery (const UCArray &queryStr, int defaultBoolCombine,
    511                int defaultStemMethod) {
     511               int defaultStemMethod, int maxnumeric) {
     512  if (4 < maxnumeric < 512) {
     513    MAXNUMERIC = maxnumeric;
     514  }
    512515  UCArray::const_iterator here = queryStr.begin();
    513516  UCArray::const_iterator end = queryStr.end();
Note: See TracChangeset for help on using the changeset viewer.