From 14fb44b17123b27e562379f51b75ee889982688d Mon Sep 17 00:00:00 2001 From: James Maki Date: Fri, 23 Apr 2010 11:58:20 -0500 Subject: initial commit --- src/xprintf.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/xprintf.h (limited to 'src/xprintf.h') diff --git a/src/xprintf.h b/src/xprintf.h new file mode 100644 index 0000000..94342c6 --- /dev/null +++ b/src/xprintf.h @@ -0,0 +1,26 @@ +#ifndef __XPRINTF_H +#define __XPRINTF_H + +#include "config.h" +#include + +#define XPRINTF_INSPECT_SPEC 'J' +#define XPRINTF_BIN_SPEC 'K' + +#if HAVE_REGISTER_PRINTF_SPECIFIER +int print_buffer_inspect_arginfo(const struct printf_info *info, size_t n, int *argtypes, int *size); +#else +int print_buffer_inspect_arginfo(const struct printf_info *info, size_t n, int *argtypes); +#endif +int print_buffer_inspect(FILE *stream, const struct printf_info *info, const void *const *args); + +#if HAVE_REGISTER_PRINTF_SPECIFIER +int print_buffer_bin_arginfo(const struct printf_info *info, size_t n, int *argtypes, int *size); +#else +int print_buffer_bin_arginfo(const struct printf_info *info, size_t n, int *argtypes); +#endif +int print_buffer_bin(FILE *stream, const struct printf_info *info, const void *const *args); + +int xprintf_init(void); + +#endif /* ~__XPRINTF_H */ -- cgit v1.2.3