On 6 Jul 2011, at 13:13, Sebastian Reitenbach wrote:

> Ivar type: [3[4i]], size: 0


Well, that's obviously wrong, but I can't reproduce it.  We can, at least, work 
from a simpler test case now though:

$ cat test.c
#include <stdio.h>
size_t objc_sizeof_type(const char*);

int main(void)
{
        printf("%d\n",  (int)objc_sizeof_type("[3[4i]]"));
        return 0;
}
$ cc size.c -lobjc && ./a.out 
48

On SPARC64, I think sizeof(int) is 8, so I'd expect this to be 96.  If it 
isn't, we need to work out why.  Can you step through this call and see if it's 
doing anything obviously wrong?

David

-- Sent from my PDP-11


_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to