[htdig3-dev] cleanups in htword, bugfixes in htsearch/Display.cc


Marcel Bosc (bosc@ceic.com)
Tue, 2 Nov 1999 14:00:30 +0100


Hi,

Reporting on a few changes

In htword:
 * Cleanups for a few obsolete items after the last changes I made.
 * A few bug fixes on the code that I added (and that is not yet
used by htdig)

During the re-compile on htdig, I found 2 bugs in htsearch/Display.cc
(that generated compile warnings and errors)
 * htsearch/Display.cc (setVariables): parentheses missing around ternary
   operator : confusion in priority with <<.
 * htsearch/Display.cc (hilight): changed static char * (!!) to const string,
 static char evaluated before configuration is loaded so config had no
 effect + unnecesary conversion
  
Please mail me if I got sommething wrong on this...

Thanks for any comments or questions.

Marcel.

ChangeLog:
Tue Nov 02 13:44:57 1999 Marcel Bosc <bosc@ceic.com>

        * htsearch/Display.cc (setVariables): parentheses missing around ternary
        operator : confusion in priority with <<.

Tue Nov 02 13:33:50 1999 Marcel Bosc <bosc@ceic.com>

        * htsearch/Display.cc (hilight): changed static char * (!!) to const string,
        static char evaluated before configuration is loaded so config had no
        effect + unnecesary conversion

Tue Nov 02 11:45:49 1999 Marcel Bosc <bosc@ceic.com>

        * htword/WordKey.cc : Cleaned up obsolete code now using *InSortOrder fcts
        and WordKeyInfo.sort[]
        * htword/WordKey : Added FirstSkipField :
        find first field that must be checked for skip
        * htword/WordKey (PrefixOnly): now returns OK/NOTOK, fixed bug which
        made Walk loop over the whole db if the searchkey just had
        a the "word" field defined
        * htword/WordKey.cc (Unpack): had forgten to: SetDefinedWordSuffix
        * htword/WordKey.cc (operator >>): added check for very very long words
        (even if this should never happen)
        * htword/WordKey.cc (operators << >>): added <UNDEF> word suffix handling
        * htword/WordKey.h : Filled() did not check for WordSuffix
        * htword/WordKey.h : added WordKey::ExactEqual
        * htword/WordKey.h (IsDefinedWordSuffix): fixed bad flag check
        * htword/WordList : Removed all obsolete HTDIG_WORDLIST flags: only
        two remain : COLLECTOR and WALKER the rest is now specified by the searchKey
        removed action arg to WordList::Collect()
        * htcommon/HtWordList.cc,htmerge/words.cc : changed flags in calls to WordList::Walk
        * htword/WordList.cc : skip now deals with the SuffixUndefined case
        

    ----------------------

    Marcel Bosc

    ECILA
    100 av. du Gal Leclerc
    93500 Pantin - France
    Tel: 33 1 56 96 10 85

------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
htdig3-dev@htdig.org containing the single word "unsubscribe" in
the SUBJECT of the message.



This archive was generated by hypermail 2.0b3 on Tue Nov 02 1999 - 05:10:19 PST