Changeset 2123
- Timestamp:
- 04/15/08 10:01:26 (1 month ago)
- Files:
-
- libswish3/trunk/src/libswish3/libswish3.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
libswish3/trunk/src/libswish3/libswish3.h
r2112 r2123 31 31 #define SWISH_LIB_VERSION "0.1.0" 32 32 #define SWISH_VERSION "3.0.0" 33 #define SWISH_BUFFER_CHUNK_SIZE 1 000034 #define SWISH_MAXSTRLEN 20 0033 #define SWISH_BUFFER_CHUNK_SIZE 16384 34 #define SWISH_MAXSTRLEN 2048 35 35 #define SWISH_MAX_HEADERS 6 36 #define SWISH_RD_BUFFER_SIZE 65 35636 #define SWISH_RD_BUFFER_SIZE 65536 // used ?? 37 37 #define SWISH_MAX_WORD_LEN 256 38 38 #define SWISH_MIN_WORD_LEN 1 39 40 39 #define SWISH_STACK_SIZE 255 /* starting size for metaname/tag stack */ 41 42 40 #define SWISH_CONTRACTIONS 1 43 41 #define SWISH_SPECIAL_ARG 1 … … 50 48 #define SWISH_HEADER_ROOT "swish" 51 49 #define SWISH_INCLUDE_FILE "IncludeConfigFile" 50 #define SWISH_CLASS_ATTRIBUTES "XMLClassAttributes" 52 51 #define SWISH_PROP "PropertyNames" 53 52 #define SWISH_META "MetaNames" … … 238 237 xmlHashTablePtr mimes; 239 238 xmlHashTablePtr index; 239 xmlHashTablePtr stringlists; 240 240 struct swish_ConfigFlags *flags; /* shortcuts for parsing */ 241 241 }; … … 244 244 { 245 245 boolean tokenize; 246 boolean context_as_meta; 246 247 xmlHashTablePtr meta_ids; 247 248 xmlHashTablePtr prop_ids; … … 355 356 xmlChar *tag; // current tag name 356 357 swish_DocInfo *docinfo; // document-specific properties 357 unsigned int context_as_meta; // index tokens under all applicable MetaNames358 358 unsigned int no_index; // toggle flag for special comments 359 359 unsigned int is_html; // shortcut flag for html parser … … 471 471 swish_StringList * swish_make_stringlist(xmlChar * line); 472 472 swish_StringList * swish_init_stringlist(); 473 void swish_free_stringlist(swish_StringList * sl); 473 void swish_free_stringlist(swish_StringList *sl); 474 void swish_merge_stringlists(swish_StringList *sl1, swish_StringList *sl2); 475 swish_StringList * swish_copy_stringlist(swish_StringList *sl); 474 476 int swish_string_to_int( char *buf ); 475 477 xmlChar * swish_int_to_string( int val );
