mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-02 01:21:08 +00:00
import testsuite
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32187 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
734c214892
commit
0e02133729
374 changed files with 20864 additions and 0 deletions
55
Tests/base/NSInvocation/Resources/InvokeProxy.h
Normal file
55
Tests/base/NSInvocation/Resources/InvokeProxy.h
Normal file
|
@ -0,0 +1,55 @@
|
|||
/* InvokeProxy.h - Definitions for simple target and proxy classes
|
||||
|
||||
Written By: Adam Fedor <fedor@gnu.org>
|
||||
*/
|
||||
#include <Foundation/NSObject.h>
|
||||
#include <Foundation/NSGeometry.h>
|
||||
|
||||
typedef struct {
|
||||
char c;
|
||||
int i;
|
||||
} smallStruct;
|
||||
|
||||
typedef struct {
|
||||
int i;
|
||||
char *s;
|
||||
float f;
|
||||
} largeStruct;
|
||||
|
||||
@interface InvokeTarget: NSObject
|
||||
- (char) loopChar: (char)v;
|
||||
- (double) loopDouble: (double)v;
|
||||
- (float) loopFloat: (float)v;
|
||||
- (int) loopInt: (int)v;
|
||||
- (largeStruct) loopLarge: (largeStruct)v;
|
||||
- (long) loopLong: (long)v;
|
||||
- (largeStruct) loopLargePtr: (largeStruct*)v;
|
||||
- (id) loopObject: (id)v;
|
||||
- (short) loopShort: (short)v;
|
||||
- (NSRect) loopRect: (NSRect)v;
|
||||
- (smallStruct) loopSmall: (smallStruct)v;
|
||||
- (smallStruct) loopSmallPtr: (smallStruct*)v;
|
||||
- (char*) loopString: (char*)v;
|
||||
|
||||
- (char) retChar;
|
||||
- (double) retDouble;
|
||||
- (float) retFloat;
|
||||
- (int) retInt;
|
||||
- (largeStruct) retLarge;
|
||||
- (long) retLong;
|
||||
- (id) retObject;
|
||||
- (short) retShort;
|
||||
- (smallStruct) retSmall;
|
||||
- (char*) retString;
|
||||
@end
|
||||
|
||||
@interface InvokeProxy : NSObject
|
||||
{
|
||||
id obj;
|
||||
}
|
||||
|
||||
- (id) initWithTarget: (id)target;
|
||||
|
||||
@end
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue