mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-02 01:21:08 +00:00
lrge changes to remove mframe
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28778 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
cf82bd5792
commit
a6c9c8749a
43 changed files with 555 additions and 4725 deletions
|
@ -27,6 +27,16 @@
|
|||
|
||||
#include <Foundation/NSInvocation.h>
|
||||
|
||||
typedef struct {
|
||||
int offset;
|
||||
unsigned size;
|
||||
const char *type;
|
||||
const char *qtype;
|
||||
unsigned align;
|
||||
unsigned qual;
|
||||
BOOL isReg;
|
||||
} NSArgumentInfo;
|
||||
|
||||
@interface GSFFIInvocation : NSInvocation
|
||||
{
|
||||
uint8_t _retbuf[32]; // Store return values of up to 32 bytes here.
|
||||
|
@ -47,13 +57,18 @@
|
|||
- (BOOL) encodeWithDistantCoder: (NSCoder*)coder passPointers: (BOOL)passp;
|
||||
@end
|
||||
|
||||
@interface NSMethodSignature (GNUstep)
|
||||
- (const char*) methodType;
|
||||
- (NSArgumentInfo*) methodInfo;
|
||||
@end
|
||||
|
||||
extern void
|
||||
GSFFCallInvokeWithTargetAndImp(NSInvocation *inv, id anObject, IMP imp);
|
||||
|
||||
extern void
|
||||
GSFFIInvokeWithTargetAndImp(NSInvocation *inv, id anObject, IMP imp);
|
||||
|
||||
#define CLEAR_RETURN_VALUE_IF_OBJECT do { if (_validReturn && *_info[0].type == _C_ID) \
|
||||
#define CLEAR_RETURN_VALUE_IF_OBJECT do { if (_validReturn && *_inf[0].type == _C_ID) \
|
||||
{ \
|
||||
RELEASE (*(id*) _retval); \
|
||||
*(id*) _retval = nil; \
|
||||
|
@ -61,6 +76,8 @@ GSFFIInvokeWithTargetAndImp(NSInvocation *inv, id anObject, IMP imp);
|
|||
}\
|
||||
} while (0)
|
||||
|
||||
#define RETAIN_RETURN_VALUE IF_NO_GC(do { if (*_info[0].type == _C_ID) RETAIN (*(id*) _retval);} while (0))
|
||||
#define RETAIN_RETURN_VALUE IF_NO_GC(do { if (*_inf[0].type == _C_ID) RETAIN (*(id*) _retval);} while (0))
|
||||
|
||||
#define _inf ((NSArgumentInfo*)_info)
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue