summaryrefslogtreecommitdiff
path: root/Build/source/texk/xdv2pdf
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/xdv2pdf')
-rw-r--r--Build/source/texk/xdv2pdf/ChangeLog6
-rw-r--r--Build/source/texk/xdv2pdf/xdv2pdf.cpp12
2 files changed, 12 insertions, 6 deletions
diff --git a/Build/source/texk/xdv2pdf/ChangeLog b/Build/source/texk/xdv2pdf/ChangeLog
index edcca55dcf1..c5e9bc6fa7e 100644
--- a/Build/source/texk/xdv2pdf/ChangeLog
+++ b/Build/source/texk/xdv2pdf/ChangeLog
@@ -1,3 +1,9 @@
+2009-03-17 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * xdv2pdf.cpp: Reestablish the '-d' option.
+ #include <kpathsea/kpathsea.h> and reinterpret_cast for type
+ conversion.
+
2009-03-16 Peter Breitenlohner <peb@mppmu.mpg.de>
* xdv2pdf.cpp: As a temporary fix, disable the '-d' option.
diff --git a/Build/source/texk/xdv2pdf/xdv2pdf.cpp b/Build/source/texk/xdv2pdf/xdv2pdf.cpp
index 8353f2c4fc8..10584555885 100644
--- a/Build/source/texk/xdv2pdf/xdv2pdf.cpp
+++ b/Build/source/texk/xdv2pdf/xdv2pdf.cpp
@@ -931,10 +931,13 @@ doPicFile(FILE* xdv, int pdfBoxType) // t[4][6] p[2] l[2] a[l]
/* declarations of KPATHSEARCH functions we use for finding TFMs and OTFs */
extern "C" {
- UInt8* kpse_find_file(const UInt8* name, int type, int must_exist);
- UInt8* uppercasify(const UInt8* s);
+#include <kpathsea/kpathsea.h>
+#define kpse_find_file(name, type, must_exist) reinterpret_cast<UInt8*> \
+ (kpse_find_file(reinterpret_cast<const_string>(name), \
+ (kpse_file_format_type)type, must_exist))
+#define uppercasify(s) reinterpret_cast<UInt8*> \
+ (uppercasify(reinterpret_cast<const_string>(s)))
};
-//extern unsigned kpathsea_debug;
#include "xdv_kpse_formats.h"
@@ -2270,10 +2273,7 @@ xdv2pdf(int argc, char** argv)
break;
case 'd':
- {
- unsigned int kpathsea_debug;
kpathsea_debug |= atoi(optarg);
- }
break;
case 'v':