summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/cwebdir/refsort.ch
blob: 67175b030f77075f4db748452cdf6cfacc2120ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
Changes for the REFSORT utility from the CTWILL tarball.

This minimal set of changes tries to satisfy the GCC compiler.

This file is not copyrighted and can be used freely.

@x [0] l.2
\datethis
@y
\datethis
\let\maybe=\iffalse % print only sections that change
@z

@x [1] l.35 extend index entries for HiTeX and Inverse Adding-Doubling
@d max_key 30 /* greater than the length of the longest identifier */
@d max_size 100 /* greater than the length of the longest mini-index entry */
@y
@d max_key 50 /* greater than the length of the longest identifier */
@d max_size 120 /* greater than the length of the longest mini-index entry */
@z

@x [2] l.43 standard C library interface
#include "stdio.h"
#include "strings.h"
#include "ctype.h"
@y
#include <stdio.h>
#include <string.h>
#include <ctype.h>
@z

@x [2] l.57 declare return type
main()
@y
int main()
@z

@x [2] l.59 'register' removed in C++17.
  register char *p,*q;
  register int n; /* current number of items */
  register item *x, **y;
@y
  char *p,*q;
  int n; /* current number of items */
  item *x, **y;
@z

@x [5] l.89 variable not used
{ register int k;
@y
{
@z

@x [9] l.149 'register' removed in C++17
{ register int toggle=0;
@y
{ int toggle=0;
@z

@x [10] l.157 'register' removed in C++17
{ register int toggle=0;
@y
{ int toggle=0;
@z

@x [10] l.162 add 'Index.' section
  for (;*p;p++) *q++=*p;
}

@y
  for (;*p;p++) *q++=*p;
}

@* Index.
@z