Changeset 2016
- Timestamp:
- 02/12/08 00:36:44 (3 months ago)
- Files:
-
- libswish3/trunk/src/libswish3/swish.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
libswish3/trunk/src/libswish3/swish.c
r2010 r2016 21 21 #include "libswish3.h" 22 22 23 24 /* global stuff */ 25 26 int SWISH_DEBUG = 0; 23 int SWISH_DEBUG = 0; /* global var */ 27 24 28 25 void static swish_init(); 29 26 30 27 swish_3* 31 swish_init_swish3( void (*handler) (swish_ParseData *), void *stash )28 swish_init_swish3( void (*handler)(swish_ParseData *), void *stash ) 32 29 { 33 30 swish_3 *s3; 34 31 swish_init(); 35 32 s3 = swish_xmalloc(sizeof(swish_3)); 36 s3->ref_cnt ++;33 s3->ref_cnt = 1; 37 34 s3->config = swish_init_config(); 38 35 s3->analyzer = swish_init_analyzer(s3->config); … … 45 42 swish_free_swish3(swish_3* s3) 46 43 { 44 //SWISH_DEBUG_MSG("freeing parser"); 47 45 swish_free_parser(s3->parser); 46 //SWISH_DEBUG_MSG("freeing analyzer"); 48 47 swish_free_analyzer(s3->analyzer); 48 //SWISH_DEBUG_MSG("freeing config"); 49 49 swish_free_config(s3->config); 50 //SWISH_DEBUG_MSG("freeing s3"); 50 51 swish_xfree(s3); 51 52 swish_mem_debug();
