forked from pool/freetype2
213 lines
5.6 KiB
Diff
213 lines
5.6 KiB
Diff
|
--- freetype-2.1.7.new/src/base/ftstream.c.orig 2002-03-30 14:16:35.000000000 +0100
|
||
|
+++ freetype-2.1.7.new/src/base/ftstream.c 2004-03-19 15:49:25.000000000 +0100
|
||
|
@@ -44,6 +44,17 @@
|
||
|
stream->close = 0;
|
||
|
}
|
||
|
|
||
|
+ FT_BASE_DEF( void )
|
||
|
+ FT_New_Memory_Stream( FT_Library, FT_Byte*, FT_ULong, FT_Stream ) __attribute__((weak));
|
||
|
+ FT_BASE_DEF( void )
|
||
|
+ FT_New_Memory_Stream( FT_Library library,
|
||
|
+ FT_Byte* base,
|
||
|
+ FT_ULong size,
|
||
|
+ FT_Stream stream )
|
||
|
+ {
|
||
|
+ stream->memory = library->memory;
|
||
|
+ FT_Stream_OpenMemory( stream, (const FT_Byte*) base, size );
|
||
|
+ }
|
||
|
|
||
|
FT_BASE_DEF( void )
|
||
|
FT_Stream_Close( FT_Stream stream )
|
||
|
@@ -87,6 +98,8 @@
|
||
|
return error;
|
||
|
}
|
||
|
|
||
|
+ FT_BASE_DEF( FT_Error )
|
||
|
+ FT_Seek_Stream(FT_Stream, FT_ULong) __attribute__((weak, alias("FT_Stream_Seek")));
|
||
|
|
||
|
FT_BASE_DEF( FT_Error )
|
||
|
FT_Stream_Skip( FT_Stream stream,
|
||
|
@@ -95,6 +108,8 @@
|
||
|
return FT_Stream_Seek( stream, (FT_ULong)( stream->pos + distance ) );
|
||
|
}
|
||
|
|
||
|
+ FT_BASE_DEF( FT_Error )
|
||
|
+ FT_Skip_Stream(FT_Stream, FT_Long) __attribute__((weak, alias("FT_Stream_Skip")));
|
||
|
|
||
|
FT_BASE_DEF( FT_Long )
|
||
|
FT_Stream_Pos( FT_Stream stream )
|
||
|
@@ -111,6 +126,8 @@
|
||
|
return FT_Stream_ReadAt( stream, stream->pos, buffer, count );
|
||
|
}
|
||
|
|
||
|
+ FT_BASE_DEF( FT_Error )
|
||
|
+ FT_Read_Stream( FT_Stream, FT_Byte*, FT_ULong ) __attribute__((weak, alias("FT_Stream_Read")));
|
||
|
|
||
|
FT_BASE_DEF( FT_Error )
|
||
|
FT_Stream_ReadAt( FT_Stream stream,
|
||
|
@@ -155,6 +172,8 @@
|
||
|
return error;
|
||
|
}
|
||
|
|
||
|
+ FT_BASE_DEF( FT_Error )
|
||
|
+ FT_Read_Stream_At( FT_Stream, FT_ULong, FT_Byte*, FT_ULong) __attribute__((weak, alias("FT_Stream_ReadAt")));
|
||
|
|
||
|
FT_BASE_DEF( FT_Error )
|
||
|
FT_Stream_ExtractFrame( FT_Stream stream,
|
||
|
@@ -177,7 +196,9 @@
|
||
|
return error;
|
||
|
}
|
||
|
|
||
|
-
|
||
|
+ FT_BASE_DEF( FT_Error )
|
||
|
+ FT_Extract_Frame( FT_Stream, FT_ULong, FT_Byte** ) __attribute__((weak, alias("FT_Stream_ExtractFrame")));
|
||
|
+
|
||
|
FT_BASE_DEF( void )
|
||
|
FT_Stream_ReleaseFrame( FT_Stream stream,
|
||
|
FT_Byte** pbytes )
|
||
|
@@ -192,6 +213,8 @@
|
||
|
*pbytes = 0;
|
||
|
}
|
||
|
|
||
|
+ FT_BASE_DEF( void )
|
||
|
+ FT_Release_Frame( FT_Stream, FT_Byte** ) __attribute__((weak, alias("FT_Stream_ReleaseFrame")));
|
||
|
|
||
|
FT_BASE_DEF( FT_Error )
|
||
|
FT_Stream_EnterFrame( FT_Stream stream,
|
||
|
@@ -253,6 +276,8 @@
|
||
|
return error;
|
||
|
}
|
||
|
|
||
|
+ FT_BASE_DEF( FT_Error )
|
||
|
+ FT_Access_Frame( FT_Stream, FT_ULong ) __attribute__((weak, alias("FT_Stream_EnterFrame")));
|
||
|
|
||
|
FT_BASE_DEF( void )
|
||
|
FT_Stream_ExitFrame( FT_Stream stream )
|
||
|
@@ -279,6 +304,8 @@
|
||
|
stream->limit = 0;
|
||
|
}
|
||
|
|
||
|
+ FT_BASE_DEF( void )
|
||
|
+ FT_Forget_Frame( FT_Stream ) __attribute__((weak, alias("FT_Stream_ExitFrame")));
|
||
|
|
||
|
FT_BASE_DEF( FT_Char )
|
||
|
FT_Stream_GetChar( FT_Stream stream )
|
||
|
@@ -295,6 +322,8 @@
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
+ FT_BASE_DEF( FT_Char )
|
||
|
+ FT_Get_Char( FT_Stream ) __attribute__((weak, alias("FT_Stream_GetChar")));
|
||
|
|
||
|
FT_BASE_DEF( FT_Short )
|
||
|
FT_Stream_GetShort( FT_Stream stream )
|
||
|
@@ -314,6 +343,8 @@
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
+ FT_BASE_DEF( FT_Short )
|
||
|
+ FT_Get_Short( FT_Stream ) __attribute__((weak, alias("FT_Stream_GetShort")));
|
||
|
|
||
|
FT_BASE_DEF( FT_Short )
|
||
|
FT_Stream_GetShortLE( FT_Stream stream )
|
||
|
@@ -333,6 +364,8 @@
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
+ FT_BASE_DEF( FT_Short )
|
||
|
+ FT_Get_ShortLE( FT_Stream ) __attribute__((weak, alias("FT_Stream_GetShortLE")));
|
||
|
|
||
|
FT_BASE_DEF( FT_Long )
|
||
|
FT_Stream_GetOffset( FT_Stream stream )
|
||
|
@@ -351,6 +384,8 @@
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
+ FT_BASE_DEF( FT_Long )
|
||
|
+ FT_Get_Offset( FT_Stream ) __attribute__((weak, alias("FT_Stream_GetOffset")));
|
||
|
|
||
|
FT_BASE_DEF( FT_Long )
|
||
|
FT_Stream_GetLong( FT_Stream stream )
|
||
|
@@ -369,6 +404,8 @@
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
+ FT_BASE_DEF( FT_Long )
|
||
|
+ FT_Get_Long( FT_Stream ) __attribute__((weak, alias("FT_Stream_GetLong")));
|
||
|
|
||
|
FT_BASE_DEF( FT_Long )
|
||
|
FT_Stream_GetLongLE( FT_Stream stream )
|
||
|
@@ -387,6 +424,8 @@
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
+ FT_BASE_DEF( FT_Long )
|
||
|
+ FT_Get_LongLE( FT_Stream ) __attribute__((weak, alias("FT_Stream_GetLongLE")));
|
||
|
|
||
|
FT_BASE_DEF( FT_Char )
|
||
|
FT_Stream_ReadChar( FT_Stream stream,
|
||
|
@@ -423,6 +462,8 @@
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
+ FT_BASE_DEF( FT_Char )
|
||
|
+ FT_Read_Char( FT_Stream, FT_Error* ) __attribute__((weak, alias("FT_Stream_ReadChar")));
|
||
|
|
||
|
FT_BASE_DEF( FT_Short )
|
||
|
FT_Stream_ReadShort( FT_Stream stream,
|
||
|
@@ -470,6 +511,9 @@
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
+ FT_BASE_DEF( FT_Short )
|
||
|
+ FT_Read_Short( FT_Stream, FT_Error* ) __attribute__((weak, alias("FT_Stream_ReadShort")));
|
||
|
+
|
||
|
|
||
|
FT_BASE_DEF( FT_Short )
|
||
|
FT_Stream_ReadShortLE( FT_Stream stream,
|
||
|
@@ -517,6 +561,8 @@
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
+ FT_BASE_DEF( FT_Short )
|
||
|
+ FT_Read_ShortLE( FT_Stream, FT_Error* ) __attribute__((weak, alias("FT_Stream_ReadShortLE")));
|
||
|
|
||
|
FT_BASE_DEF( FT_Long )
|
||
|
FT_Stream_ReadOffset( FT_Stream stream,
|
||
|
@@ -564,6 +610,8 @@
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
+ FT_BASE_DEF( FT_Long )
|
||
|
+ FT_Read_Offset( FT_Stream, FT_Error* ) __attribute__((weak, alias("FT_Stream_ReadOffset")));
|
||
|
|
||
|
FT_BASE_DEF( FT_Long )
|
||
|
FT_Stream_ReadLong( FT_Stream stream,
|
||
|
@@ -610,6 +658,8 @@
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
+ FT_BASE_DEF( FT_Long )
|
||
|
+ FT_Read_Long( FT_Stream, FT_Error* ) __attribute__((weak, alias("FT_Stream_ReadLong")));
|
||
|
|
||
|
FT_BASE_DEF( FT_Long )
|
||
|
FT_Stream_ReadLongLE( FT_Stream stream,
|
||
|
@@ -657,6 +707,9 @@
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
+ FT_BASE_DEF( FT_Long )
|
||
|
+ FT_Read_LongLE( FT_Stream, FT_Error* ) __attribute__((weak, alias("FT_Stream_ReadLongLE")));
|
||
|
+
|
||
|
|
||
|
FT_BASE_DEF( FT_Error )
|
||
|
FT_Stream_ReadFields( FT_Stream stream,
|
||
|
@@ -799,5 +852,6 @@
|
||
|
return error;
|
||
|
}
|
||
|
|
||
|
-
|
||
|
+ FT_BASE_DEF( FT_Error )
|
||
|
+ FT_Read_Fields( FT_Stream, const FT_Frame_Field*, void* ) __attribute__((weak, alias("FT_Stream_ReadFields")));
|
||
|
/* END */
|