[Prev][Next][Index]
mallinfo example
- To: sage-bugs@cica.indiana.edu
- Subject: mallinfo example
- Date: Sat, 05 Nov 1994 12:43:42 -0600
- From: Andrew Mauer <mauer@mcs.anl.gov>
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.