summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOran Agra <oran@monfort.co.il>2009-04-05 18:25:14 +0300
committerOran Agra <oran@monfort.co.il>2009-04-05 18:25:14 +0300
commit1dcd0f2399142fded8e92a47c8d2d3ccd6b4a458 (patch)
tree5ead0323557901852f61f8d04305d34212f81096
parent59b4af8d593e7e940a84a39a6c7a06e7d935bfe5 (diff)
downloadfreetype2-1dcd0f2399142fded8e92a47c8d2d3ccd6b4a458.tar.gz
Add #error to modules and files that do not support PIC yet.
When FT_CONFIG_OPTION_PIC is defined the following files will create #error: * src/bdf/bdfdrivr.h * src/cache/ftcmanag.c * src/cid/cidriver.h * src/gxvalid/gxvmod.h * src/gzip/ftgzip.c * src/lzw/ftlzw.c * src/otvalid/otvmod.h * src/pcf/pcfdrivr.h * src/pfr/pfrdrivr.h * src/psaux/psauxmod.h * src/type1/t1driver.h * src/type42/t42drivr.h * src/winfonts/winfnt.h
-rw-r--r--ChangeLog20
-rw-r--r--src/bdf/bdfdrivr.h4
-rw-r--r--src/cache/ftcmanag.c4
-rw-r--r--src/cid/cidriver.h4
-rw-r--r--src/gxvalid/gxvmod.h4
-rw-r--r--src/gzip/ftgzip.c4
-rw-r--r--src/lzw/ftlzw.c4
-rw-r--r--src/otvalid/otvmod.h4
-rw-r--r--src/pcf/pcfdrivr.h4
-rw-r--r--src/pfr/pfrdrivr.h4
-rw-r--r--src/psaux/psauxmod.h4
-rw-r--r--src/type1/t1driver.h4
-rw-r--r--src/type42/t42drivr.h4
-rw-r--r--src/winfonts/winfnt.h4
14 files changed, 72 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index aace65d67..6480246d8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,25 @@
2009-04-05 Oran Agra <oran@monfort.co.il>
+ Add #error to modules and files that do not support PIC yet.
+
+ When FT_CONFIG_OPTION_PIC is defined the following files will
+ create #error:
+ * src/bdf/bdfdrivr.h
+ * src/cache/ftcmanag.c
+ * src/cid/cidriver.h
+ * src/gxvalid/gxvmod.h
+ * src/gzip/ftgzip.c
+ * src/lzw/ftlzw.c
+ * src/otvalid/otvmod.h
+ * src/pcf/pcfdrivr.h
+ * src/pfr/pfrdrivr.h
+ * src/psaux/psauxmod.h
+ * src/type1/t1driver.h
+ * src/type42/t42drivr.h
+ * src/winfonts/winfnt.h
+
+2009-04-05 Oran Agra <oran@monfort.co.il>
+
Position Independent Code (PIC) support in autofit module.
* include/freetype/internal/autohint.h add macros to init
diff --git a/src/bdf/bdfdrivr.h b/src/bdf/bdfdrivr.h
index 86f40ee4a..db7093bb4 100644
--- a/src/bdf/bdfdrivr.h
+++ b/src/bdf/bdfdrivr.h
@@ -36,6 +36,10 @@ THE SOFTWARE.
FT_BEGIN_HEADER
+#ifdef FT_CONFIG_OPTION_PIC
+#error "this module does not support PIC yet"
+#endif
+
typedef struct BDF_encoding_el_
{
diff --git a/src/cache/ftcmanag.c b/src/cache/ftcmanag.c
index 4d44094ce..9e79f650c 100644
--- a/src/cache/ftcmanag.c
+++ b/src/cache/ftcmanag.c
@@ -26,6 +26,10 @@
#include "ftccback.h"
#include "ftcerror.h"
+#ifdef FT_CONFIG_OPTION_PIC
+#error "cache system does not support PIC yet"
+#endif
+
#undef FT_COMPONENT
#define FT_COMPONENT trace_cache
diff --git a/src/cid/cidriver.h b/src/cid/cidriver.h
index d5a80f6f9..c7f424bb3 100644
--- a/src/cid/cidriver.h
+++ b/src/cid/cidriver.h
@@ -26,6 +26,10 @@
FT_BEGIN_HEADER
+#ifdef FT_CONFIG_OPTION_PIC
+#error "this module does not support PIC yet"
+#endif
+
FT_CALLBACK_TABLE
const FT_Driver_ClassRec t1cid_driver_class;
diff --git a/src/gxvalid/gxvmod.h b/src/gxvalid/gxvmod.h
index 466584ef4..d912a8f83 100644
--- a/src/gxvalid/gxvmod.h
+++ b/src/gxvalid/gxvmod.h
@@ -34,6 +34,10 @@
FT_BEGIN_HEADER
+#ifdef FT_CONFIG_OPTION_PIC
+#error "this module does not support PIC yet"
+#endif
+
FT_EXPORT_VAR( const FT_Module_Class ) gxv_module_class;
diff --git a/src/gzip/ftgzip.c b/src/gzip/ftgzip.c
index 0d6bd3495..479a1c0cb 100644
--- a/src/gzip/ftgzip.c
+++ b/src/gzip/ftgzip.c
@@ -40,6 +40,10 @@
#ifdef FT_CONFIG_OPTION_USE_ZLIB
+#ifdef FT_CONFIG_OPTION_PIC
+#error "gzip code does not support PIC yet"
+#endif
+
#ifdef FT_CONFIG_OPTION_SYSTEM_ZLIB
#include <zlib.h>
diff --git a/src/lzw/ftlzw.c b/src/lzw/ftlzw.c
index a00bd5012..4f601a16d 100644
--- a/src/lzw/ftlzw.c
+++ b/src/lzw/ftlzw.c
@@ -42,6 +42,10 @@
#ifdef FT_CONFIG_OPTION_USE_LZW
+#ifdef FT_CONFIG_OPTION_PIC
+#error "lzw code does not support PIC yet"
+#endif
+
#include "ftzopen.h"
diff --git a/src/otvalid/otvmod.h b/src/otvalid/otvmod.h
index 1bfc1899f..573b2a0c4 100644
--- a/src/otvalid/otvmod.h
+++ b/src/otvalid/otvmod.h
@@ -27,6 +27,10 @@
FT_BEGIN_HEADER
+#ifdef FT_CONFIG_OPTION_PIC
+#error "this module does not support PIC yet"
+#endif
+
FT_EXPORT_VAR( const FT_Module_Class ) otv_module_class;
diff --git a/src/pcf/pcfdrivr.h b/src/pcf/pcfdrivr.h
index 7ddf697e1..a81d7309e 100644
--- a/src/pcf/pcfdrivr.h
+++ b/src/pcf/pcfdrivr.h
@@ -33,6 +33,10 @@ THE SOFTWARE.
FT_BEGIN_HEADER
+#ifdef FT_CONFIG_OPTION_PIC
+#error "this module does not support PIC yet"
+#endif
+
FT_EXPORT_VAR( const FT_Driver_ClassRec ) pcf_driver_class;
FT_END_HEADER
diff --git a/src/pfr/pfrdrivr.h b/src/pfr/pfrdrivr.h
index 36f1205b7..da0a1aa63 100644
--- a/src/pfr/pfrdrivr.h
+++ b/src/pfr/pfrdrivr.h
@@ -26,6 +26,10 @@
FT_BEGIN_HEADER
+#ifdef FT_CONFIG_OPTION_PIC
+#error "this module does not support PIC yet"
+#endif
+
FT_EXPORT_VAR( const FT_Driver_ClassRec ) pfr_driver_class;
diff --git a/src/psaux/psauxmod.h b/src/psaux/psauxmod.h
index 92ac05604..35e042dbc 100644
--- a/src/psaux/psauxmod.h
+++ b/src/psaux/psauxmod.h
@@ -26,6 +26,10 @@
FT_BEGIN_HEADER
+#ifdef FT_CONFIG_OPTION_PIC
+#error "this module does not support PIC yet"
+#endif
+
FT_EXPORT_VAR( const FT_Module_Class ) psaux_driver_class;
diff --git a/src/type1/t1driver.h b/src/type1/t1driver.h
index ad429440d..9fecbeb0f 100644
--- a/src/type1/t1driver.h
+++ b/src/type1/t1driver.h
@@ -26,6 +26,10 @@
FT_BEGIN_HEADER
+#ifdef FT_CONFIG_OPTION_PIC
+#error "this module does not support PIC yet"
+#endif
+
FT_EXPORT_VAR( const FT_Driver_ClassRec ) t1_driver_class;
diff --git a/src/type42/t42drivr.h b/src/type42/t42drivr.h
index 98b7410b6..4717e4613 100644
--- a/src/type42/t42drivr.h
+++ b/src/type42/t42drivr.h
@@ -25,6 +25,10 @@
FT_BEGIN_HEADER
+#ifdef FT_CONFIG_OPTION_PIC
+#error "this module does not support PIC yet"
+#endif
+
FT_EXPORT_VAR( const FT_Driver_ClassRec ) t42_driver_class;
diff --git a/src/winfonts/winfnt.h b/src/winfonts/winfnt.h
index ca75c9501..70a90861a 100644
--- a/src/winfonts/winfnt.h
+++ b/src/winfonts/winfnt.h
@@ -28,6 +28,10 @@
FT_BEGIN_HEADER
+#ifdef FT_CONFIG_OPTION_PIC
+#error "this module does not support PIC yet"
+#endif
+
typedef struct WinMZ_HeaderRec_
{
FT_UShort magic;