summaryrefslogtreecommitdiff
path: root/noncore/unsupported/qpdf/xpdf/config.h
Unidiff
Diffstat (limited to 'noncore/unsupported/qpdf/xpdf/config.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/qpdf/xpdf/config.h126
1 files changed, 126 insertions, 0 deletions
diff --git a/noncore/unsupported/qpdf/xpdf/config.h b/noncore/unsupported/qpdf/xpdf/config.h
new file mode 100644
index 0000000..2cd2489
--- a/dev/null
+++ b/noncore/unsupported/qpdf/xpdf/config.h
@@ -0,0 +1,126 @@
1//========================================================================
2//
3// config.h
4//
5// Copyright 1996-2002 Derek B. Noonburg
6//
7//========================================================================
8
9#ifndef CONFIG_H
10#define CONFIG_H
11
12//------------------------------------------------------------------------
13// version
14//------------------------------------------------------------------------
15
16// xpdf version
17#define xpdfVersion "1.00"
18
19// supported PDF version
20#define supportedPDFVersionStr "1.4"
21#define supportedPDFVersionNum 1.4
22
23// copyright notice
24#define xpdfCopyright "Copyright 1996-2002 Derek B. Noonburg"
25
26//------------------------------------------------------------------------
27// paper size
28//------------------------------------------------------------------------
29
30// default paper size (in points) for PostScript output
31#ifdef A4_PAPER
32#define defPaperWidth 595 // ISO A4 (210x297 mm)
33#define defPaperHeight 842
34#else
35#define defPaperWidth 612 // American letter (8.5x11")
36#define defPaperHeight 792
37#endif
38
39//------------------------------------------------------------------------
40// config file (xpdfrc) path
41//------------------------------------------------------------------------
42
43// user config file name, relative to the user's home directory
44#if defined(VMS) || (defined(WIN32) && !defined(__CYGWIN32__))
45#define xpdfUserConfigFile "xpdfrc"
46#else
47#define xpdfUserConfigFile ".xpdfrc"
48#endif
49
50// system config file name (set via the configure script)
51#ifdef SYSTEM_XPDFRC
52#define xpdfSysConfigFile SYSTEM_XPDFRC
53#else
54// under Windows, we get the directory with the executable and then
55// append this file name
56#define xpdfSysConfigFile "xpdfrc"
57#endif
58
59//------------------------------------------------------------------------
60// X-related constants
61//------------------------------------------------------------------------
62
63// default maximum size of color cube to allocate
64#define defaultRGBCube 5
65
66// number of fonts (combined t1lib, FreeType, X server) to cache
67#define xOutFontCacheSize 64
68
69//------------------------------------------------------------------------
70// popen
71//------------------------------------------------------------------------
72
73#ifdef _MSC_VER
74#define popen _popen
75#define pclose _pclose
76#endif
77
78#if defined(VMS) || defined(VMCMS) || defined(DOS) || defined(OS2) || defined(__EMX__) || defined(WIN32) || defined(__DJGPP__) || defined(__CYGWIN32__) || defined(MACOS)
79#define POPEN_READ_MODE "rb"
80#else
81#define POPEN_READ_MODE "r"
82#endif
83
84//------------------------------------------------------------------------
85// uncompress program
86//------------------------------------------------------------------------
87
88#ifdef HAVE_POPEN
89
90// command to uncompress to stdout
91# ifdef USE_GZIP
92# define uncompressCmd "gzip -d -c -q"
93# else
94# ifdef __EMX__
95# define uncompressCmd "compress -d -c"
96# else
97# define uncompressCmd "uncompress -c"
98# endif // __EMX__
99# endif // USE_GZIP
100
101#else // HAVE_POPEN
102
103// command to uncompress a file
104# ifdef USE_GZIP
105# define uncompressCmd "gzip -d -q"
106# else
107# define uncompressCmd "uncompress"
108# endif // USE_GZIP
109
110#endif // HAVE_POPEN
111
112//------------------------------------------------------------------------
113// Win32 stuff
114//------------------------------------------------------------------------
115
116#ifdef CDECL
117#undef CDECL
118#endif
119
120#ifdef _MSC_VER
121#define CDECL __cdecl
122#else
123#define CDECL
124#endif
125
126#endif