Changeset 2140 for libswish3/trunk/src/swish_lint.c
- Timestamp:
- 04/28/08 22:02:04 (4 months ago)
- Files:
-
- libswish3/trunk/src/swish_lint.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
libswish3/trunk/src/swish_lint.c
r2131 r2140 55 55 {"debug", required_argument, 0, 'd'}, 56 56 {"help", no_argument, 0, 'h'}, 57 {"tokenize3", no_argument, 0, 't'}, 57 58 {0, 0, 0, 0} 58 59 }; … … 92 93 printf("\tSWISH_DEBUG_NAMEDBUFFER 64\n"); 93 94 printf("Set SWISH_PARSER_WARNINGS=1 to see libxml2 errors and warnings\n"); 95 printf("Set SWISH_WARNINGS=0 to turn off libswish3 warnings\n"); 94 96 printf("stdin headers:\n"); 95 97 printf("\tContent-Length\n"); … … 125 127 swish_debug_docinfo(parser_data->docinfo); 126 128 127 if (SWISH_DEBUG & SWISH_DEBUG_WORDLIST) 129 if (SWISH_DEBUG & SWISH_DEBUG_WORDLIST) { 130 if (parser_data->s3->analyzer->tokenlist) { 131 swish_debug_token_list(parser_data->token_iterator); 132 } 133 else { 128 134 swish_debug_wordlist(parser_data->wordlist); 135 } 136 } 129 137 130 138 if (SWISH_DEBUG & SWISH_DEBUG_NAMEDBUFFER) { … … 145 153 int option_index; 146 154 int files; 147 int overwrite;148 155 char *etime; 149 156 double start_time; … … 153 160 option_index = 0; 154 161 files = 0; 155 overwrite = 0;156 162 start_time = swish_time_elapsed(); 157 163 s3 = swish_init_swish3(&handler, NULL); 158 164 159 while ((ch = getopt_long(argc, argv, "c:d:f:h ", longopts, &option_index)) != -1) {165 while ((ch = getopt_long(argc, argv, "c:d:f:ht", longopts, &option_index)) != -1) { 160 166 161 167 switch (ch) { … … 184 190 SWISH_DEBUG = swish_string_to_int(optarg); 185 191 break; 186 187 case ' o':188 overwrite= 1;189 break; 190 192 193 case 't': 194 s3->analyzer->tokenlist = 1; 195 break; 196 191 197 case '?': 192 198 case 'h':
