Re: [cc65] bug report: pass-by-value of structs destroys stack

From: Groepaz <groepaz1gmx.net>
Date: 2005-11-30 09:11:41
On Wednesday 30 November 2005 09:07, Ullrich von Bassewitz wrote:
> Hi!
>
> On Wed, Nov 30, 2005 at 01:41:09AM +0100, Sidney Cadot wrote:
> > Aha, ok.... It seems to /almost/ work .... :^) But it's in the docs,
> > I see that now (<blush>).
>
> What happens is that just a pointer is passed, but the function will access
> the struct as if there was a copy on the stack, effectively destroying
> stack locations, it doesn't own.

is it really that much of a problem to make this work? ... uhm...not that i 
would ever use or even need it, but anyway :) the compiler has reached an 
amazing level of standard compliance already, would be pretty cool to get rid 
of the remaining few bits :=P

-- 

http://www.hitmen-console.org
http://www.gc-linux.org/docs/yagcd.html
http://www.pokefinder.org
http://ftp.pokefinder.org

Bad officials are the ones elected by good citizens who do not vote. 
<George Jean Nathan>

----------------------------------------------------------------------
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 Nov 30 09:15:51 2005

This archive was generated by hypermail 2.1.8 : 2005-11-30 09:15:53 CET