X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/9a30e26b7801d63e4ccfe8d36169299c09b89dff..e66c3912e1b12d8a95b818a316c70ec6b4383aef:/misc.h diff --git a/misc.h b/misc.h index aa723629..d8a43524 100644 --- a/misc.h +++ b/misc.h @@ -3,7 +3,9 @@ #include "puttymem.h" +#include /* for FILE * */ #include /* for va_list */ +#include /* for struct tm */ #ifndef FALSE #define FALSE 0 @@ -15,11 +17,15 @@ typedef struct Filename Filename; typedef struct FontSpec FontSpec; +unsigned long parse_blocksize(const char *bs); + char *dupstr(const char *s); 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; @@ -36,6 +42,8 @@ void bufchain_prefix(bufchain *ch, void **data, int *len); void bufchain_consume(bufchain *ch, int len); void bufchain_fetch(bufchain *ch, void *data, int len); +struct tm ltime(void); + /* * Debugging functions. * @@ -50,9 +58,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