From: Keates, Mark (Mark.Keates_at_dendrite.com)
Date: 2001-08-15 18:18:36
(I'm losing it... replying to myself ;-) > DrawLine(x1,y1,x2,y2) > { > switch (getsystype()) > { > case SYS_ATARI: atari_DrawLine(x1,y1,x2,y2); break; > case SYS_CBM64: cbm64_DrawLine(x1,y1,x2,y2); break; > ... > } > } > > I guess this could work if each function was in its own .o file. > Does LD65 handle this? This isn't possible because the DrawLine function HAS a reference to each implementation and so everything will be linked. Therefore you DO need to build a lib for each target. Therefore I think Mike's argument of fgets() not having the same implementation on Sun/Solaris as on the 6502 is immaterial as the host would never link with the other's library. Mark ---------------------------------------------------------------------- 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