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

From: Oliver Schmidt <ol.sc1web.de>
Date: 2012-08-10 20:47:57
Hi,

> sounds overengineered to me to be honest. since the drive number is handled by
> the drive on its own anyway, just ignore it. (and a PET user would be probably
> indeed expect to be able to use something like "1:foo" to specify drive 1 in a
> filename)

I was describing the overall behavior from the users perspective. The
implementation would of course build on the processing by the drive
and would be therefore as simple as:

Does the filename begin with a number followed by a colon? If Yes use
the number as device number (instead of the "current device number")
and advance the filename pointer to the char after the colon. Do the
rest as usual.

Doesn't look overengineered at all to me...

Regards,
Oliver
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Aug 10 20:48:08 2012

This archive was generated by hypermail 2.1.8 : 2012-08-10 20:48:11 CEST