Commit d378100a authored by Alessandro Rubini's avatar Alessandro Rubini

headers: move pp_printf prototypes to ppsi.h

Actually, until this commit we could not use pp_printf inside
ppsi.h, in inline functions or whatever.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 2176fd65
...@@ -6,14 +6,6 @@ ...@@ -6,14 +6,6 @@
#include <ppsi/ppsi.h> #include <ppsi/ppsi.h>
/* Our printf, that is implemented internally */
extern int pp_printf(const char *fmt, ...)
__attribute__((format(printf, 1, 2)));
extern int pp_vprintf(const char *fmt, va_list args)
__attribute__((format(printf, 1, 0)));
extern int pp_vsprintf(char *buf, const char *, va_list)
__attribute__ ((format (printf, 2, 0)));
/* /*
* The diagnostic functions * The diagnostic functions
* *
......
...@@ -14,6 +14,14 @@ ...@@ -14,6 +14,14 @@
#include <ppsi/constants.h> #include <ppsi/constants.h>
#include <ppsi/jiffies.h> #include <ppsi/jiffies.h>
/* We can't include pp-printf.h when building freestading, so have it here */
extern int pp_printf(const char *fmt, ...)
__attribute__((format(printf, 1, 2)));
extern int pp_vprintf(const char *fmt, va_list args)
__attribute__((format(printf, 1, 0)));
extern int pp_vsprintf(char *buf, const char *, va_list)
__attribute__ ((format (printf, 2, 0)));
/* /*
* Runtime options. Default values can be overridden by command line. * Runtime options. Default values can be overridden by command line.
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment