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

From: Spiro Trikaliotis <ml-cc651trikaliotis.net>
Date: 2012-08-12 21:35:31
Hello,

* On Sun, Aug 12, 2012 at 05:18:22PM +0200 Oliver Schmidt wrote:
 
> > Why shouldn't they? I expect if I set _curunit to 1, then the program
> > written for the floppy should also work for the tape (if it does not do
> > any fancy disk specific stuff).
> >
> > So, they should be cross-target, yes.
> 
> 1. The program won't build on other taegets as there's no _curunit.

So, just because we have to put one simple statement in an ifdef
completely removes any cross-target attribute from the code?

I see. Thinking this way, it gets obvious that cross-target programs on
Unixoids are extremely rare.

Come on.

> 2. The other targets likely don't have tape drives to be accessed via open().

The point is: I can have the same code to access floppy drives on all
(?) platforms CC65 supports, on all devices that it supports. The small
setup that is platform-specific does not count for me here.

BTW, the setup could be hidden in a chdir() function, making it
cross-platform again.

> > If this is not the case, it will not be possible to open some files
> > written some 20 years ago.
> 
> Something I personally could live well with.

I tend to disagree. A user that will not be able to open a file because
it has some weird characters in it will not be appy.

> > Given that even on one platform only (CBM), it is not possible to find
> > "disallowed" characters to use a separators, I can only imagine how hard
> > it is to integrate the other platforms, too.
> 
> Again - Im _NOT_ looking for a single path syntax for all targets! I'm
> only looking for _SOME_ path syntax on every target. But the CBMs have
> none at all. Therefore there's no need at all to find such a char.

No? I thought you proposed the colon?

 
> I hope that it is a joke to ask me if I'm aware that there are path
> syntax differences between OSes…

Well... Do I have to google for your name in order to find out about
your background?

Well, better not: http://oliver-schmidt-hairdesign.de/, ;)
http://www.bild.de/sport/fussball/oliver-schmidt/zdf-kommentator-hat-nichts-gegen-pyrotechnik-20423458.bild.html,
http://www.dr-oliver-schmidt.de/

Your name without additional information is not enough.


Enough jokes: No, this was not a joke, but I do not know you enough to
judge what you know and what not.

 
> No, you are wrong. There's still this misunderstanding. I explicitky
> want to stay clear from any type of emulation layer.

Ok, in this case, I misunderstood your argumantations.


Regards,
Spiro.

-- 
Spiro R. Trikaliotis
http://www.trikaliotis.net/
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Aug 12 21:35:58 2012

This archive was generated by hypermail 2.1.8 : 2012-08-12 21:36:02 CEST