#include <gvc/gvcint.h>
#include <gvc/gvcproc.h>
#include <common/logic.h>
+#include <common/utils.h>
#include <gvc/gvio.h>
static const int PAGE_ALIGN = 4095; /* align to a 4K boundary (less one), typical for Linux, Mac OS X and Windows memory allocation */
return 1;
}
+int gvputs_xml(GVJ_t *job, const char *s) {
+ const xml_flags_t flags = {.dash = 1, .nbsp = 1};
+ return xml_escape(s, flags, (int (*)(void *, const char *))gvputs, job);
+}
+
int gvputc(GVJ_t * job, int c)
{
const char cc = c;
GVIO_API int gvferror (FILE *stream);
GVIO_API int gvputc(GVJ_t * job, int c);
GVIO_API int gvputs(GVJ_t * job, const char *s);
+
+ // `gvputs`, but XML-escape the input string
+ GVIO_API int gvputs_xml(GVJ_t* job, const char *s);
+
GVIO_API int gvflush (GVJ_t * job);
GVIO_API void gvprintf(GVJ_t * job, const char *format, ...);
GVIO_API void gvprintdouble(GVJ_t * job, double num);