| 1 |
Change file for wmerge, for MSDOS and Borland C++ 3.1. |
| 2 |
To compile the C file: bcc -w-pro wmerge.c |
| 3 |
|
| 4 |
(This file contributed by Barry Schwartz, [email protected], 28 Jun 94.) |
| 5 |
(Updated 17 Jul 06 by Don Knuth.) |
| 6 |
|
| 7 |
@x Section 19. |
| 8 |
cur_file_name[l]='/'; /* \UNIX/ pathname separator */ |
| 9 |
@y |
| 10 |
cur_file_name[l]='/'; /* A valid {\mc MSDOS} pathname separator */ |
| 11 |
@z |
| 12 |
|
| 13 |
|
| 14 |
@x Section 33. |
| 15 |
if (*s=='.') dot_pos=s++; |
| 16 |
else if (*s=='/') dot_pos=NULL,++s; |
| 17 |
else s++; |
| 18 |
@y |
| 19 |
if (*s=='.') dot_pos=s++; |
| 20 |
else if (*s==':' || *s=='\\' || *s=='/') dot_pos=NULL,++s; |
| 21 |
else s++; |
| 22 |
@z |