Changeset 2090

Show
Ignore:
Timestamp:
03/18/08 23:45:43 (2 months ago)
Author:
karpet
Message:

xapian example

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libswish3/trunk/configure.ac

    r2009 r2090  
    1010                src/Makefile 
    1111                src/libswish3/Makefile 
     12                src/xapian/Makefile 
    1213                doc/Makefile 
    1314                libswish3.pc 
  • libswish3/trunk/src/Makefile.am

    r2041 r2090  
    11SUBDIRS = libswish3 
     2 
     3# do not list xapian as a SUBDIR because it is optional to build xapian/* 
    24 
    35xml2_CFLAGS=`xml2-config --cflags` 
  • libswish3/trunk/src/libswish3/hash.c

    r2046 r2090  
    3636} 
    3737 
    38 /* PUBLIC */ 
     38 
    3939int swish_hash_add( xmlHashTablePtr hash, xmlChar *key, void * value ) 
    4040{ 
  • libswish3/trunk/src/libswish3/libswish3.h

    r2046 r2090  
    195195{ 
    196196    int             n; 
    197     xmlChar **      word; 
     197    xmlChar**       word; 
    198198}; 
    199199 
     
    303303    unsigned int           maxwordlen;         // max word length 
    304304    unsigned int           minwordlen;         // min word length 
    305     unsigned int           tokenize;           // should we parse into WordList 
     305    boolean                tokenize;           // should we parse into WordList 
    306306    swish_WordList*      (*tokenizer) (swish_Analyzer*, xmlChar*, ...); 
    307307    xmlChar*             (*stemmer)   (xmlChar*); 
  • libswish3/trunk/src/libswish3/string.c

    r2041 r2090  
    402402swish_make_stringlist(xmlChar * line) 
    403403{ 
    404     swish_StringList   *sl = swish_init_stringlist()
     404    swish_StringList    *sl
    405405    int                  cursize, maxsize; 
    406406    xmlChar             *p; 
     
    409409        return (NULL); 
    410410 
    411     p = (xmlChar*)strchr((const char*)line,'\n'); 
     411    sl = swish_init_stringlist(); 
     412    p  = (xmlChar*)strchr((const char*)line,'\n'); 
    412413    if (p != NULL) 
    413414        *p = '\0';