ref: 336d229f027628d237a5b4c332121de7fc7d3a5b
parent: 046bf8b0cc9210343af15ede701baa95fee0157f
author: Jens Claudius <[email protected]>
date: Tue Oct 3 04:53:37 EDT 2006
2006-10-03 Jens Claudius <[email protected]> * include/freetype/config/ftstdlib.h: Cast away volatileness from argument to ft_setjmp. * include/freetype/internal/ftvalid.h: Add comment that ft_validator_run must not be used.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2006-10-03 Jens Claudius <[email protected]>
+
+ * include/freetype/config/ftstdlib.h: Cast away volatileness from
+ argument to ft_setjmp.
+
+ * include/freetype/internal/ftvalid.h: Add comment that
+ ft_validator_run must not be used.
+
2006-10-01 Werner Lemberg <[email protected]>
* src/base/ftbase.c: Undo change from 2006-09-30.
--- a/include/freetype/config/ftstdlib.h
+++ b/include/freetype/config/ftstdlib.h
@@ -168,12 +168,12 @@
#include <setjmp.h>
-#define ft_jmp_buf jmp_buf /* note: this cannot be a typedef since */
- /* jmp_buf is defined as a macro */
- /* on certain platforms */
+#define ft_jmp_buf jmp_buf /* note: this cannot be a typedef since */
+ /* jmp_buf is defined as a macro */
+ /* on certain platforms */
-#define ft_longjmp longjmp /* likewise */
-#define ft_setjmp setjmp /* same thing here */
+#define ft_longjmp longjmp
+#define ft_setjmp( b ) setjmp( *(jmp_buf*) &(b) ) /* same thing here */
/* the following is only used for debugging purposes, i.e., if */
--- a/include/freetype/internal/ftvalid.h
+++ b/include/freetype/internal/ftvalid.h
@@ -98,6 +98,8 @@
const FT_Byte* limit,
FT_ValidationLevel level );
+ /* Do not use this. It's broken and will cause your validator to crash */
+ /* if you run it on an invalid font. */
FT_BASE( FT_Int )
ft_validator_run( FT_Validator valid );