@ -4,7 +4,7 @@
/* */
/* Stream handling (specification). */
/* */
/* Copyright 1996-2001, 2002, 2004, 2005, 2006 by */
/* Copyright 1996-2002, 2004-2006, 2011 by */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */
/* This file is part of the FreeType project, and may only be used, */
@ -292,18 +292,18 @@ FT_BEGIN_HEADER
# define FT_GET_CHAR() FT_GET_MACRO( FT_Stream_GetChar, FT_Char )
# define FT_GET_BYTE() FT_GET_MACRO( FT_Stream_GetChar, FT_Byte )
# define FT_GET_SHORT() FT_GET_MACRO( FT_Stream_GetShort, FT_Short )
# define FT_GET_USHORT() FT_GET_MACRO( FT_Stream_GetShort, FT_UShort )
# define FT_GET_OFF3() FT_GET_MACRO( FT_Stream_GetOffset, FT_Long )
# define FT_GET_UOFF3() FT_GET_MACRO( FT_Stream_GetOffset, FT_ULong )
# define FT_GET_LONG() FT_GET_MACRO( FT_Stream_GetLong, FT_Long )
# define FT_GET_ULONG() FT_GET_MACRO( FT_Stream_GetLong, FT_ULong )
# define FT_GET_TAG4() FT_GET_MACRO( FT_Stream_GetLong, FT_ULong )
# define FT_GET_SHORT_LE() FT_GET_MACRO( FT_Stream_GetShortLE, FT_Short )
# define FT_GET_USHORT_LE() FT_GET_MACRO( FT_Stream_GetShortLE, FT_UShort )
# define FT_GET_LONG_LE() FT_GET_MACRO( FT_Stream_GetLongLE, FT_Long )
# define FT_GET_ULONG_LE() FT_GET_MACRO( FT_Stream_GetLongLE, FT_ULong )
# define FT_GET_SHORT() FT_GET_MACRO( FT_Stream_GetU Short, FT_Short )
# define FT_GET_USHORT() FT_GET_MACRO( FT_Stream_GetU Short, FT_UShort )
# define FT_GET_OFF3() FT_GET_MACRO( FT_Stream_GetU Offset, FT_Long )
# define FT_GET_UOFF3() FT_GET_MACRO( FT_Stream_GetU Offset, FT_ULong )
# define FT_GET_LONG() FT_GET_MACRO( FT_Stream_GetU Long, FT_Long )
# define FT_GET_ULONG() FT_GET_MACRO( FT_Stream_GetU Long, FT_ULong )
# define FT_GET_TAG4() FT_GET_MACRO( FT_Stream_GetU Long, FT_ULong )
# define FT_GET_SHORT_LE() FT_GET_MACRO( FT_Stream_GetU ShortLE, FT_Short )
# define FT_GET_USHORT_LE() FT_GET_MACRO( FT_Stream_GetU ShortLE, FT_UShort )
# define FT_GET_LONG_LE() FT_GET_MACRO( FT_Stream_GetU LongLE, FT_Long )
# define FT_GET_ULONG_LE() FT_GET_MACRO( FT_Stream_GetU LongLE, FT_ULong )
# endif
# define FT_READ_MACRO( func, type, var ) \
@ -312,17 +312,17 @@ FT_BEGIN_HEADER
# define FT_READ_BYTE( var ) FT_READ_MACRO( FT_Stream_ReadChar, FT_Byte, var )
# define FT_READ_CHAR( var ) FT_READ_MACRO( FT_Stream_ReadChar, FT_Char, var )
# define FT_READ_SHORT( var ) FT_READ_MACRO( FT_Stream_ReadShort, FT_Short, var )
# define FT_READ_USHORT( var ) FT_READ_MACRO( FT_Stream_ReadShort, FT_UShort, var )
# define FT_READ_OFF3( var ) FT_READ_MACRO( FT_Stream_ReadOffset, FT_Long, var )
# define FT_READ_UOFF3( var ) FT_READ_MACRO( FT_Stream_ReadOffset, FT_ULong, var )
# define FT_READ_LONG( var ) FT_READ_MACRO( FT_Stream_ReadLong, FT_Long, var )
# define FT_READ_ULONG( var ) FT_READ_MACRO( FT_Stream_ReadLong, FT_ULong, var )
# define FT_READ_SHORT( var ) FT_READ_MACRO( FT_Stream_ReadU Short, FT_Short, var )
# define FT_READ_USHORT( var ) FT_READ_MACRO( FT_Stream_ReadU Short, FT_UShort, var )
# define FT_READ_OFF3( var ) FT_READ_MACRO( FT_Stream_ReadU Offset, FT_Long, var )
# define FT_READ_UOFF3( var ) FT_READ_MACRO( FT_Stream_ReadU Offset, FT_ULong, var )
# define FT_READ_LONG( var ) FT_READ_MACRO( FT_Stream_ReadU Long, FT_Long, var )
# define FT_READ_ULONG( var ) FT_READ_MACRO( FT_Stream_ReadU Long, FT_ULong, var )
# define FT_READ_SHORT_LE( var ) FT_READ_MACRO( FT_Stream_ReadShortLE, FT_Short, var )
# define FT_READ_USHORT_LE( var ) FT_READ_MACRO( FT_Stream_ReadShortLE, FT_UShort, var )
# define FT_READ_LONG_LE( var ) FT_READ_MACRO( FT_Stream_ReadLongLE, FT_Long, var )
# define FT_READ_ULONG_LE( var ) FT_READ_MACRO( FT_Stream_ReadLongLE, FT_ULong, var )
# define FT_READ_SHORT_LE( var ) FT_READ_MACRO( FT_Stream_ReadU ShortLE, FT_Short, var )
# define FT_READ_USHORT_LE( var ) FT_READ_MACRO( FT_Stream_ReadU ShortLE, FT_UShort, var )
# define FT_READ_LONG_LE( var ) FT_READ_MACRO( FT_Stream_ReadU LongLE, FT_Long, var )
# define FT_READ_ULONG_LE( var ) FT_READ_MACRO( FT_Stream_ReadU LongLE, FT_ULong, var )
# ifndef FT_CONFIG_OPTION_NO_DEFAULT_SYSTEM
@ -431,25 +431,25 @@ FT_BEGIN_HEADER
FT_BASE ( FT_Char )
FT_Stream_GetChar ( FT_Stream stream ) ;
/* read a 16-bit big-endian integer from an entered frame */
FT_BASE ( FT_Short )
FT_Stream_GetShort ( FT_Stream stream ) ;
/* read a 16-bit big-endian unsigned integer from an entered frame */
FT_BASE ( FT_U Short )
FT_Stream_GetU Short ( FT_Stream stream ) ;
/* read a 24-bit big-endian integer from an entered frame */
FT_BASE ( FT_Long )
FT_Stream_GetOffset ( FT_Stream stream ) ;
/* read a 24-bit big-endian unsigned integer from an entered frame */
FT_BASE ( FT_U Long )
FT_Stream_GetU Offset ( FT_Stream stream ) ;
/* read a 32-bit big-endian integer from an entered frame */
FT_BASE ( FT_Long )
FT_Stream_GetLong ( FT_Stream stream ) ;
/* read a 32-bit big-endian unsigned integer from an entered frame */
FT_BASE ( FT_U Long )
FT_Stream_GetU Long ( FT_Stream stream ) ;
/* read a 16-bit little-endian integer from an entered frame */
FT_BASE ( FT_Short )
FT_Stream_GetShortLE ( FT_Stream stream ) ;
/* read a 16-bit little-endian unsigned integer from an entered frame */
FT_BASE ( FT_U Short )
FT_Stream_GetU ShortLE ( FT_Stream stream ) ;
/* read a 32-bit little-endian integer from an entered frame */
FT_BASE ( FT_Long )
FT_Stream_GetLongLE ( FT_Stream stream ) ;
/* read a 32-bit little-endian unsigned integer from an entered frame */
FT_BASE ( FT_U Long )
FT_Stream_GetU LongLE ( FT_Stream stream ) ;
/* read a byte from a stream */
@ -457,30 +457,30 @@ FT_BEGIN_HEADER
FT_Stream_ReadChar ( FT_Stream stream ,
FT_Error * error ) ;
/* read a 16-bit big-endian integer from a stream */
FT_BASE ( FT_Short )
FT_Stream_ReadShort ( FT_Stream stream ,
FT_Error * error ) ;
/* read a 24-bit big-endian integer from a stream */
FT_BASE ( FT_Long )
FT_Stream_ReadOffset ( FT_Stream stream ,
/* read a 16-bit big-endian unsigned integer from a stream */
FT_BASE ( FT_UShort )
FT_Stream_ReadUShort ( FT_Stream stream ,
FT_Error * error ) ;
/* read a 24-bit big-endian unsigned integer from a stream */
FT_BASE ( FT_ULong )
FT_Stream_ReadUOffset ( FT_Stream stream ,
FT_Error * error ) ;
/* read a 32-bit big-endian integer from a stream */
FT_BASE ( FT_Long )
FT_Stream_ReadLong ( FT_Stream stream ,
FT_Error * error ) ;
FT_BASE ( FT_U Long )
FT_Stream_ReadU Long ( FT_Stream stream ,
FT_Error * error ) ;
/* read a 16-bit little-endian integer from a stream */
FT_BASE ( FT_Short )
FT_Stream_ReadShortLE ( FT_Stream stream ,
FT_Error * error ) ;
/* read a 16-bit little-endian unsigned integer from a stream */
FT_BASE ( FT_U Short )
FT_Stream_ReadU ShortLE ( FT_Stream stream ,
FT_Error * error ) ;
/* read a 32-bit little-endian integer from a stream */
FT_BASE ( FT_Long )
FT_Stream_ReadLongLE ( FT_Stream stream ,
FT_Error * error ) ;
/* read a 32-bit little-endian unsigned integer from a stream */
FT_BASE ( FT_U Long )
FT_Stream_ReadU LongLE ( FT_Stream stream ,
FT_Error * error ) ;
/* Read a structure from a stream. The structure must be described */
/* by an array of FT_Frame_Field records. */