texlive[67205] Build/source/texk/web2c/cwebdir: [CWEB] Make room for
commits+ascherer at tug.org
commits+ascherer at tug.org
Wed May 24 11:16:38 CEST 2023
Revision: 67205
http://tug.org/svn/texlive?view=revision&revision=67205
Author: ascherer
Date: 2023-05-24 11:16:38 +0200 (Wed, 24 May 2023)
Log Message:
-----------
[CWEB] Make room for larger index entries.
At the time when DEK created CWEB and CTWILL, C compilers restricted the
length of 'identifiers', e.g., variable and function names.
In more recent years, programmers are enjoying the freedom to use more
descriptive names in their sources.
In order to apply 'refsort' to Martin Ruckert's HiTeX ('typedef word_file'
in line 2583 of 'hitex.w') and to Scott Prahl's 'Inverse Adding-Doubling'
(function 'Calculate_Distance_With_Corrections' in line 1124 of 'iad_calc.w';
see https://github.com/scottprahl/iad; this is the first 'off-brand'
application of CTWILL I've seen in the wild!), we moderately extend the
relevant parameters.
Modified Paths:
--------------
trunk/Build/source/texk/web2c/cwebdir/ChangeLog
trunk/Build/source/texk/web2c/cwebdir/refsort.ch
Modified: trunk/Build/source/texk/web2c/cwebdir/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/cwebdir/ChangeLog 2023-05-24 07:53:43 UTC (rev 67204)
+++ trunk/Build/source/texk/web2c/cwebdir/ChangeLog 2023-05-24 09:16:38 UTC (rev 67205)
@@ -1,3 +1,7 @@
+2023-05-24 Andreas Scherer <https://ascherer.github.io>
+
+ * refsort.ch: Make room for larger index entries.
+
2023-05-19 Andreas Scherer <https://ascherer.github.io>
* cwebmac.tex,
Modified: trunk/Build/source/texk/web2c/cwebdir/refsort.ch
===================================================================
--- trunk/Build/source/texk/web2c/cwebdir/refsort.ch 2023-05-24 07:53:43 UTC (rev 67204)
+++ trunk/Build/source/texk/web2c/cwebdir/refsort.ch 2023-05-24 09:16:38 UTC (rev 67205)
@@ -4,7 +4,7 @@
This file is not copyrighted and can be used freely.
- at x
+ at x [0] l.2
\datethis
@y
\datethis
@@ -11,7 +11,15 @@
\let\maybe=\iffalse % print only sections that change
@z
- at x standard C library interface
+ at x [1] l.35 extend index entries for HiTeX and Inverse Adding-Doubling
+ at d max_key 30 /* greater than the length of the longest identifier */
+ at d max_size 100 /* greater than the length of the longest mini-index entry */
+ at y
+ at d max_key 50 /* greater than the length of the longest identifier */
+ at d max_size 120 /* greater than the length of the longest mini-index entry */
+ at z
+
+ at x [2] l.43 standard C library interface
#include "stdio.h"
#include "strings.h"
#include "ctype.h"
@@ -21,13 +29,13 @@
#include <ctype.h>
@z
- at x declare return type
+ at x [2] l.57 declare return type
main()
@y
int main()
@z
- at x 'register' removed in C++17.
+ at x [2] l.59 'register' removed in C++17.
register char *p,*q;
register int n; /* current number of items */
register item *x, **y;
@@ -37,27 +45,28 @@
item *x, **y;
@z
- at x variable not used
+ at x [5] l.89 variable not used
{ register int k;
@y
{
@z
- at x 'register' removed in C++17
+ at x [9] l.149 'register' removed in C++17
{ register int toggle=0;
@y
{ int toggle=0;
@z
- at x 'register' removed in C++17
+ at x [10] l.157 'register' removed in C++17
{ register int toggle=0;
@y
{ int toggle=0;
@z
- at x add 'Index.' section
+ at x [10] l.162 add 'Index.' section
for (;*p;p++) *q++=*p;
}
+
@y
for (;*p;p++) *q++=*p;
}
More information about the tex-live-commits
mailing list.