Changeset 1955 for libswish3/trunk/src
- Timestamp:
- 11/13/07 23:31:51 (1 year ago)
- Files:
-
- libswish3/trunk/src/Makefile.am (modified) (1 diff)
- libswish3/trunk/src/libswish3/config.c (modified) (4 diffs)
- libswish3/trunk/src/libswish3/libswish3.h (modified) (2 diffs)
- libswish3/trunk/src/swish_lint.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
libswish3/trunk/src/Makefile.am
r1913 r1955 9 9 # -pg is for profiling -- don't use in production 10 10 11 bin_PROGRAMS = swish_lint swish_words swish_isw 11 bin_PROGRAMS = swish_lint swish_words swish_isw utf8test 12 12 check_PROGRAMS = swish_lint 13 13 swish_lint_SOURCES = swish_lint.c $(myheaders) 14 14 swish_words_SOURCES = swish_words.c $(myheaders) 15 15 swish_isw_SOURCES = swish_isw.c 16 utf8test_SOURCES = utf8test.c $(myheaders) 16 17 17 18 TESTS = $(check_PROGRAMS) test.pl libswish3/trunk/src/libswish3/config.c
r1952 r1955 97 97 98 98 xmlHashFree(config->conf, (xmlHashDeallocator) free_config1); 99 swish_xfree(config->flags); 99 100 100 101 if (config->stash != NULL) … … 116 117 /* declare all our vars */ 117 118 swish_Config *config; 119 swish_ConfigFlags *flags; 118 120 xmlHashTablePtr c, metas, parsers, index, prop, alias, parsewords; 119 121 … … 124 126 125 127 config = swish_xmalloc(sizeof(swish_Config)); 128 flags = swish_xmalloc(sizeof(swish_ConfigFlags)); 126 129 127 130 /* init all config hashes */ … … 216 219 config->ref_cnt = 0; 217 220 config->stash = NULL; 221 config->flags = flags; 218 222 219 223 libswish3/trunk/src/libswish3/libswish3.h
r1952 r1955 148 148 typedef struct swish_StringList swish_StringList; 149 149 typedef struct swish_Config swish_Config; 150 typedef struct swish_ConfigFlags swish_ConfigFlags; 150 151 typedef struct swish_ConfigValue swish_ConfigValue; 151 152 typedef struct swish_DocInfo swish_DocInfo; … … 175 176 struct swish_Config 176 177 { 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 184 struct swish_ConfigFlags 185 { 186 187 180 188 }; 181 189 libswish3/trunk/src/swish_lint.c
r1934 r1955 91 91 swish_debug_docinfo(parse_data->docinfo); 92 92 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"); 95 95 } 96 96 } … … 137 137 138 138 //printf("optarg = %s\n", optarg); 139 config_file = swish_xstrdup( optarg );139 config_file = swish_xstrdup( (xmlChar*)optarg ); 140 140 break; 141 141
