Re: [cc65] stack corruption

From: Spiro Trikaliotis <ml-cc651trikaliotis.net>
Date: 2004-07-21 15:42:00
Hello,

* On Wed, Jul 21, 2004 at 03:28:30PM +0200 MagerValp wrote:
> >>>>> "UvB" == Ullrich von Bassewitz <uz@musoftware.de> writes:
 
> UvB> Are you sure, both declarations were visible to the compiler?
> 
> drawentry.c does not include drawentry.h itself, so when the function
> is compiled it's not visible.

Why doesn't it include drawentry.h? That exactly the opposite of how it
should work. If you don't include your prototypes for use by other
function, how should the compiler find such bugs?

So, include drawentry.h in drawentry.c, and you get warnings if you do
the same mistake in the future.

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 Wed Jul 21 15:42:10 2004

This archive was generated by hypermail 2.1.8 : 2004-07-21 15:42:18 CEST