Re: [cc65] More assignments and typecasting questions

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2002-07-24 07:56:45


On Tue, Jul 23, 2002 at 01:07:56PM -0700, Shawn Jefferson wrote:
> BTW: you really have to pay attention to warnings about functions not being
> prototyped, as it can really screw the parameter stack!  Just spent about 30
> minutes trying to debug this function that I threw cgetc() into just for
> debugging and didn't bother to include conio.h since it was just temporary...
> big mistake! :)

You can ignore *some* warnings, but not all. If a function is declared as
__fastcall__, you cannot call it without a prototype or bad things will
happen. Other functions should be ok as long as you supply the correct number
of parameters. Which means, that there shouldn't be problems with cgetc() -
are you sure about that?

The best way to avoid the problems would be to change the naming conventions
for fastcall functions, so missing prototypes are detected at link stage. This
is somewhere on my todo list...

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
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 : 2002-07-24 07:57:55 CEST