bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: base (mingw): NSObjCRuntime.m, NSGetSizeAndAlignment


From: Richard Frith-Macdonald
Subject: Re: base (mingw): NSObjCRuntime.m, NSGetSizeAndAlignment
Date: Mon, 23 Apr 2001 12:49:40 +0100

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]