TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: GEORGE WHITE
from: Jasen Betts
date: 1998-12-10 20:45:00
subject: Csplit (PATCH #1)

GW> 1) Saveing the path information isn't difficult, but as it is stored
GW>    togther with the file name in a header line and there are no checks
GW>    on header line lengths it can create header lines that are longer
GW>    than the specified maximum line length.
GW>
GW>    I suspect this is not acceptable, views please.

idea: continue the header with the '\' character if it overflows.

begin file only occurrs after begin part or end file... maybe that can be
exploited to simplify the processing needed to support the above. either that
or process the continuation of lines before scaning for header lines.

GW> 2) Saveing the path information as Jasen has means the files are not
GW>    compatible with older versions of CSPLIT if the source files were
GW>    not in the current directory.

that was a mistake... I didn't intend it to do that. it must have crept in
while I was adding support for '/' in filenames to be treated the same as '\'
is under dos.

yeah, it was a mistake, I missed one instance of strchr when converting
strrchrs for "posix path compatability"....

***** At line number 1149
***** delete 2 lines:
      if ((NULL != (sptr = strrchr (cur->srcfile, '/'))) ||
          (NULL != (sptr = strrchr (cur->srcfile, ':')))) /* Darin McBride */
***** and insert the following 1 line.
      if (NULL != (sptr = strrchrs(cur->srcfile,":/\\"))) /*
Darin McBride */
*****

actually, I don't understand how his bit of code ever worked, I may have
replaced something tricky with something brutal:)

possibly somewhere he was changing \ into / but I seem to have broken that.

                        

--- EzyQwk V1.20 01fa018d
* Origin: CSS Brisbane, Qld, Australia. [61-7-3367-3890] (3:640/350)
SEEN-BY: 396/1 632/0 371 633/260 262 267 270 371 634/397 635/506 728 639/252
SEEN-BY: 670/218
@PATH: 640/350 201 270/101 396/1 633/260 635/506 728 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.