texlive[55563] Build/source/texk/detex: support old compilers
commits+kakuto at tug.org
commits+kakuto at tug.org
Mon Jun 15 23:40:33 CEST 2020
Revision: 55563
http://tug.org/svn/texlive?view=revision&revision=55563
Author: kakuto
Date: 2020-06-15 23:40:33 +0200 (Mon, 15 Jun 2020)
Log Message:
-----------
support old compilers
Modified Paths:
--------------
trunk/Build/source/texk/detex/ChangeLog
trunk/Build/source/texk/detex/TLpatches/ChangeLog
trunk/Build/source/texk/detex/TLpatches/TL-Changes
trunk/Build/source/texk/detex/detex-src/detex.c
trunk/Build/source/texk/detex/detex-src/detex.l
Added Paths:
-----------
trunk/Build/source/texk/detex/TLpatches/patch-01-support-old-compiler
Modified: trunk/Build/source/texk/detex/ChangeLog
===================================================================
--- trunk/Build/source/texk/detex/ChangeLog 2020-06-15 20:43:56 UTC (rev 55562)
+++ trunk/Build/source/texk/detex/ChangeLog 2020-06-15 21:40:33 UTC (rev 55563)
@@ -1,3 +1,7 @@
+2020-06-16 Akira Kakuto <kakuto at w32tex.org>
+
+ * detex.l, detex.c: Support old compilers.
+
2020-06-15 Hironobu Yamashita <h.y.acetaminophen at gmail.com>
* Import opendetex-2.8.7.
Modified: trunk/Build/source/texk/detex/TLpatches/ChangeLog
===================================================================
--- trunk/Build/source/texk/detex/TLpatches/ChangeLog 2020-06-15 20:43:56 UTC (rev 55562)
+++ trunk/Build/source/texk/detex/TLpatches/ChangeLog 2020-06-15 21:40:33 UTC (rev 55563)
@@ -1,3 +1,11 @@
+2020-06-16 Akira Kakuto <kakuto at w32tex.org>
+
+ Add patch-01-support-old-compiler.
+
+2020-06-15 Hironobu Yamashita <h.y.acetaminophen at gmail.com>
+
+ Adapt to opendetex-2.8.7.
+
2019-02-03 Hironobu Yamashita <h.y.acetaminophen at gmail.com>
Adapt to opendetex-2.8.5.
Modified: trunk/Build/source/texk/detex/TLpatches/TL-Changes
===================================================================
--- trunk/Build/source/texk/detex/TLpatches/TL-Changes 2020-06-15 20:43:56 UTC (rev 55562)
+++ trunk/Build/source/texk/detex/TLpatches/TL-Changes 2020-06-15 21:40:33 UTC (rev 55563)
@@ -1,4 +1,4 @@
-Changes applied to the opendetex-2.8.5 tree as obtained from:
+Changes applied to the opendetex-2.8.7 tree as obtained from:
https://github.com/pkubowicz/opendetex/releases
Renamed:
Added: trunk/Build/source/texk/detex/TLpatches/patch-01-support-old-compiler
===================================================================
--- trunk/Build/source/texk/detex/TLpatches/patch-01-support-old-compiler (rev 0)
+++ trunk/Build/source/texk/detex/TLpatches/patch-01-support-old-compiler 2020-06-15 21:40:33 UTC (rev 55563)
@@ -0,0 +1,12 @@
+--- detex.l.orig Mon Jun 15 20:23:15 2020
++++ detex.l Tue Jun 16 06:09:30 2020
+@@ -732,7 +732,8 @@
+ void
+ IncrLineNo()
+ {
+- for (char* c=yytext; *c != '\0'; c++) {
++ char *c;
++ for (c=yytext; *c != '\0'; c++) {
+ if (*c == '\n') {
+ fFileLines[csb]++; fIsColumn0=1;
+ }
Modified: trunk/Build/source/texk/detex/detex-src/detex.c
===================================================================
--- trunk/Build/source/texk/detex/detex-src/detex.c 2020-06-15 20:43:56 UTC (rev 55562)
+++ trunk/Build/source/texk/detex/detex-src/detex.c 2020-06-15 21:40:33 UTC (rev 55563)
@@ -87,7 +87,7 @@
#endif /* KPATHSEA */
-#line 91 "lex.yy.c"
+#line 90 "lex.yy.c"
#define YY_INT_ALIGNED short int
@@ -1834,9 +1834,9 @@
int csb = 0; /* depth of flex context stack */
#endif /* FLEX_SCANNER */
-#line 1838 "lex.yy.c"
+#line 1837 "lex.yy.c"
-#line 1840 "lex.yy.c"
+#line 1839 "lex.yy.c"
#define INITIAL 0
#define Define 1
@@ -1868,7 +1868,7 @@
*/
#include <unistd.h>
#endif
-
+
#ifndef YY_EXTRA_TYPE
#define YY_EXTRA_TYPE void *
#endif
@@ -2074,7 +2074,7 @@
{
#line 208 "detex.l"
-#line 2078 "lex.yy.c"
+#line 2077 "lex.yy.c"
while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
{
@@ -3114,7 +3114,7 @@
#line 505 "detex.l"
ECHO;
YY_BREAK
-#line 3118 "lex.yy.c"
+#line 3117 "lex.yy.c"
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(Define):
case YY_STATE_EOF(Display):
@@ -4335,7 +4335,8 @@
void
IncrLineNo()
{
- for (char* c=yytext; *c != '\0'; c++) {
+ char *c;
+ for (c=yytext; *c != '\0'; c++) {
if (*c == '\n') {
fFileLines[csb]++; fIsColumn0=1;
}
Modified: trunk/Build/source/texk/detex/detex-src/detex.l
===================================================================
--- trunk/Build/source/texk/detex/detex-src/detex.l 2020-06-15 20:43:56 UTC (rev 55562)
+++ trunk/Build/source/texk/detex/detex-src/detex.l 2020-06-15 21:40:33 UTC (rev 55563)
@@ -732,7 +732,8 @@
void
IncrLineNo()
{
- for (char* c=yytext; *c != '\0'; c++) {
+ char *c;
+ for (c=yytext; *c != '\0'; c++) {
if (*c == '\n') {
fFileLines[csb]++; fIsColumn0=1;
}
More information about the tex-live-commits
mailing list.