From: Matthew Fernandez Date: Sat, 4 Jun 2022 15:24:29 +0000 (-0700) Subject: Revert "common: inline and remove 'agputs'" X-Git-Tag: 5.0.0~30^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b6137f0aedac501dd9d161217c66432478e668c;p=graphviz Revert "common: inline and remove 'agputs'" This reverts commit f42fcb6759c1614fc07bae546a9da47c20d389bb. --- diff --git a/lib/common/output.c b/lib/common/output.c index 82e42b20b..25a98f79e 100644 --- a/lib/common/output.c +++ b/lib/common/output.c @@ -28,6 +28,11 @@ double yDir (double y) static int (*print)(void *chan, const char *format, ...); +static void agputs (const char* s, FILE* fp) +{ + print(fp, "%s", s); +} + static void printpoint(FILE * f, pointf p) { print(f, " %.5g %.5g", PS2INCH(p.x), PS2INCH(YDIR(p.y))); @@ -139,7 +144,7 @@ void write_plain(GVJ_t *job, graph_t *g, FILE *f, bool extend) { late_nnstring(e, E_color, DEFAULT_COLOR)); } } - print(f, "stop\n"); + agputs("stop\n", f); } static void set_record_rects(node_t * n, field_t * f, agxbuf * xb)