summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipsk/bitmapenc.c
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2020-01-29 22:35:30 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2020-01-29 22:35:30 +0000
commit925e195e807448ed88f3ea0f5289df7ed65e85ae (patch)
tree670d102a0e5201f1ea98d29b334d6bc0a14e242c /Build/source/texk/dvipsk/bitmapenc.c
parent940c24434690083c532105022ff57bdf662ca2f7 (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/dvipsk/bitmapenc.c')
-rw-r--r--Build/source/texk/dvipsk/bitmapenc.c6
1 files changed, 3 insertions, 3 deletions
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)