index is already used in string.h, avoid it here.
src/modules/immodules/xim/ecore_imf_xim.c:116: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:487: warning: shadowed declaration is here
Signed-off-by: Stefan Schmidt <s.schmidt@samsung.com>
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@71442
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
static unsigned int
utf8_offset_to_index(const char *str, int offset)
{
- int index = 0;
+ int idx = 0;
int i;
for (i = 0; i < offset; i++)
{
- eina_unicode_utf8_get_next(str, &index);
+ eina_unicode_utf8_get_next(str, &idx);
}
- return index;
+ return idx;
}
#endif