Delete all Trailing spaces in code.
[reactos.git] / reactos / dll / 3rdparty / freetype / src / type1 / t1parse.h
index 6fa4ca6..5089851 100644 (file)
-/***************************************************************************/
-/*                                                                         */
-/*  t1parse.h                                                              */
-/*                                                                         */
-/*    Type 1 parser (specification).                                       */
-/*                                                                         */
-/*  Copyright 1996-2001, 2002, 2003 by                                     */
-/*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
-/*                                                                         */
-/*  This file is part of the FreeType project, and may only be used,       */
-/*  modified, and distributed under the terms of the FreeType project      */
-/*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
-/*  this file you indicate that you have read the license and              */
-/*  understand and accept it fully.                                        */
-/*                                                                         */
-/***************************************************************************/
-
-
-#ifndef __T1PARSE_H__
-#define __T1PARSE_H__
-
-
-#include <ft2build.h>
-#include FT_INTERNAL_TYPE1_TYPES_H
-#include FT_INTERNAL_STREAM_H
-
-
-FT_BEGIN_HEADER
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Struct>                                                              */
-  /*    T1_ParserRec                                                       */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    A PS_ParserRec is an object used to parse a Type 1 fonts very      */
-  /*    quickly.                                                           */
-  /*                                                                       */
-  /* <Fields>                                                              */
-  /*    root         :: The root parser.                                   */
-  /*                                                                       */
-  /*    stream       :: The current input stream.                          */
-  /*                                                                       */
-  /*    base_dict    :: A pointer to the top-level dictionary.             */
-  /*                                                                       */
-  /*    base_len     :: The length in bytes of the top dictionary.         */
-  /*                                                                       */
-  /*    private_dict :: A pointer to the private dictionary.               */
-  /*                                                                       */
-  /*    private_len  :: The length in bytes of the private dictionary.     */
-  /*                                                                       */
-  /*    in_pfb       :: A boolean.  Indicates that we are handling a PFB   */
-  /*                    file.                                              */
-  /*                                                                       */
-  /*    in_memory    :: A boolean.  Indicates a memory-based stream.       */
-  /*                                                                       */
-  /*    single_block :: A boolean.  Indicates that the private dictionary  */
-  /*                    is stored in lieu of the base dictionary.          */
-  /*                                                                       */
-  typedef struct  T1_ParserRec_
-  {
-    PS_ParserRec  root;
-    FT_Stream     stream;
-
-    FT_Byte*      base_dict;
-    FT_Long       base_len;
-
-    FT_Byte*      private_dict;
-    FT_Long       private_len;
-
-    FT_Bool       in_pfb;
-    FT_Bool       in_memory;
-    FT_Bool       single_block;
-
-  } T1_ParserRec, *T1_Parser;
-
-
-#define T1_Add_Table( p, i, o, l )  (p)->funcs.add( (p), i, o, l )
-#define T1_Done_Table( p )          \
-          do                        \
-          {                         \
-            if ( (p)->funcs.done )  \
-              (p)->funcs.done( p ); \
-          } while ( 0 )
-#define T1_Release_Table( p )          \
-          do                           \
-          {                            \
-            if ( (p)->funcs.release )  \
-              (p)->funcs.release( p ); \
-          } while ( 0 )
-
-
-#define T1_Skip_Spaces( p )    (p)->root.funcs.skip_spaces( &(p)->root )
-#define T1_Skip_PS_Token( p )  (p)->root.funcs.skip_PS_token( &(p)->root )
-
-#define T1_ToInt( p )       (p)->root.funcs.to_int( &(p)->root )
-#define T1_ToFixed( p, t )  (p)->root.funcs.to_fixed( &(p)->root, t )
-
-#define T1_ToCoordArray( p, m, c )                           \
-          (p)->root.funcs.to_coord_array( &(p)->root, m, c )
-#define T1_ToFixedArray( p, m, f, t )                           \
-          (p)->root.funcs.to_fixed_array( &(p)->root, m, f, t )
-#define T1_ToToken( p, t )                          \
-          (p)->root.funcs.to_token( &(p)->root, t )
-#define T1_ToTokenArray( p, t, m, c )                           \
-          (p)->root.funcs.to_token_array( &(p)->root, t, m, c )
-
-#define T1_Load_Field( p, f, o, m, pf )                         \
-          (p)->root.funcs.load_field( &(p)->root, f, o, m, pf )
-
-#define T1_Load_Field_Table( p, f, o, m, pf )                         \
-          (p)->root.funcs.load_field_table( &(p)->root, f, o, m, pf )
-
-
-  FT_LOCAL( FT_Error )
-  T1_New_Parser( T1_Parser      parser,
-                 FT_Stream      stream,
-                 FT_Memory      memory,
-                 PSAux_Service  psaux );
-
-  FT_LOCAL( FT_Error )
-  T1_Get_Private_Dict( T1_Parser      parser,
-                       PSAux_Service  psaux );
-
-  FT_LOCAL( void )
-  T1_Finalize_Parser( T1_Parser  parser );
-
-
-FT_END_HEADER
-
-#endif /* __T1PARSE_H__ */
-
-
-/* END */
+/***************************************************************************/\r
+/*                                                                         */\r
+/*  t1parse.h                                                              */\r
+/*                                                                         */\r
+/*    Type 1 parser (specification).                                       */\r
+/*                                                                         */\r
+/*  Copyright 1996-2001, 2002, 2003 by                                     */\r
+/*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */\r
+/*                                                                         */\r
+/*  This file is part of the FreeType project, and may only be used,       */\r
+/*  modified, and distributed under the terms of the FreeType project      */\r
+/*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */\r
+/*  this file you indicate that you have read the license and              */\r
+/*  understand and accept it fully.                                        */\r
+/*                                                                         */\r
+/***************************************************************************/\r
+\r
+\r
+#ifndef __T1PARSE_H__\r
+#define __T1PARSE_H__\r
+\r
+\r
+#include <ft2build.h>\r
+#include FT_INTERNAL_TYPE1_TYPES_H\r
+#include FT_INTERNAL_STREAM_H\r
+\r
+\r
+FT_BEGIN_HEADER\r
+\r
+\r
+  /*************************************************************************/\r
+  /*                                                                       */\r
+  /* <Struct>                                                              */\r
+  /*    T1_ParserRec                                                       */\r
+  /*                                                                       */\r
+  /* <Description>                                                         */\r
+  /*    A PS_ParserRec is an object used to parse a Type 1 fonts very      */\r
+  /*    quickly.                                                           */\r
+  /*                                                                       */\r
+  /* <Fields>                                                              */\r
+  /*    root         :: The root parser.                                   */\r
+  /*                                                                       */\r
+  /*    stream       :: The current input stream.                          */\r
+  /*                                                                       */\r
+  /*    base_dict    :: A pointer to the top-level dictionary.             */\r
+  /*                                                                       */\r
+  /*    base_len     :: The length in bytes of the top dictionary.         */\r
+  /*                                                                       */\r
+  /*    private_dict :: A pointer to the private dictionary.               */\r
+  /*                                                                       */\r
+  /*    private_len  :: The length in bytes of the private dictionary.     */\r
+  /*                                                                       */\r
+  /*    in_pfb       :: A boolean.  Indicates that we are handling a PFB   */\r
+  /*                    file.                                              */\r
+  /*                                                                       */\r
+  /*    in_memory    :: A boolean.  Indicates a memory-based stream.       */\r
+  /*                                                                       */\r
+  /*    single_block :: A boolean.  Indicates that the private dictionary  */\r
+  /*                    is stored in lieu of the base dictionary.          */\r
+  /*                                                                       */\r
+  typedef struct  T1_ParserRec_\r
+  {\r
+    PS_ParserRec  root;\r
+    FT_Stream     stream;\r
+\r
+    FT_Byte*      base_dict;\r
+    FT_Long       base_len;\r
+\r
+    FT_Byte*      private_dict;\r
+    FT_Long       private_len;\r
+\r
+    FT_Bool       in_pfb;\r
+    FT_Bool       in_memory;\r
+    FT_Bool       single_block;\r
+\r
+  } T1_ParserRec, *T1_Parser;\r
+\r
+\r
+#define T1_Add_Table( p, i, o, l )  (p)->funcs.add( (p), i, o, l )\r
+#define T1_Done_Table( p )          \\r
+          do                        \\r
+          {                         \\r
+            if ( (p)->funcs.done )  \\r
+              (p)->funcs.done( p ); \\r
+          } while ( 0 )\r
+#define T1_Release_Table( p )          \\r
+          do                           \\r
+          {                            \\r
+            if ( (p)->funcs.release )  \\r
+              (p)->funcs.release( p ); \\r
+          } while ( 0 )\r
+\r
+\r
+#define T1_Skip_Spaces( p )    (p)->root.funcs.skip_spaces( &(p)->root )\r
+#define T1_Skip_PS_Token( p )  (p)->root.funcs.skip_PS_token( &(p)->root )\r
+\r
+#define T1_ToInt( p )       (p)->root.funcs.to_int( &(p)->root )\r
+#define T1_ToFixed( p, t )  (p)->root.funcs.to_fixed( &(p)->root, t )\r
+\r
+#define T1_ToCoordArray( p, m, c )                           \\r
+          (p)->root.funcs.to_coord_array( &(p)->root, m, c )\r
+#define T1_ToFixedArray( p, m, f, t )                           \\r
+          (p)->root.funcs.to_fixed_array( &(p)->root, m, f, t )\r
+#define T1_ToToken( p, t )                          \\r
+          (p)->root.funcs.to_token( &(p)->root, t )\r
+#define T1_ToTokenArray( p, t, m, c )                           \\r
+          (p)->root.funcs.to_token_array( &(p)->root, t, m, c )\r
+\r
+#define T1_Load_Field( p, f, o, m, pf )                         \\r
+          (p)->root.funcs.load_field( &(p)->root, f, o, m, pf )\r
+\r
+#define T1_Load_Field_Table( p, f, o, m, pf )                         \\r
+          (p)->root.funcs.load_field_table( &(p)->root, f, o, m, pf )\r
+\r
+\r
+  FT_LOCAL( FT_Error )\r
+  T1_New_Parser( T1_Parser      parser,\r
+                 FT_Stream      stream,\r
+                 FT_Memory      memory,\r
+                 PSAux_Service  psaux );\r
+\r
+  FT_LOCAL( FT_Error )\r
+  T1_Get_Private_Dict( T1_Parser      parser,\r
+                       PSAux_Service  psaux );\r
+\r
+  FT_LOCAL( void )\r
+  T1_Finalize_Parser( T1_Parser  parser );\r
+\r
+\r
+FT_END_HEADER\r
+\r
+#endif /* __T1PARSE_H__ */\r
+\r
+\r
+/* END */\r