[htdig-dev] Re: Changes to htsearch.cc version 1.60, 2002/12/30 12:42:59

2003-06-05 Thread Lachlan Andrew
Greetings Neal,

These conditions were subsumed into the earlier tests:
   if (boolean  mystrcasecmp(word.get(), and) == 0)
became
if (boolean  (mystrcasecmp(word.get(), +) == 0
  || mystrcasecmp(word.get(), boolean_keywords[AND]) == 0))
and similarly for -.

To my mind this is clearer, and it also should produce (marginally) 
smaller code.

I hope the porting is going well.  Is it going to change the main Unix 
source, be a patch relative to the main source, or be a stand-alone 
port?

Cheers,
Lachlan

On Thu, 5 Jun 2003 07:54, Neal Richter wrote:

 On 2002/12/30 12:42:59
 These lines were removed new line 550:

 else if (boolean  mystrcasecmp(word.get(), +) == 0)
 tempWords.Add(new WeightWord(, -1.0));
 else if (boolean  mystrcasecmp(word.get(), -) == 0)
 tempWords.Add(new WeightWord(!, -1.0));

 Any explaination on this particular change?  This looks to
 implement + (required word) and - (exclude word).



---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
htdig-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/htdig-dev


[htdig-dev] Changes to htsearch.cc version 1.60, 2002/12/30 12:42:59

2003-06-05 Thread Neal Richter
Lachlan,

I'm working on the WIN32 port and reveiwing changes since my last port..

On 2002/12/30 12:42:59 you were hacking on with a commit message of:

Forward-port of many 3.1.6 features

These lines were removed new line 550:

else if (boolean  mystrcasecmp(word.get(), +) == 0)
tempWords.Add(new WeightWord(, -1.0));
else if (boolean  mystrcasecmp(word.get(), -) == 0)
tempWords.Add(new WeightWord(!, -1.0));

Any explaination on this particular change?  This looks to implement
+ (required word) and - (exclude word).

Thanks!


Neal Richter
Knowledgebase Developer
RightNow Technologies, Inc.
Customer Service for Every Web Site
Office: 406-522-1485





---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
htdig-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/htdig-dev