psaux: Use size_t variable to pass the buffer size.

This commit is contained in:
suzuki toshiya 2009-07-03 18:01:22 +09:00
parent da874016eb
commit 2cd993da4d
6 changed files with 27 additions and 9 deletions

View File

@ -1,3 +1,21 @@
2009-07-03 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
psaux: Use size_t variable to pass the buffer size.
* src/psaux/psaux.h (to_bytes): The type of `max_bytes'
(the argument to pass the buffer size) is changed to
size_t, to match with ANSI C string functions.
* src/psaux/psconv.h (PS_Conv_StringDecode,
PS_Conv_ASCIIHexDecode, PS_Conv_EexecDecode): Ditto.
* src/psaux/psconv.c (PS_Conv_StringDecode,
PS_Conv_ASCIIHexDecode, PS_Conv_EexecDecode): Ditto.
* src/psaux/psobjs.h (ps_parser_to_bytes): Ditto.
* src/psaux/psobjs.c (ps_parser_to_bytes): Ditto.
2009-07-03 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
type1: Use size_t variable to pass the string length.

View File

@ -360,7 +360,7 @@ FT_BEGIN_HEADER
FT_Error
(*to_bytes)( PS_Parser parser,
FT_Byte* bytes,
FT_Long max_bytes,
FT_Offset max_bytes,
FT_Long* pnum_bytes,
FT_Bool delimiters );

View File

@ -239,7 +239,7 @@
PS_Conv_StringDecode( FT_Byte** cursor,
FT_Byte* limit,
FT_Byte* buffer,
FT_UInt n )
FT_Offset n )
{
FT_Byte* p;
FT_UInt r = 0;
@ -334,7 +334,7 @@
PS_Conv_ASCIIHexDecode( FT_Byte** cursor,
FT_Byte* limit,
FT_Byte* buffer,
FT_UInt n )
FT_Offset n )
{
FT_Byte* p;
FT_UInt r = 0;
@ -423,7 +423,7 @@
PS_Conv_EexecDecode( FT_Byte** cursor,
FT_Byte* limit,
FT_Byte* buffer,
FT_UInt n,
FT_Offset n,
FT_UShort* seed )
{
FT_Byte* p;

View File

@ -46,20 +46,20 @@ FT_BEGIN_HEADER
PS_Conv_StringDecode( FT_Byte** cursor,
FT_Byte* limit,
FT_Byte* buffer,
FT_UInt n );
FT_Offset n );
#endif
FT_LOCAL( FT_UInt )
PS_Conv_ASCIIHexDecode( FT_Byte** cursor,
FT_Byte* limit,
FT_Byte* buffer,
FT_UInt n );
FT_Offset n );
FT_LOCAL( FT_UInt )
PS_Conv_EexecDecode( FT_Byte** cursor,
FT_Byte* limit,
FT_Byte* buffer,
FT_UInt n,
FT_Offset n,
FT_UShort* seed );

View File

@ -1313,7 +1313,7 @@
FT_LOCAL_DEF( FT_Error )
ps_parser_to_bytes( PS_Parser parser,
FT_Byte* bytes,
FT_Long max_bytes,
FT_Offset max_bytes,
FT_Long* pnum_bytes,
FT_Bool delimiters )
{

View File

@ -111,7 +111,7 @@ FT_BEGIN_HEADER
FT_LOCAL( FT_Error )
ps_parser_to_bytes( PS_Parser parser,
FT_Byte* bytes,
FT_Long max_bytes,
FT_Offset max_bytes,
FT_Long* pnum_bytes,
FT_Bool delimiters );