* include/freetype/freetype.h (FT_Open_Face): Use `const' for `args'


			
			
				BRANCH-2-1-5
			
			
		
Werner Lemberg 23 years ago
parent fc520e232b
commit fe2ad2d755
  1. 7
      ChangeLog
  2. 8
      include/freetype/freetype.h
  3. 14
      src/base/ftobjs.c

@ -1,3 +1,10 @@
2002-10-07 Werner Lemberg <wl@gnu.org>
* include/freetype/freetype.h (FT_Open_Face): Use `const' for `args'
(suggested by Graham).
* src/base/ftobjs.c (FT_Open_Face): Updated.
(ft_input_stream_new): Ditto.
2002-10-05 David Turner <david@freetype.org>
* src/pfr/pfrsbit.h, src/pfr/pfrsbit.c, src/pfr/pfrload.c,

@ -1736,10 +1736,10 @@ FT_BEGIN_HEADER
/* recognized, or non-zero otherwise. */
/* */
FT_EXPORT( FT_Error )
FT_Open_Face( FT_Library library,
FT_Open_Args* args,
FT_Long face_index,
FT_Face *aface );
FT_Open_Face( FT_Library library,
const FT_Open_Args* args,
FT_Long face_index,
FT_Face *aface );
/*************************************************************************/

@ -75,9 +75,9 @@
/* create a new input stream from a FT_Open_Args structure */
/* */
static FT_Error
ft_input_stream_new( FT_Library library,
FT_Open_Args* args,
FT_Stream* astream )
ft_input_stream_new( FT_Library library,
const FT_Open_Args* args,
FT_Stream* astream )
{
FT_Error error;
FT_Memory memory;
@ -846,10 +846,10 @@
/* documentation is in freetype.h */
FT_EXPORT_DEF( FT_Error )
FT_Open_Face( FT_Library library,
FT_Open_Args* args,
FT_Long face_index,
FT_Face *aface )
FT_Open_Face( FT_Library library,
const FT_Open_Args* args,
FT_Long face_index,
FT_Face *aface )
{
FT_Error error;
FT_Driver driver;

Loading…
Cancel
Save