bug-gnustep
[Top][All Lists]
Advanced

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

base (mingw): NSObjCRuntime.m, NSGetSizeAndAlignment


From: Michael Scheibler
Subject: base (mingw): NSObjCRuntime.m, NSGetSizeAndAlignment
Date: Thu, 19 Apr 2001 14:41:09 +0200

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?

const char *
NSGetSizeAndAlignment(const char *typePtr, unsigned *sizep, unsigned
*alignp)
{
  NSArgumentInfo info;
  if (sizep)
    *sizep = objc_sizeof_type(typePtr);
  if (alignp)
    *alignp = objc_alignof_type(typePtr);
  return typePtr;
}



Michael




reply via email to

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