summaryrefslogtreecommitdiff
path: root/src/fontfile/register.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2005-07-09 23:31:40 +0000
committerKeith Packard <keithp@keithp.com>2005-07-09 23:31:40 +0000
commitcd24fcabc449bbc701a25e3cad279009dec69032 (patch)
tree376db045ef698d82c05bfe0804472abb849954c3 /src/fontfile/register.c
parent428dd333c1c1a96d205d8236c6ecee32dbf7cac9 (diff)
Switch from monolithic configuration symbols to modular ones, add backwardXORG-6_8_99_16XORG-6_8_99_15
compatibility for monolithic symbols
Diffstat (limited to 'src/fontfile/register.c')
-rw-r--r--src/fontfile/register.c44
1 files changed, 34 insertions, 10 deletions
diff --git a/src/fontfile/register.c b/src/fontfile/register.c
index dd4a04b..cb74c7c 100644
--- a/src/fontfile/register.c
+++ b/src/fontfile/register.c
@@ -35,7 +35,10 @@ in this Software without prior written authorization from The Open Group.
#ifdef HAVE_CONFIG_H
#include <config.h>
+#else
+#define XFONT_BITMAP 1
#endif
+
#include <X11/fonts/fontmisc.h>
#include <X11/fonts/fntfilst.h>
#include <X11/fonts/bitmap.h>
@@ -44,29 +47,50 @@ in this Software without prior written authorization from The Open Group.
#include <X11/fonts/fontmod.h>
#endif
+/*
+ * Translate monolithic build symbols to modular build symbols.
+ * I chose to make the modular symbols 'canonical' because they
+ * are prefixed with XFONT_, neatly avoiding name collisions
+ * with other packages.
+ */
+
+#ifndef CRAY
+# ifdef BUILD_SPEEDO
+# define XFONT_SPEEDO 1
+# endif
+# ifdef BUILD_TYPE1
+# define XFONT_TYPE1 1
+# endif
+#endif
+
+#ifdef BUILD_CID
+# define XFONT_CID 1
+#endif
+#ifdef BUILD_FREETYPE
+# define XFONT_FREETYPE 1
+#endif
+
void
FontFileRegisterFpeFunctions(void)
{
#ifndef LOADABLEFONTS
- BitmapRegisterFontFileFunctions ();
-
-#ifndef CRAY
-#ifdef BUILD_SPEEDO
+#ifdef XFONT_BITMAP
+ BitmapRegisterFontFileFunctions ();
+#endif
+#ifdef XFONT_SPEEDO
SpeedoRegisterFontFileFunctions ();
#endif
-#ifdef BUILD_TYPE1
+#ifdef XFONT_TYPE1
Type1RegisterFontFileFunctions();
#endif
-#endif
-#ifdef BUILD_CID
+#ifdef XFONT_CID
CIDRegisterFontFileFunctions();
#endif
-#ifdef BUILD_FREETYPE
+#ifdef XFONT_FREETYPE
FreeTypeRegisterFontFileFunctions();
#endif
-
#else
{
int i;
@@ -79,7 +103,7 @@ FontFileRegisterFpeFunctions(void)
}
}
#endif
-
+
FontFileRegisterLocalFpeFunctions ();
}