projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rocco Rutte:
[apps/madmutt.git]
/
hcache.c
diff --git
a/hcache.c
b/hcache.c
index
967a7c3
..
c34efd9
100644
(file)
--- a/
hcache.c
+++ b/
hcache.c
@@
-18,11
+18,17
@@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*/
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*/
-#include <stdint.h>
+# if HAVE_INTTYPES_H
+# include <inttypes.h>
+# else
+# if HAVE_STDINT_H
+# include <stdint.h>
+# endif
+# endif
#if HAVE_CONFIG_H
#include "config.h"
#if HAVE_CONFIG_H
#include "config.h"
-#endif /* HAVE_CONFIG_H */
+#endif
/* HAVE_CONFIG_H */
#ifdef USE_HCACHE
#ifdef USE_HCACHE
@@
-130,6
+136,7
@@
dump_char(char *c, unsigned char *d, int *off)
return d;
}
return d;
}
+#if 0
static unsigned char *
dump_char_size(char *c, unsigned char *d, int *off, ssize_t size)
{
static unsigned char *
dump_char_size(char *c, unsigned char *d, int *off, ssize_t size)
{
@@
-146,6
+153,7
@@
dump_char_size(char *c, unsigned char *d, int *off, ssize_t size)
return d;
}
return d;
}
+#endif
static void
restore_char(char **c, const unsigned char *d, int *off)
static void
restore_char(char **c, const unsigned char *d, int *off)
@@
-245,6
+253,7
@@
restore_list(LIST **l, const unsigned char *d, int *off)
*l = NULL;
}
*l = NULL;
}
+#if 0
static unsigned char *
dump_buffer(BUFFER *b, unsigned char *d, int *off)
{
static unsigned char *
dump_buffer(BUFFER *b, unsigned char *d, int *off)
{
@@
-281,6
+290,7
@@
restore_buffer(BUFFER **b, const unsigned char *d, int *off)
restore_int(& (*b)->dsize, d, off);
restore_int((unsigned int *) & (*b)->destroy, d, off);
}
restore_int(& (*b)->dsize, d, off);
restore_int((unsigned int *) & (*b)->destroy, d, off);
}
+#endif
static unsigned char *
dump_parameter(PARAMETER *p, unsigned char *d, int *off)
static unsigned char *
dump_parameter(PARAMETER *p, unsigned char *d, int *off)