updating the definition of FT_CONFIG_OPTION_USE_MODULE_ERRORS

to _undefined_ (source compatibility breaking issue) + updated its comment

back from holidays, woohoo :-)
This commit is contained in:
David Turner 2001-08-21 08:50:45 +00:00
parent 6870f4cf1a
commit 67750c8fa4
3 changed files with 35 additions and 22 deletions

View File

@ -1,3 +1,10 @@
2001-08-21 David Turner <david@freetype.org>
* include/freetype/config/ftoption.h: changed the default setting for
FT_CONFIG_OPTION_USE_MODULE_ERRORS to undefined, since it breaks source
compatibility in a few cases.. (sorry Werner). Updated the comment to
explain that too..
2001-08-17 Martin Muskens <mmuskens@aurelon.com> 2001-08-17 Martin Muskens <mmuskens@aurelon.com>
* src/base/ftcalc.c (FT_MulDiv): Fixed serious typo. * src/base/ftcalc.c (FT_MulDiv): Fixed serious typo.

View File

@ -77,16 +77,17 @@ FT_BEGIN_HEADER
/* */ /* */
/* Module errors */ /* Module errors */
/* */ /* */
/* If this macro is set (which is the default), the higher byte of an */ /* If this macro is set (which is _not_ the default), the higher byte */
/* error code gives the module in which the error has occurred, while */ /* of an error code gives the module in which the error has occurred, */
/* the lower byte is the real error code. */ /* while the lower byte is the real error code. */
/* */ /* */
/* Unsetting this macro makes sense for backwards compatibility; only */ /* Setting this macro makes sense for debugging purposes only, since */
/* the real error code is emitted, and the higher byte is always zero. */ /* it would break source compatibility of certain programs that use */
/* FreeType 2. */
/* */ /* */
/* More details can be found in the files ftmoderr.h and fterrors.h. */ /* More details can be found in the files ftmoderr.h and fterrors.h. */
/* */ /* */
#define FT_CONFIG_OPTION_USE_MODULE_ERRORS #undef FT_CONFIG_OPTION_USE_MODULE_ERRORS
/*************************************************************************/ /*************************************************************************/

View File

@ -1360,8 +1360,8 @@ FT_BEGIN_HEADER
/* FT_Open_Flags */ /* FT_Open_Flags */
/* */ /* */
/* <Description> */ /* <Description> */
/* An enumeration used to list the bit flags used within */ /* An enumeration used to list the bit flags used within the */
/* FT_Open_Args(). */ /* 'flags' field of the @FT_Open_Args structure */
/* */ /* */
/* <Fields> */ /* <Fields> */
/* ft_open_memory :: This is a memory-based stream. */ /* ft_open_memory :: This is a memory-based stream. */
@ -1374,6 +1374,10 @@ FT_BEGIN_HEADER
/* */ /* */
/* ft_open_params :: Use the `num_params' & `params' field. */ /* ft_open_params :: Use the `num_params' & `params' field. */
/* */ /* */
/* <Note> */
/* the 'ft_open_memory', 'ft_open_stream' and 'ft_open_pathname' */
/* flags are mutually exclusive.. */
/* */
typedef enum typedef enum
{ {
ft_open_memory = 1, ft_open_memory = 1,
@ -1418,7 +1422,7 @@ FT_BEGIN_HEADER
/* <Description> */ /* <Description> */
/* A structure used to indicate how to open a new font file/stream. */ /* A structure used to indicate how to open a new font file/stream. */
/* A pointer to such a structure can be used as a parameter for the */ /* A pointer to such a structure can be used as a parameter for the */
/* functions FT_Open_Face() & FT_Attach_Stream(). */ /* functions @FT_Open_Face() & @FT_Attach_Stream(). */
/* */ /* */
/* <Fields> */ /* <Fields> */
/* flags :: A set of bit flags indicating how to use the */ /* flags :: A set of bit flags indicating how to use the */
@ -1443,22 +1447,23 @@ FT_BEGIN_HEADER
/* opening a new face. */ /* opening a new face. */
/* */ /* */
/* <Note> */ /* <Note> */
/* `stream_type' determines which fields are used to create a new */ /* the stream type is determined by the content of 'flags', which */
/* input stream. */ /* are tested in the following order by @FT_Open_Face: */
/* */ /* */
/* If it is `ft_stream_memory', a new memory-based stream will be */ /* if the 'ft_open_memory' bit is set, assume that this is a */
/* created using the memory block specified by `memory_base' and */ /* memory file, located at 'memory_address', of 'memory_size' bytes */
/* `memory_size'. */
/* */ /* */
/* If it is `ft_stream_pathname', a new stream will be created with */ /* otherwise, if the 'ft_open_stream' bit is set, assume that */
/* the `pathname' field, calling the system-specific FT_New_Stream() */ /* a custom input stream is used, a grab it in 'stream'. */
/* function. */
/* */ /* */
/* If is is `ft_stream_copy', then the content of `stream' will be */ /* otherwise, if the 'ft_open_pathname' bit is set, assume that */
/* copied to a new input stream object. The object will be closed */ /* this is a normal file and use the "pathname" to open it. */
/* and destroyed when the face is destroyed itself. Note that this */ /* */
/* means that you should not close the stream before the library */ /* if the 'ft_open_driver' bit is set, @FT_Open_Face will only */
/* does! */ /* try to open the file with the driver whose handler is in "driver" */
/* */
/* if the 'ft_open_params' bit is set, the parameters given by */
/* "num_params" and "params" will be used. They're ignored otherwise */
/* */ /* */
typedef struct FT_Open_Args_ typedef struct FT_Open_Args_
{ {