On Thursday, April 19, 2001, at 01:41 PM, Michael Scheibler wrote:

> The code delivers wrong results for sizep. Could the reason be that 
> there is
> no special mframe implementation for win32?
>
> const char *
> NSGetSizeAndAlignment(const char *typePtr, unsigned *sizep, unsigned
> *alignp)
> {
>   NSArgumentInfo info;
>   typePtr = mframe_next_arg(typePtr, &info);
>   if (sizep)
>     *sizep = info.size;
>   if (alignp)
>     *alignp = info.align;
>   return typePtr;
> }
>
>
>
>
> When I use the original objc-runtime implementations it runs. Why did 
> you
> use mframe instead?

At the time ... to work round bugs in the libobjc code ... and to ensure 
that
any bugs in the mframe code were exposed as quickly as possible.

Also, because calling the libobjc code with illegal arguments causes a 
crash.

It would be nice to update the mframe code to -
1. handle simple types directly and cope with illegal types.
2. use libobjc to obtain info for more complex types.

_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to