mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Minor tidyup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@7930 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4a05253a48
commit
e6c8161b8a
3 changed files with 7 additions and 34 deletions
|
@ -1,3 +1,9 @@
|
|||
2000-10-30 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Headers/gnustep/base/NSInvocation.h: Removed non-standard macros
|
||||
* Headers/gnustep/base/behavior.h: Removed unused macro
|
||||
CALL_METHOD_IN_CLASS()
|
||||
|
||||
2000-10-29 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* configure.in: Check for langinfo.
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
/*
|
||||
* Getting the method signature.
|
||||
*/
|
||||
- (NSMethodSignature*)methodSignature;
|
||||
- (NSMethodSignature*) methodSignature;
|
||||
|
||||
@end
|
||||
|
||||
|
@ -88,30 +88,5 @@
|
|||
@end
|
||||
#endif
|
||||
|
||||
/* -initWithTarget:selector:, a method used in the macros
|
||||
is come from the MethodInvocation behavior.
|
||||
So your gcc warns that NSInvocation doesn't have
|
||||
-initWithTarget:selector:.
|
||||
|
||||
e.g.
|
||||
NS_INVOCATION([NSObject class] ,
|
||||
isKindOfClass:,
|
||||
[NSObject class]);
|
||||
|
||||
NS_MESSAGE([NSObject new] ,
|
||||
isKindOfClass:, [NSObject class]);
|
||||
|
||||
NS_MESSAGE([NSObject new] , hash) */
|
||||
|
||||
#define NS_INVOCATION(ACLASS, SELECTOR, ARGS...)\
|
||||
([[[NSInvocation alloc]\
|
||||
initWithTarget:nil selector: (@selector(SELECTOR)) , ## ARGS]\
|
||||
autorelease])
|
||||
|
||||
#define NS_MESSAGE(ANOBJECT, SELECTOR, ARGS...)\
|
||||
([[[NSInvocation alloc]\
|
||||
initWithTarget:(ANOBJECT) selector: (@selector(SELECTOR)) , ## ARGS]\
|
||||
autorelease])
|
||||
|
||||
#endif /* __NSInvocation_h_GNUSTEP_BASE_INCLUDE */
|
||||
|
||||
|
|
|
@ -53,14 +53,6 @@ void behavior_class_add_methods (Class class,
|
|||
/* The old deprecated interface */
|
||||
void class_add_behavior (Class class, Class behavior);
|
||||
|
||||
/* This macro may go away in future.
|
||||
Use it carefully, you can really screw yourself up by sending to
|
||||
a CLASS with a different instance variable layout than "self". */
|
||||
|
||||
#define CALL_METHOD_IN_CLASS(CLASS, METHOD, ARGS...) \
|
||||
((*(get_imp([CLASS class], @selector(METHOD)))) \
|
||||
(self, @selector(METHOD), ## ARGS))
|
||||
|
||||
/* Set to non-zero if you want debugging messages on stderr. */
|
||||
void set_behavior_debug(int i);
|
||||
|
||||
|
|
Loading…
Reference in a new issue