зеркало из https://github.com/stride3d/freetype.git
type1: Use size_t variable to pass the string length.
This commit is contained in:
Родитель
7fd7c6f2e9
Коммит
d1ee378566
17
ChangeLog
17
ChangeLog
|
@ -1,3 +1,20 @@
|
|||
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
|
||||
|
||||
type1: Use size_t variable to pass the string length.
|
||||
|
||||
* psaux.h: The type of `len' (the argument to pass
|
||||
the buffer size to the function in AFM_ParserRec)
|
||||
is changed to size_t, to match with ANSI C string
|
||||
functions.
|
||||
|
||||
* t1afm.c (t1_get_index): Ditto.
|
||||
|
||||
* test_afm.c (dummy_get_index): Ditto.
|
||||
|
||||
* afmparse.c (afm_parser_read_vals): To call
|
||||
AFM_ParserRec.get_index, the length of token
|
||||
`len' is casted to size_t.
|
||||
|
||||
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
|
||||
|
||||
cid: Fix some data types mismatching with their sources.
|
||||
|
|
|
@ -755,7 +755,7 @@ FT_BEGIN_HEADER
|
|||
|
||||
FT_Int
|
||||
(*get_index)( const char* name,
|
||||
FT_UInt len,
|
||||
FT_Offset len,
|
||||
void* user_data );
|
||||
|
||||
void* user_data;
|
||||
|
|
|
@ -378,7 +378,7 @@
|
|||
|
||||
for ( i = 0; i < n; i++ )
|
||||
{
|
||||
FT_UInt len;
|
||||
FT_Offset len;
|
||||
AFM_Value val = vals + i;
|
||||
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
|
||||
int
|
||||
dummy_get_index( const char* name,
|
||||
FT_UInt len,
|
||||
FT_Offset len,
|
||||
void* user_data )
|
||||
{
|
||||
if ( len )
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
/* read a glyph name and return the equivalent glyph index */
|
||||
static FT_Int
|
||||
t1_get_index( const char* name,
|
||||
FT_UInt len,
|
||||
FT_Offset len,
|
||||
void* user_data )
|
||||
{
|
||||
T1_Font type1 = (T1_Font)user_data;
|
||||
|
|
Загрузка…
Ссылка в новой задаче