mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-04 10:30:47 +00:00
Declare new methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@899 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c8f0eaf056
commit
f65e426c41
2 changed files with 52 additions and 40 deletions
|
@ -20,10 +20,9 @@
|
||||||
- initWithReturnType: (const char *)encoding;
|
- initWithReturnType: (const char *)encoding;
|
||||||
- (void) invoke;
|
- (void) invoke;
|
||||||
- (void) invokeWithObject: anObj;
|
- (void) invokeWithObject: anObj;
|
||||||
- (void) invokeWithElement: (elt)anElt;
|
|
||||||
- (const char *) returnType;
|
- (const char *) returnType;
|
||||||
- (unsigned) returnSize;
|
- (unsigned) returnSize;
|
||||||
- (void) getReturnValue: (void *)addr;
|
- (void) getReturnValue: (void*) addr;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface ArgframeInvocation : Invocation
|
@interface ArgframeInvocation : Invocation
|
||||||
|
@ -43,6 +42,7 @@
|
||||||
@interface MethodInvocation : ArgframeInvocation
|
@interface MethodInvocation : ArgframeInvocation
|
||||||
- initWithArgframe: (arglist_t)frame selector: (SEL)s;
|
- initWithArgframe: (arglist_t)frame selector: (SEL)s;
|
||||||
- initWithSelector: (SEL)s;
|
- initWithSelector: (SEL)s;
|
||||||
|
- initWithTarget: target selector: (SEL)s, ...;
|
||||||
- (void) invokeWithTarget: t;
|
- (void) invokeWithTarget: t;
|
||||||
- (SEL) selector;
|
- (SEL) selector;
|
||||||
- (void) setSelector: (SEL)s;
|
- (void) setSelector: (SEL)s;
|
||||||
|
@ -50,6 +50,30 @@
|
||||||
- (void) setTarget: t;
|
- (void) setTarget: t;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@interface VoidFunctionInvocation : Invocation
|
||||||
|
{
|
||||||
|
void (*function)();
|
||||||
|
}
|
||||||
|
- initWithFunction: (void(*)())f;
|
||||||
|
@end
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
|
||||||
|
@interface VoidObjectFunctionInvocation : Invocation
|
||||||
|
{
|
||||||
|
void (*function)(id);
|
||||||
|
id object;
|
||||||
|
}
|
||||||
|
- initWithFunction: (void(*)())f;
|
||||||
|
@end
|
||||||
|
|
||||||
|
@interface ObjectObjectFunctionInvocation : Invocation
|
||||||
|
{
|
||||||
|
id (*function)(id);
|
||||||
|
}
|
||||||
|
- initWithFunction: (void(*)())f;
|
||||||
|
@end
|
||||||
|
|
||||||
@interface FunctionInvocation : ArgframeInvocation
|
@interface FunctionInvocation : ArgframeInvocation
|
||||||
{
|
{
|
||||||
void (*function)();
|
void (*function)();
|
||||||
|
@ -59,24 +83,6 @@
|
||||||
- initWithFunction: (void(*)())f;
|
- initWithFunction: (void(*)())f;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
#if 0
|
|
||||||
// NO, instead do above;
|
|
||||||
@interface EltFunctionInvocation
|
|
||||||
{
|
|
||||||
void (*func)(elt);
|
|
||||||
}
|
|
||||||
- initWithEltFunction: (void(*)(elt))func;
|
|
||||||
@end
|
|
||||||
|
|
||||||
@interface TclInvocation
|
|
||||||
- initWithTcl: (Tcl*)t command: (id <String>)c;
|
|
||||||
@end
|
|
||||||
|
|
||||||
@interface Collection (Invokes)
|
|
||||||
- makeObjectsInvoke: (MethodInvocation*)i;
|
|
||||||
- withObjectsInvoke: (Invocation*)i;
|
|
||||||
- withElementsInvoke: (EltInvocation*)i;
|
|
||||||
@end
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* __Invocation_h_OBJECTS_INCLUDE */
|
#endif /* __Invocation_h_OBJECTS_INCLUDE */
|
||||||
|
|
|
@ -20,10 +20,9 @@
|
||||||
- initWithReturnType: (const char *)encoding;
|
- initWithReturnType: (const char *)encoding;
|
||||||
- (void) invoke;
|
- (void) invoke;
|
||||||
- (void) invokeWithObject: anObj;
|
- (void) invokeWithObject: anObj;
|
||||||
- (void) invokeWithElement: (elt)anElt;
|
|
||||||
- (const char *) returnType;
|
- (const char *) returnType;
|
||||||
- (unsigned) returnSize;
|
- (unsigned) returnSize;
|
||||||
- (void) getReturnValue: (void *)addr;
|
- (void) getReturnValue: (void*) addr;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface ArgframeInvocation : Invocation
|
@interface ArgframeInvocation : Invocation
|
||||||
|
@ -43,6 +42,7 @@
|
||||||
@interface MethodInvocation : ArgframeInvocation
|
@interface MethodInvocation : ArgframeInvocation
|
||||||
- initWithArgframe: (arglist_t)frame selector: (SEL)s;
|
- initWithArgframe: (arglist_t)frame selector: (SEL)s;
|
||||||
- initWithSelector: (SEL)s;
|
- initWithSelector: (SEL)s;
|
||||||
|
- initWithTarget: target selector: (SEL)s, ...;
|
||||||
- (void) invokeWithTarget: t;
|
- (void) invokeWithTarget: t;
|
||||||
- (SEL) selector;
|
- (SEL) selector;
|
||||||
- (void) setSelector: (SEL)s;
|
- (void) setSelector: (SEL)s;
|
||||||
|
@ -50,6 +50,30 @@
|
||||||
- (void) setTarget: t;
|
- (void) setTarget: t;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@interface VoidFunctionInvocation : Invocation
|
||||||
|
{
|
||||||
|
void (*function)();
|
||||||
|
}
|
||||||
|
- initWithFunction: (void(*)())f;
|
||||||
|
@end
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
|
||||||
|
@interface VoidObjectFunctionInvocation : Invocation
|
||||||
|
{
|
||||||
|
void (*function)(id);
|
||||||
|
id object;
|
||||||
|
}
|
||||||
|
- initWithFunction: (void(*)())f;
|
||||||
|
@end
|
||||||
|
|
||||||
|
@interface ObjectObjectFunctionInvocation : Invocation
|
||||||
|
{
|
||||||
|
id (*function)(id);
|
||||||
|
}
|
||||||
|
- initWithFunction: (void(*)())f;
|
||||||
|
@end
|
||||||
|
|
||||||
@interface FunctionInvocation : ArgframeInvocation
|
@interface FunctionInvocation : ArgframeInvocation
|
||||||
{
|
{
|
||||||
void (*function)();
|
void (*function)();
|
||||||
|
@ -59,24 +83,6 @@
|
||||||
- initWithFunction: (void(*)())f;
|
- initWithFunction: (void(*)())f;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
#if 0
|
|
||||||
// NO, instead do above;
|
|
||||||
@interface EltFunctionInvocation
|
|
||||||
{
|
|
||||||
void (*func)(elt);
|
|
||||||
}
|
|
||||||
- initWithEltFunction: (void(*)(elt))func;
|
|
||||||
@end
|
|
||||||
|
|
||||||
@interface TclInvocation
|
|
||||||
- initWithTcl: (Tcl*)t command: (id <String>)c;
|
|
||||||
@end
|
|
||||||
|
|
||||||
@interface Collection (Invokes)
|
|
||||||
- makeObjectsInvoke: (MethodInvocation*)i;
|
|
||||||
- withObjectsInvoke: (Invocation*)i;
|
|
||||||
- withElementsInvoke: (EltInvocation*)i;
|
|
||||||
@end
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* __Invocation_h_OBJECTS_INCLUDE */
|
#endif /* __Invocation_h_OBJECTS_INCLUDE */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue