* 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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
diff --git a/ChangeLog b/ChangeLog
index 36585b1..3e577e8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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,
diff --git a/include/freetype/freetype.h b/include/freetype/freetype.h
index cc3c0b2..fe102aa 100644
--- a/include/freetype/freetype.h
+++ b/include/freetype/freetype.h
@@ -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 );
/*************************************************************************/
diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index 4c61560..a139a88 100644
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -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;