Changeset 2158 for libswish3/trunk/src/swish_lint.c
- Timestamp:
- 09/19/08 07:16:36 (4 months ago)
- Files:
-
- libswish3/trunk/src/swish_lint.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
libswish3/trunk/src/swish_lint.c
r2149 r2158 56 56 {"debug", required_argument, 0, 'd'}, 57 57 {"help", no_argument, 0, 'h'}, 58 {"tokenize3", no_argument, 0, 't'},59 58 {"verbose", no_argument, 0, 'v'}, 60 59 {0, 0, 0, 0} … … 89 88 printf("\tSWISH_DEBUG_DOCINFO 1\n"); 90 89 printf("\tSWISH_DEBUG_TOKENIZER 2\n"); 91 printf("\tSWISH_DEBUG_ WORDLIST 4\n");90 printf("\tSWISH_DEBUG_TOKENLIST 4\n"); 92 91 printf("\tSWISH_DEBUG_PARSER 8\n"); 93 92 printf("\tSWISH_DEBUG_CONFIG 16\n"); … … 129 128 swish_debug_docinfo(parser_data->docinfo); 130 129 131 if (SWISH_DEBUG & SWISH_DEBUG_ WORDLIST130 if (SWISH_DEBUG & SWISH_DEBUG_TOKENLIST 132 131 || verbose 133 132 ) { 134 if (parser_data->s3->analyzer->tokenlist) { 135 swish_debug_token_list(parser_data->token_iterator); 136 } 137 else { 138 swish_debug_wordlist(parser_data->wordlist); 139 } 133 swish_debug_token_list(parser_data->token_iterator); 140 134 } 141 135 … … 195 189 break; 196 190 197 case 't':198 s3->analyzer->tokenlist = 1;199 break;200 201 191 case 'v': 202 192 verbose = 1;
