Re: [cc65] Lynx target

Date view Thread view Subject view

From: Greg King (gngking_at_erols.com)
Date: 2003-05-04 22:19:10


From: Ullrich von Bassewitz
Date: Tuesday, April 29, 2003, 05:09 AM
>
> On Mon, Apr 28, 2003 at 11:21:30PM +0200, Adam Dunkels wrote:
> > How about "[device:][drive:]name[;version]", i.e., with optional
> > device- and drive-numbers?  The test for if a drive: is present
> > would be quite simple, as well:
> > if(name[1] == ':' && isdigit(name[0]));
>
> I'm not sure if this will work, since both numbers are optional.
> In a name like
>
>        1:foobar
>
> is "1" a device-number or a drive-number?
>
> In addition to that, there are device-numbers up to 31 (at least for the
> CBMs), so your simple test is not enough (unfortunately).

I prefer the Unix style:
    filename
    drive#:filename
    /unit#/filename
    /unit#/drive#:filename
    /unit#//directory1/directory2/filename
    /unit#//directory1/directory2/partition#:filename
    /unit#/partition#:/directory1/directory2/filename

There is no ambiguity.  (The next-to-last path-name is used by Creative
Micro Designs drives.  The last path-name might be used by more-modern
hard-drive systems.)

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-05-05 00:13:32 CEST