Changeset 2016

Show
Ignore:
Timestamp:
02/12/08 00:36:44 (3 months ago)
Author:
karpet
Message:

nits

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libswish3/trunk/src/libswish3/swish.c

    r2010 r2016  
    2121#include "libswish3.h" 
    2222 
    23  
    24 /* global stuff */ 
    25  
    26 int SWISH_DEBUG = 0; 
     23int SWISH_DEBUG = 0; /* global var */ 
    2724 
    2825void static swish_init(); 
    2926 
    3027swish_3* 
    31 swish_init_swish3( void (*handler) (swish_ParseData *), void *stash ) 
     28swish_init_swish3( void (*handler)(swish_ParseData *), void *stash ) 
    3229{ 
    3330    swish_3 *s3; 
    3431    swish_init(); 
    3532    s3              = swish_xmalloc(sizeof(swish_3)); 
    36     s3->ref_cnt++
     33    s3->ref_cnt     = 1
    3734    s3->config      = swish_init_config(); 
    3835    s3->analyzer    = swish_init_analyzer(s3->config); 
     
    4542swish_free_swish3(swish_3* s3) 
    4643{ 
     44    //SWISH_DEBUG_MSG("freeing parser"); 
    4745    swish_free_parser(s3->parser); 
     46    //SWISH_DEBUG_MSG("freeing analyzer"); 
    4847    swish_free_analyzer(s3->analyzer); 
     48    //SWISH_DEBUG_MSG("freeing config"); 
    4949    swish_free_config(s3->config); 
     50    //SWISH_DEBUG_MSG("freeing s3"); 
    5051    swish_xfree(s3); 
    5152    swish_mem_debug();