texlive[53590] Build/source/texk/dvipsk: use strchr() instead of
commits+kakuto at tug.org
commits+kakuto at tug.org
Wed Jan 29 23:35:30 CET 2020
Revision: 53590
http://tug.org/svn/texlive?view=revision&revision=53590
Author: kakuto
Date: 2020-01-29 23:35:30 +0100 (Wed, 29 Jan 2020)
Log Message:
-----------
use strchr() instead of index()
Modified Paths:
--------------
trunk/Build/source/texk/dvipsk/ChangeLog
trunk/Build/source/texk/dvipsk/bitmapenc.c
Modified: trunk/Build/source/texk/dvipsk/ChangeLog
===================================================================
--- trunk/Build/source/texk/dvipsk/ChangeLog 2020-01-29 18:51:54 UTC (rev 53589)
+++ trunk/Build/source/texk/dvipsk/ChangeLog 2020-01-29 22:35:30 UTC (rev 53590)
@@ -1,3 +1,8 @@
+2020-01-30 Akira Kakuto <kakuto at w32tex.org>
+
+ * bitmapenc.c: use strchr() instead of index(), because index()
+ is not supported in Visual Studio 2010.
+
2020-01-29 Tomas Rokicki <rokicki at gmail.com>
* bitmapenc.c (struct bmenc): new member existsbm.
Modified: trunk/Build/source/texk/dvipsk/bitmapenc.c
===================================================================
--- trunk/Build/source/texk/dvipsk/bitmapenc.c 2020-01-29 18:51:54 UTC (rev 53589)
+++ trunk/Build/source/texk/dvipsk/bitmapenc.c 2020-01-29 22:35:30 UTC (rev 53590)
@@ -306,12 +306,12 @@
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 (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)
More information about the tex-live-commits
mailing list.