This is the mail archive of the
xconq7@sourceware.cygnus.com
mailing list for the Xconq project.
Re: [erik.jessen@home.com: Re: Saving Games in Xconq]
- To: erik dot jessen at home dot com
- Subject: Re: [erik.jessen@home.com: Re: Saving Games in Xconq]
- From: Stan Shebs <shebs at cygnus dot com>
- Date: Fri, 12 Nov 1999 05:29:50 -0800
- CC: xconq7 at sourceware dot cygnus dot com
Date: Wed, 10 Nov 1999 21:14:15 -0800
From: Erik Jessen <erik.jessen@home.com>
I prefer the ASCII file approach; one question: does the parser cope
with all styles of CR/LF? I.e. I could save a game under NT & load it
under UNIX? And please don't look at the first line & assume all
the others have the same CR/LF format; there are editors that save files
with a mix.... (argghhhh).
In theory yes, the parser is supposed to treat both CRs and LFs as
whitespace. However, upon looking at the code, I can see a couple
potential trouble spots. Hans introduced a special file opener that
can handle Mac/Unix differences transparently by opening in different
modes ("r" vs "rb"), we may just want to do a Windows version of the
same.
Stan