From b411861a7c307f2f2e520f7c9d51958fc003f0df Mon Sep 17 00:00:00 2001 From: sabetts Date: Fri, 21 Dec 2001 11:58:56 +0000 Subject: * src/sbuf.h (sbuf_printf_concat): new prototype (sbuf_printf): likewise * src/sbuf.c (sbuf_printf_concat): new function (sbuf_printf): likewise * src/ratpoison.h: include stdarg.h (xvsprintf): new prototype (xsprintf): likewise * src/main.c (xvsprintf): new function (xsprintf): likewise * src/bar.c: remove include of stdarg.h (marked_message_printf): call xvsprintf. --- src/ratpoison.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ratpoison.h') diff --git a/src/ratpoison.h b/src/ratpoison.h index f8c6c53..293e868 100644 --- a/src/ratpoison.h +++ b/src/ratpoison.h @@ -28,6 +28,7 @@ #include #include +#include #include /* Some error reporting macros */ @@ -68,5 +69,7 @@ void fatal (const char *msg); void *xmalloc (size_t size); void *xrealloc (void *ptr, size_t size); char *xstrdup (char *s); +char *xsprintf (char *fmt, ...); +char *xvsprintf (char *fmt, va_list ap); #endif /* ! _RATPOISON_H */ -- cgit v1.2.3