| 1 |
Changes for the REFSORT utility from the CTWILL tarball. |
| 2 |
|
| 3 |
This minimal set of changes tries to satisfy the GCC compiler. |
| 4 |
|
| 5 |
This file is not copyrighted and can be used freely. |
| 6 |
|
| 7 |
@x [0] l.2 |
| 8 |
\datethis |
| 9 |
@y |
| 10 |
\datethis |
| 11 |
\let\maybe=\iffalse % print only sections that change |
| 12 |
@z |
| 13 |
|
| 14 |
@x [1] l.35 extend index entries for HiTeX and Inverse Adding-Doubling |
| 15 |
@d max_key 30 /* greater than the length of the longest identifier */ |
| 16 |
@d max_size 100 /* greater than the length of the longest mini-index entry */ |
| 17 |
@y |
| 18 |
@d max_key 50 /* greater than the length of the longest identifier */ |
| 19 |
@d max_size 120 /* greater than the length of the longest mini-index entry */ |
| 20 |
@z |
| 21 |
|
| 22 |
@x [2] l.43 standard C library interface |
| 23 |
#include "stdio.h" |
| 24 |
#include "strings.h" |
| 25 |
#include "ctype.h" |
| 26 |
@y |
| 27 |
#include <stdio.h> |
| 28 |
#include <string.h> |
| 29 |
#include <ctype.h> |
| 30 |
@z |
| 31 |
|
| 32 |
@x [2] l.57 declare return type |
| 33 |
main() |
| 34 |
@y |
| 35 |
int main() |
| 36 |
@z |
| 37 |
|
| 38 |
@x [2] l.59 'register' removed in C++17. |
| 39 |
register char *p,*q; |
| 40 |
register int n; /* current number of items */ |
| 41 |
register item *x, **y; |
| 42 |
@y |
| 43 |
char *p,*q; |
| 44 |
int n; /* current number of items */ |
| 45 |
item *x, **y; |
| 46 |
@z |
| 47 |
|
| 48 |
@x [4] l.83 |
| 49 |
@<Copy |buf| to item |x|@>; |
| 50 |
@y |
| 51 |
@<Copy \9{b}|buf| to item |x|@>; |
| 52 |
@z |
| 53 |
|
| 54 |
@x [5] l.89 variable not used |
| 55 |
{ register int k; |
| 56 |
@y |
| 57 |
{ |
| 58 |
@z |
| 59 |
|
| 60 |
@x [6] l.99 |
| 61 |
@<Copy |buf|...@>= |
| 62 |
@y |
| 63 |
@<Copy \9{b}|buf|...@>= |
| 64 |
@z |
| 65 |
|
| 66 |
@x [9] l.149 'register' removed in C++17 |
| 67 |
{ register int toggle=0; |
| 68 |
@y |
| 69 |
{ int toggle=0; |
| 70 |
@z |
| 71 |
|
| 72 |
@x [10] l.157 'register' removed in C++17 |
| 73 |
{ register int toggle=0; |
| 74 |
@y |
| 75 |
{ int toggle=0; |
| 76 |
@z |
| 77 |
|
| 78 |
@x [10] l.162 add 'Index.' section |
| 79 |
for (;*p;p++) *q++=*p; |
| 80 |
} |
| 81 |
|
| 82 |
@y |
| 83 |
for (;*p;p++) *q++=*p; |
| 84 |
} |
| 85 |
|
| 86 |
@* Index. |
| 87 |
@z |