]> granicus.if.org Git - graphviz/commitdiff
if this works I'll be surprised!
authorellson <devnull@localhost>
Tue, 9 Oct 2007 16:40:22 +0000 (16:40 +0000)
committerellson <devnull@localhost>
Tue, 9 Oct 2007 16:40:22 +0000 (16:40 +0000)
lib/gvc/gvdevice.c

index e9a9d3d949f3c0fc0111227f3f1c484928e4ea66..cee1761120999d17f86d2d2f40a5022e759eddd7 100644 (file)
 #include "gvcint.h"
 #include "gvcproc.h"
 
-
-size_t gvdevice_write (GVJ_t * job, const unsigned char *s, unsigned int len)
-{
-    if (job->flags & GVDEVICE_COMPRESSED_FORMAT) {
-#ifdef HAVE_LIBZ
-       return gzwrite((gzFile *) (job->output_file), s, len);
-#endif
-    }
-    else
-       return fwrite(s, sizeof(char), len, job->output_file);
-}
-
 void gvdevice_fputs(GVJ_t * job, char *s)
 {
     gvdevice_write (job, (unsigned char*)s, strlen(s));
@@ -89,6 +77,17 @@ void gvdevice_printf(GVJ_t * job, const char *format, ...)
     gvdevice_write(job, buf, len);
 }
 
+size_t gvdevice_write (GVJ_t * job, const unsigned char *s, unsigned int len)
+{
+    if (job->flags & GVDEVICE_COMPRESSED_FORMAT) {
+#ifdef HAVE_LIBZ
+       return gzwrite((gzFile *) (job->output_file), s, len);
+#endif
+    }
+    else
+       return fwrite(s, sizeof(char), len, job->output_file);
+}
+
 static void auto_output_filename(GVJ_t *job)
 {
     static char *buf;