From: Mike McCarty (jmccarty_at_ssd.usa.alcatel.com)
Date: 2001-08-15 20:16:27
On Wed, 15 Aug 2001, groepaz wrote:
> Hello Mark,
>
> KM> DrawLine(x1,y1,x2,y2)
> KM> {
> KM> switch (getsystype())
> KM> {
> KM> case SYS_ATARI: atari_DrawLine(x1,y1,x2,y2); break;
> KM> case SYS_CBM64: cbm64_DrawLine(x1,y1,x2,y2); break;
> KM> ...
> KM> }
> KM> }
>
> KM> I guess this could work if each function was in its own .o file.
> KM> Does LD65 handle this?
>
> for a totally different thing, that kinda functionality would be just
> _marvelous_ for the file-io stuff i am working on....... even if it
> cant work like mentioned above, any other idea how to provide that
> functionality?
One point to make here, I think, is that the decisions can be made
*once* and once *only*. One simply installs the pointers into a table.
Then the tests don't have to be made over and over.
Mike
--
char *p="char *p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
This message made from 100% recycled bits.
I can explain it for you, but I can't understand it for you.
I don't speak for Alcatel <- They make me say that.
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:41 CET