shithub: freetype+ttf2subf

Download patch

ref: 9d76a8d67a33559b88b4a145276023995980ffc8
parent: 80f4b060e330334698f1dfb770913589b3786bb0
author: David Turner <[email protected]>
date: Mon Mar 6 04:51:19 EST 2000

a few fixes to get rid of unwanted compile-time warnings

git/fs: mount .git/fs: mount/attach disallowed
--- a/src/type1/t1tokens.c
+++ b/src/type1/t1tokens.c
@@ -946,6 +946,7 @@
  }
 
 
+#if 0
  /*************************************************************************/
  /*                                                                       */
  /*  <Function> Read_CharStrings                                          */
@@ -991,4 +992,4 @@
      if ( grow(tokenizer) ) return tokenizer->error;
    }
  }
-
+#endif
--- a/src/type1/t1tokens.h
+++ b/src/type1/t1tokens.h
@@ -303,7 +303,7 @@
  T1_Error  Read_Token( T1_Tokenizer  tokenizer );
 
 
-
+#if 0
  /*************************************************************************/
  /*                                                                       */
  /*  <Function> Read_CharStrings                                          */
@@ -330,7 +330,7 @@
  T1_Error  Read_CharStrings( T1_Tokenizer  tokenizer,
                              T1_Int        num_chars,
                              T1_Byte*      buffer );
-
+#endif
 
  /*************************************************************************/
  /*                                                                       */
--- a/src/type1z/t1gload.c
+++ b/src/type1z/t1gload.c
@@ -546,7 +546,7 @@
 
 #define USE_ARGS(n)  top -= n; if (top < decoder->stack) goto Stack_Underflow
 
-  EXPORT_FUNC
+  LOCAL_FUNC
   T1_Error   T1_Parse_CharStrings( T1_Decoder*  decoder,
                                    T1_Byte*     charstring_base,
                                    T1_Int       charstring_len,
--- a/src/type1z/t1gload.h
+++ b/src/type1z/t1gload.h
@@ -163,7 +163,7 @@
 
 
   /* This function is exported, because it is used by the T1Dump utility */
-  EXPORT_DEF
+  LOCAL_DEF
   T1_Error   T1_Parse_CharStrings( T1_Decoder*  decoder,
                                    T1_Byte*     charstring_base,
                                    T1_Int       charstring_len,
@@ -171,57 +171,6 @@
                                    T1_Byte**    subrs_base,
                                    T1_Int*      subrs_len );
 
-
-
-/*************************************************************************/
-/*                                                                       */
-/* <Function> T1_Add_Points                                              */
-/*                                                                       */
-/* <Description>                                                         */
-/*    Checks that there is enough room in the current load glyph outline */
-/*    to accept "num_points" additional outline points. If not, this     */
-/*    function grows the load outline's arrays accordingly..             */
-/*                                                                       */
-/* <Input>                                                               */
-/*    builder    :: pointer to glyph builder object                      */
-/*    num_points :: number of points that will be added later            */
-/*                                                                       */
-/* <Return>                                                              */
-/*    Type1 error code. 0 means success                                  */
-/*                                                                       */
-/* <Note>                                                                */
-/*    This function does NOT update the points count in the glyph loader */
-/*    This must be done by the caller itself, after this function is     */
-/*    invoked..                                                          */
-/*                                                                       */
-  LOCAL_DEF
-  T1_Error  T1_Add_Points( T1_Builder*  builder,
-                           T1_Int       num_points );
-
-/*************************************************************************/
-/*                                                                       */
-/* <Function> T1_Add_Contours                                            */
-/*                                                                       */
-/* <Description>                                                         */
-/*    Checks that there is enough room in the current load glyph outline */
-/*    to accept "num_contours" additional contours. If not, this func    */
-/*    the load outline's arrays accordingly..                            */
-/*                                                                       */
-/* <Input>                                                               */
-/*    builder      :: pointer to glyph builder object                    */
-/*    num_contours :: number of contours that will be added later        */
-/*                                                                       */
-/* <Return>                                                              */
-/*    Type1 error code. 0 means success                                  */
-/*                                                                       */
-/* <Note>                                                                */
-/*    This function does NOT update the contours count in the load glyph */
-/*    This must be done by the caller itself, after this function is     */
-/*    invoked..                                                          */
-/*                                                                       */
-  LOCAL_DEF
-  T1_Error  T1_Add_Contours( T1_Builder*  builder,
-                             T1_Int       num_contours );
 
 
   LOCAL_DEF
--- a/src/type1z/t1parse.h
+++ b/src/type1z/t1parse.h
@@ -177,10 +177,10 @@
   LOCAL_DEF
   T1_Bool   T1_ToBool( T1_Parser* parser );
 
-
+#if 0
   LOCAL_DEF
   T1_Int  T1_ToImmediate( T1_Parser*  parser );
-
+#endif
 
   LOCAL_DEF
   T1_Error  T1_New_Parser( T1_Parser*  parser,