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

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2005-11-30 09:07:25
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.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
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:07:36 2005

This archive was generated by hypermail 2.1.8 : 2005-11-30 09:07:39 CET