more
[libfirm] / ir / ir / irprintf.h
index 20280a2..a93c0bb 100644 (file)
 #ifndef _IRPRINTF_H
 #define _IRPRINTF_H
 
+#include "firm_config.h"
+
 #include <stddef.h>
 #include <stdarg.h>
 #include <stdio.h>
-#include <obstack.h>
+
+/* forward definition */
+struct obstack;
 
 /**
  * Something that can append strings and chars to something.
@@ -49,6 +53,7 @@ typedef void (ir_printf_cb_t)(const appender_t *app, void *object, size_t limit,
  * This function rudimentarily implements a kind of printf(3) for ir
  * nodes. Following conversion specifiers. No length, special or field
  * width specifiers are accepted.
+ * - @%> Print as many white spaces as given in the parameter.
  * - @%p A pointer.
  * - @%s A string.
  * - @%I An ident.
@@ -129,4 +134,8 @@ void ir_vsnprintf(char *buf, size_t len, const char *fmt, va_list args);
  */
 void ir_obst_vprintf(struct obstack *obst, const char *fmt, va_list args);
 
-#endif
+#ifdef WITH_LIBCORE
+#include <libcore/xprintf.h>
+#endif /* WITH_LIBCORE */
+
+#endif /* _IRPRINTF_H */