X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/9a30e26b7801d63e4ccfe8d36169299c09b89dff..bf1e6912b12754fd79a48dfe6d77760532598dc3:/misc.h diff --git a/misc.h b/misc.h index aa723629..cd144b53 100644 --- a/misc.h +++ b/misc.h @@ -3,6 +3,7 @@ #include "puttymem.h" +#include /* for FILE * */ #include /* for va_list */ #ifndef FALSE @@ -20,6 +21,8 @@ char *dupcat(const char *s1, ...); char *dupprintf(const char *fmt, ...); char *dupvprintf(const char *fmt, va_list ap); +char *fgetline(FILE *fp); + void base64_encode_atom(unsigned char *data, int n, char *out); struct bufchain_granule; @@ -50,9 +53,9 @@ void bufchain_fetch(bufchain *ch, void *data, int len); */ #ifdef DEBUG -void dprintf(char *fmt, ...); +void debug_printf(char *fmt, ...); void debug_memdump(void *buf, int len, int L); -#define debug(x) (dprintf x) +#define debug(x) (debug_printf x) #define dmemdump(buf,len) debug_memdump (buf, len, 0); #define dmemdumpl(buf,len) debug_memdump (buf, len, 1); #else