summaryrefslogtreecommitdiff
path: root/apps/pdfdraw.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-01-03 16:37:48 +0000
committerRobin Watts <robin.watts@artifex.com>2012-01-03 18:42:23 +0000
commit94439d77f23763d59457b9946ba35bd354ea4841 (patch)
treecf957fe1465b49c530882a0c5f8cb56f1e7f4963 /apps/pdfdraw.c
parenta842269cb43fcb5f1d0bdd594d8d0839a7dcbdf7 (diff)
downloadmupdf-94439d77f23763d59457b9946ba35bd354ea4841.tar.xz
Add mubusy build
Add simple combined exe build for mupdf/muxps tools.
Diffstat (limited to 'apps/pdfdraw.c')
-rw-r--r--apps/pdfdraw.c44
1 files changed, 24 insertions, 20 deletions
diff --git a/apps/pdfdraw.c b/apps/pdfdraw.c
index 3d11729e..6b2923c1 100644
--- a/apps/pdfdraw.c
+++ b/apps/pdfdraw.c
@@ -11,26 +11,26 @@
#include <sys/time.h>
#endif
-char *output = NULL;
-float resolution = 72;
-float rotation = 0;
-
-int showxml = 0;
-int showtext = 0;
-int showtime = 0;
-int showmd5 = 0;
-int showoutline = 0;
-int savealpha = 0;
-int uselist = 1;
-int alphabits = 8;
-float gamma_value = 1;
-int invert = 0;
-
-fz_colorspace *colorspace;
-fz_glyph_cache *glyphcache;
-char *filename;
-
-struct {
+static char *output = NULL;
+static float resolution = 72;
+static float rotation = 0;
+
+static int showxml = 0;
+static int showtext = 0;
+static int showtime = 0;
+static int showmd5 = 0;
+static int showoutline = 0;
+static int savealpha = 0;
+static int uselist = 1;
+static int alphabits = 8;
+static float gamma_value = 1;
+static int invert = 0;
+
+static fz_colorspace *colorspace;
+static fz_glyph_cache *glyphcache;
+static char *filename;
+
+static struct {
int count, total;
int min, max;
int minpage, maxpage;
@@ -358,7 +358,11 @@ static void drawoutline(pdf_xref *xref)
fz_free_outline(outline);
}
+#ifdef MUPDF_COMBINED_EXE
+int pdfdraw_main(int argc, char **argv)
+#else
int main(int argc, char **argv)
+#endif
{
char *password = "";
int grayscale = 0;