summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/cwebdir/refsort.w
diff options
context:
space:
mode:
authorAndreas Scherer <andreas_tex@freenet.de>2021-05-03 13:03:46 +0000
committerAndreas Scherer <andreas_tex@freenet.de>2021-05-03 13:03:46 +0000
commit60712e2174bfaa66828692206c37af9b20d9fc9a (patch)
tree3e9284ecd37b56a42a67118bb5aa94482e07112b /Build/source/texk/web2c/cwebdir/refsort.w
parentd3de05fb9dda5d710a51f3ad2097d67d8452a166 (diff)
[CWEB] New release 4.3.1.
This release is almost the same as CWEB 4.3 of 2021-04-16, but * it fixes the indexing bug in CWEAVE/CTWILL that got retracted * it extracts and collects all additions made in CTWILL, so that the section numbers of CWEAVE are retained up to ยง272 and new material is described in the (first) appendix, including the CTWILL user manual * it provides fully revised and (hopefully) corrected mini-indexes for CTWILL, if it is processed by itself (to be published in package 'knuth-pdf' on CTAN) git-svn-id: svn://tug.org/texlive/trunk@59061 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/cwebdir/refsort.w')
-rw-r--r--Build/source/texk/web2c/cwebdir/refsort.w11
1 files changed, 5 insertions, 6 deletions
diff --git a/Build/source/texk/web2c/cwebdir/refsort.w b/Build/source/texk/web2c/cwebdir/refsort.w
index 162f696f568..e18d1349bf6 100644
--- a/Build/source/texk/web2c/cwebdir/refsort.w
+++ b/Build/source/texk/web2c/cwebdir/refsort.w
@@ -40,9 +40,9 @@ be plenty big enough.
@d abort(c,m) { fprintf(stderr,"%s!\n%s",m,buf); return c; }
@c
-#include <stdio.h>
-#include <string.h>
-#include <ctype.h>
+#include "stdio.h"
+#include "strings.h"
+#include "ctype.h"
@#
typedef struct {
char key[max_key];
@@ -54,7 +54,7 @@ char cur_page[10]; /* page number, as a string */
char buf[max_size]; /* current line of input */
char *input_status; /* |NULL| if end of input reached, else |buf| */
@#
-int main()
+main()
{
register char *p,*q;
register int n; /* current number of items */
@@ -86,7 +86,7 @@ while (1) {
}
@ @<Output the current group@>=
-{
+{ register int k;
for (y=sorted;y<sorted+n;y++) printf("%s\n",(*y)->entry);
printf("\\donewithpage%s\n",cur_page);
}
@@ -162,4 +162,3 @@ characters. Ergo, the following routine replaced a simpler original loop.
for (;*p;p++) *q++=*p;
}
-@* Index.