Show
Ignore:
Timestamp:
09/26/08 23:59:57 (3 months ago)
Author:
karpet
Message:

some versions of html parser were passing through extra whitespace.
seems to be a specific libxml2 issue. in any case, added a new
whitespace check in both add to buf methods and perl bindings
(the latter where t/20-metanames.t was failing due to extra whitespace)

Files:

Legend:

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

    r2141 r2178  
    155155    if (SWISH_DEBUG & SWISH_DEBUG_MEMORY) { 
    156156        SWISH_DEBUG_MSG("freeing config"); 
    157         SWISH_DEBUG_MSG("ptr addr: 0x%x  %d", (int)config, (int)config); 
     157        SWISH_DEBUG_MSG("ptr addr: 0x%x  %d", (long int)config, (long int)config); 
    158158        swish_mem_debug(); 
    159159    } 
     
    234234 
    235235    if (SWISH_DEBUG & SWISH_DEBUG_MEMORY) { 
    236         SWISH_DEBUG_MSG("config ptr 0x%x", (int)config); 
     236        SWISH_DEBUG_MSG("config ptr 0x%x", (long int)config); 
    237237    } 
    238238 
     
    412412{ 
    413413    SWISH_DEBUG_MSG("config->ref_cnt = %d", config->ref_cnt); 
    414     SWISH_DEBUG_MSG("config->stash address = 0x%x  %d", (int)config->stash, 
    415                     (int)config->stash); 
    416     SWISH_DEBUG_MSG("ptr addr: 0x%x  %d", (int)config, (int)config); 
     414    SWISH_DEBUG_MSG("config->stash address = 0x%x  %d", (long int)config->stash, 
     415                    (long int)config->stash); 
     416    SWISH_DEBUG_MSG("ptr addr: 0x%x  %d", (long int)config, (long int)config); 
    417417 
    418418    xmlHashScan(config->misc, (xmlHashScanner)config_printer, "misc conf");