Show
Ignore:
Timestamp:
11/13/07 23:31:51 (1 year ago)
Author:
karpet
Message:

doc tweek; come config work

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libswish3/trunk/src/Makefile.am

    r1913 r1955  
    99# -pg is for profiling -- don't use in production 
    1010 
    11 bin_PROGRAMS = swish_lint swish_words swish_isw 
     11bin_PROGRAMS = swish_lint swish_words swish_isw utf8test 
    1212check_PROGRAMS = swish_lint 
    1313swish_lint_SOURCES = swish_lint.c $(myheaders) 
    1414swish_words_SOURCES = swish_words.c $(myheaders) 
    1515swish_isw_SOURCES = swish_isw.c  
     16utf8test_SOURCES = utf8test.c $(myheaders) 
    1617 
    1718TESTS = $(check_PROGRAMS) test.pl 
  • libswish3/trunk/src/libswish3/config.c

    r1952 r1955  
    9797 
    9898    xmlHashFree(config->conf, (xmlHashDeallocator) free_config1); 
     99    swish_xfree(config->flags); 
    99100 
    100101    if (config->stash != NULL) 
     
    116117    /* declare all our vars */ 
    117118    swish_Config  *config; 
     119    swish_ConfigFlags *flags; 
    118120    xmlHashTablePtr c, metas, parsers, index, prop, alias, parsewords; 
    119121 
     
    124126 
    125127    config = swish_xmalloc(sizeof(swish_Config)); 
     128    flags  = swish_xmalloc(sizeof(swish_ConfigFlags)); 
    126129 
    127130    /* init all config hashes */ 
     
    216219    config->ref_cnt = 0; 
    217220    config->stash = NULL; 
     221    config->flags = flags; 
    218222 
    219223 
  • libswish3/trunk/src/libswish3/libswish3.h

    r1952 r1955  
    148148typedef struct swish_StringList         swish_StringList; 
    149149typedef struct swish_Config             swish_Config; 
     150typedef struct swish_ConfigFlags        swish_ConfigFlags; 
    150151typedef struct swish_ConfigValue        swish_ConfigValue; 
    151152typedef struct swish_DocInfo            swish_DocInfo; 
     
    175176struct swish_Config 
    176177{ 
    177     int             ref_cnt;    /* for scripting languages */ 
    178     void           *stash;      /* for scripting languages */ 
    179     xmlHashTablePtr conf;       /* the meat */ 
     178    int                          ref_cnt;    /* for scripting languages */ 
     179    void                        *stash;      /* for scripting languages */ 
     180    xmlHashTablePtr              conf;       /* the meat */ 
     181    struct swish_ConfigFlags    *flags;      /* shortcuts for parsing */ 
     182}; 
     183 
     184struct swish_ConfigFlags 
     185
     186     
     187     
    180188}; 
    181189 
  • libswish3/trunk/src/swish_lint.c

    r1934 r1955  
    9191        swish_debug_docinfo(parse_data->docinfo); 
    9292        swish_debug_wordlist(parse_data->wordlist); 
    93         swish_debug_nb(parse_data->properties, "Property"); 
    94         swish_debug_nb(parse_data->metanames, "MetaName"); 
     93        swish_debug_nb(parse_data->properties, (xmlChar*)"Property"); 
     94        swish_debug_nb(parse_data->metanames, (xmlChar*)"MetaName"); 
    9595    } 
    9696} 
     
    137137 
    138138            //printf("optarg = %s\n", optarg); 
    139             config_file = swish_xstrdup( optarg ); 
     139            config_file = swish_xstrdup( (xmlChar*)optarg ); 
    140140            break; 
    141141