From 925e195e807448ed88f3ea0f5289df7ed65e85ae Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Wed, 29 Jan 2020 22:35:30 +0000 Subject: use strchr() instead of index() git-svn-id: svn://tug.org/texlive/trunk@53590 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/dvipsk/ChangeLog | 5 +++++ Build/source/texk/dvipsk/bitmapenc.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'Build/source/texk') diff --git a/Build/source/texk/dvipsk/ChangeLog b/Build/source/texk/dvipsk/ChangeLog index 1f24c381c45..887c3ce8f01 100644 --- a/Build/source/texk/dvipsk/ChangeLog +++ b/Build/source/texk/dvipsk/ChangeLog @@ -1,3 +1,8 @@ +2020-01-30 Akira Kakuto + + * bitmapenc.c: use strchr() instead of index(), because index() + is not supported in Visual Studio 2010. + 2020-01-29 Tomas Rokicki * bitmapenc.c (struct bmenc): new member existsbm. diff --git a/Build/source/texk/dvipsk/bitmapenc.c b/Build/source/texk/dvipsk/bitmapenc.c index 717d51c2abe..64ff881c848 100644 --- a/Build/source/texk/dvipsk/bitmapenc.c +++ b/Build/source/texk/dvipsk/bitmapenc.c @@ -306,12 +306,12 @@ case 'N': if (*p == ']') { if (seenchars >= 256) return 0 ; if (strncmp(p, "/.notdef", 8) == 0 && - (p[8] <= ' ' || index("{}[]<>()%/", p[8]) == 0)) { + (p[8] <= ' ' || strchr("{}[]<>()%/", p[8]) == 0)) { bme->existsbm[seenchars>>3] &= ~(1<<(seenchars & 7)) ; } // see PostScript language reference manual syntax for this p++ ; - while (*p > ' ' && index("{}[]<>()%/", *p) == 0) + while (*p > ' ' && strchr("{}[]<>()%/", *p) == 0) p++ ; seenchars++ ; } else if ('0' <= *p && *p <= '9') { @@ -329,7 +329,7 @@ case '#': if (*p != '{') return 0 ; case '{': if (strncmp(p, "/.notdef", 8) != 0) return 0 ; p += 8 ; - if (*p > ' ' && index("{}[]<>()%/", *p) == 0) + if (*p > ' ' && strchr("{}[]<>()%/", *p) == 0) return 0 ; while (num > 0) { if (seenchars >= 256) -- cgit v1.2.3