summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2009-03-19 12:48:44 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2009-03-19 12:48:44 +0000
commitee507bbd1fc483c58acb33cca25509a4dd81df9b (patch)
treef4f74adeddb82943b2c71f75122d51f4bff95d6b
parent5791df04b9278e1986c968c314e3f8992ce0e52c (diff)
omit initializer for global struct kpse_def_inst
git-svn-id: svn://tug.org/texlive/trunk@12427 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Build/source/texk/kpathsea/ChangeLog5
-rw-r--r--Build/source/texk/kpathsea/kpathsea.c12
2 files changed, 17 insertions, 0 deletions
diff --git a/Build/source/texk/kpathsea/ChangeLog b/Build/source/texk/kpathsea/ChangeLog
index 3b6b354a4b0..1124ded5fd9 100644
--- a/Build/source/texk/kpathsea/ChangeLog
+++ b/Build/source/texk/kpathsea/ChangeLog
@@ -1,3 +1,8 @@
+2009-03-19 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * kpathsea.c: Do not use initializer for kpse_def_inst (FIXME:
+ to be completely removed).
+
2009-03-17 Taco Hoekwater <taco@luatex.org>
* types.h: Define kpse_debug_hash_lookup_int.
diff --git a/Build/source/texk/kpathsea/kpathsea.c b/Build/source/texk/kpathsea/kpathsea.c
index e6395ab96f0..e0a13a4488b 100644
--- a/Build/source/texk/kpathsea/kpathsea.c
+++ b/Build/source/texk/kpathsea/kpathsea.c
@@ -113,6 +113,12 @@ kpathsea_finish (kpathsea kpse)
#if defined (KPSE_COMPAT_API)
+/*
+ * FIXME: completely remove the initializer.
+ */
+
+#if 0
+
#define NULL_FORMAT_INFO(kpse_file_format_type) { \
NULL, /* const_string type */ \
NULL, /* const_string path */ \
@@ -223,6 +229,12 @@ kpathsea_instance kpse_def_inst = {
0 /* int saved_count */
};
+#else /* zero */
+
+kpathsea_instance kpse_def_inst;
+
+#endif /* zero */
+
kpathsea kpse_def = &kpse_def_inst;
#endif