[cid, truetype] Don't use `index' as a variable name.

At least on FreeBSD there is a global declaration of `index' in file
`/usr/include/strings.h'.

* src/cff/cf2intrp.c, src/truetype/ttgload.c: s/index/idx/ where
appropriate.
This commit is contained in:
Werner Lemberg 2017-03-27 20:56:23 +02:00
parent 565f5a7d19
commit 208e712de0
2 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,13 @@
2017-03-27 Werner Lemberg <wl@gnu.org>
[cid, truetype] Don't use `index' as a variable name.
At least on FreeBSD there is a global declaration of `index' in file
`/usr/include/strings.h'.
* src/cff/cf2intrp.c, src/truetype/ttgload.c: s/index/idx/ where
appropriate.
2017-03-27 Wojciech Mamrak <wmamrak@gmail.com>
[sfnt] Minor improvement for handling kern tables.

View File

@ -1394,7 +1394,7 @@
/* a utility function to retrieve i-th node from given FT_List */
static FT_ListNode
ft_list_get_node_at( FT_List list,
FT_UInt index )
FT_UInt idx )
{
FT_ListNode cur;
@ -1404,10 +1404,10 @@
for ( cur = list->head; cur; cur = cur->next )
{
if ( !index )
if ( !idx )
return cur;
index--;
idx--;
}
return NULL;