Re: [cc65] Goodbye _curunit, Hello chdir()

From: Marc 'BlackJack' Rintsch <marc1rintsch.de>
Date: 2012-10-20 17:24:34
Hi Oliver,

> >  Why did _curunit HAVE to go away completely?
> 
> I hoped I did explain well why _curunit can't stay around: Write
> access to it causes inconsistencies inside he C library.

That's a reason to document this behaviour, it doesn't make in 
obligatory to remove the name for good.  Mixing C I/O and ``conio.h`` 
functions also causes inconsistencies.

Maybe moving the name into the target specific header files would be an 
option‽

> As getcurrentdevice() adds only 6 (?) bytes to a program I believe
> that this solves your issue.

Providing it as a macro might reduce/remove the overhead.

Ciao,
	Marc 'BlackJack' Rintsch
-- 
Stupid question of the day:
If someone with multiple personalities threatens to
kill himself, is it considered a hostage situation?
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sat Oct 20 17:25:18 2012

This archive was generated by hypermail 2.1.8 : 2012-10-20 17:25:22 CEST