diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2020-01-29 22:35:30 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2020-01-29 22:35:30 +0000 |
commit | 925e195e807448ed88f3ea0f5289df7ed65e85ae (patch) | |
tree | 670d102a0e5201f1ea98d29b334d6bc0a14e242c /Build/source/texk | |
parent | 940c24434690083c532105022ff57bdf662ca2f7 (diff) |
use strchr() instead of index()
git-svn-id: svn://tug.org/texlive/trunk@53590 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk')
-rw-r--r-- | Build/source/texk/dvipsk/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/dvipsk/bitmapenc.c | 6 |
2 files changed, 8 insertions, 3 deletions
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 <kakuto@w32tex.org> + + * bitmapenc.c: use strchr() instead of index(), because index() + is not supported in Visual Studio 2010. + 2020-01-29 Tomas Rokicki <rokicki@gmail.com> * 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) |