
/*
 * $Log: debug,v $
 * Revision 1.7  1998/08/16 13:52:38  joseph
 * Added debug_enable and debug_disable functions
 *
 * Revision 1.6  1998/07/25 17:37:01  joseph
 * Enabled Esc/Return in addurl window
 *
 * Revision 1.5  1998/07/24 17:11:10  joseph
 * Added UI for adding URLs to a fetchfile
 *
 * Revision 1.4  1998/06/14 21:24:46  joseph
 * Moved relative url resolver from rewrite / http -> misc and rewrote
 * Fixed rewrite leaving []'s all over log file.
 * Fixed misc_urltofilename barfing on url's like http://wiggle
 * Lessened processor time when fetching pages with _lots_ of links in them.
 * Make FetchError open/close at start/end of fetch like FetchLog
 * Fixed handling of ftp urls, with & without proxy set.
 * Fixed bugs in code to set fetchportion
 * URLs now moved to fetch list when fetched (whether sucessful or not)
 * Log file now says '[http]' or '[ftp]' for real link, as appropriate.
 * Recalculates fetch portion for redirected urls
 * Fixed handling of proxy for ftp (wasn't always using proxy)
 * url.c now uses 'times 2' allocator / deallocator.
 * url_handled corrected for ftp (returns true only if proxy set)
 * closes log file when fetch aborted.
 *
 * Revision 1.2  1998/05/28 17:14:34  joseph
 * Replaced with latest version (from NewsHound)
 *
 *
 */

#ifndef DEBUG_H
#define DEBUG_H

// #define DEBUG

void debug_disable( void );

#ifdef DEBUG
void debug_enable( void );
#define debug_printf(a) { debug_printf_int##a; }
int debug_printf_int(const char */*format*/, ...);
void debug_print(const char */*text*/);
#else
#define debug_printf(a) {}
#endif

#endif
