Re: [cc65] Filenames for POSIX functins on CBM targets

From: Groepaz <groepaz1gmx.net>
Date: 2012-08-09 22:44:16
On Thursday 09 August 2012, Spiro Trikaliotis wrote:
> The point here is: The drive number is something that does not have to
> be handled specifically if you just keep the "0:" or "1:" syntax. Thus,
> there is absolutely no need to disallow that one, regardless of if you
> want the approach of an "absolute path" or not - i.e., "/8/0:abc" would
> be fine.

one major problem with this though IMHO: pretty much any character is valid in 
a filename (eg the forward slash), requiring a somewhat non trivial parser. 
("8/9/10" is a valid filename)

maybe a chdir/getcwd kind of thing that basically sets and returns _currdrive 
(and possibly at a future time the actual directory of a CMD device or sth) is 
the better alternative, as then only programs that really need it can use 
those.

-- 

http://www.hitmen-console.org    http://magicdisk.untergrund.net
http://www.pokefinder.org        http://ftp.pokefinder.org

Wenn man nicht gegen den Verstand verstößt, kann man überhaupt zu nichts 
kommen. 
<Albert Einstein>

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Aug 9 22:43:11 2012

This archive was generated by hypermail 2.1.8 : 2012-08-09 22:43:15 CEST