[Prev][Next][Index]
Re: mallinfo example
- Date: Sat, 5 Nov 94 14:25:27 -0500
- From: Beata Winnicka <bfatyga@slab.cica.indiana.edu>
- To: Andrew Mauer <mauer@mcs.anl.gov>
- Subject: Re: mallinfo example
- Cc: sage-bugs@cica.indiana.edu
> In <malloc.h>, we have a "struct mallinfo { ... };" and
> then also a function "mallinfo()". Later in my code, a
> call to mallinfo is munged from "mallinfo()" to
> "(mallinfo)". Presumably Sage++ doesn't get the
> separation of the namespaces.
>
> Example
>
----------------------------------------------------------------------
--
> struct mallinfo { int j; }; struct mallinfo mallinfo();
>
> main(){ struct mallinfo i = mallinfo(); }
>
----------------------------------------------------------------------
--
> Note: The function mallinfo() must return a struct
> mallinfo to exhibit the bug.
>
This has already been fixed. Our current version unparses your
example to:
struct mallinfo {
int j;
} ;
struct mallinfo mallinfo();
main(){
struct mallinfo i = mallinfo ();
}
-- Beata