mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
revert last change ... need to modify runtime instead
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29708 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8b13638be9
commit
01e196ea33
3 changed files with 16 additions and 21 deletions
|
@ -1,7 +1,3 @@
|
|||
2010-02-23 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/ObjectiveC2/runtime.c: fix to build with old gnustep runtime.
|
||||
|
||||
2010-02-23 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSNumber.m: Autorelease the values returned by the
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
#define objc_super gnu_objc_super
|
||||
#define objc_msg_lookup gnu_objc_msg_lookup
|
||||
#define objc_msg_lookup_super gnu_objc_msg_lookup_super
|
||||
typedef unsigned char GNU_BOOL;
|
||||
#define BOOL GNU_BOOL
|
||||
#define SEL GNU_SEL
|
||||
#define Protocol GNU_Protocol
|
||||
|
|
|
@ -44,30 +44,30 @@ typedef struct objc_class *Class;
|
|||
|
||||
typedef struct objc_object
|
||||
{
|
||||
Class isa;
|
||||
Class isa;
|
||||
} *id;
|
||||
|
||||
struct objc_super {
|
||||
id receiver;
|
||||
# if !defined(__cplusplus) && !__OBJC2__
|
||||
Class class;
|
||||
# else
|
||||
Class super_class;
|
||||
# endif
|
||||
id receiver;
|
||||
# if !defined(__cplusplus) && !__OBJC2__
|
||||
Class class;
|
||||
# else
|
||||
Class super_class;
|
||||
# endif
|
||||
};
|
||||
|
||||
typedef id (*IMP)(id, SEL, ...);
|
||||
typedef struct objc_method *Method;
|
||||
|
||||
# ifdef STRICT_APPLE_COMPATIBILITY
|
||||
# ifdef STRICT_APPLE_COMPATIBILITY
|
||||
typedef signed char BOOL;
|
||||
# else
|
||||
# ifdef __vxwords
|
||||
# else
|
||||
# ifdef __vxwords
|
||||
typedef int BOOL
|
||||
# else
|
||||
# else
|
||||
typedef unsigned char BOOL;
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
|
||||
#else
|
||||
// Method in the GNU runtime is a struct, Method_t is the pointer
|
||||
|
@ -239,7 +239,7 @@ BOOL protocol_conformsToProtocol(Protocol *p, Protocol *other);
|
|||
|
||||
OBJC_GNU_RUNTIME_UNSUPPORTED("Protocol introspection")
|
||||
struct objc_method_description *protocol_copyMethodDescriptionList(Protocol *p,
|
||||
BOOL isRequiredMethod, BOOL isInstanceMethod, unsigned int *count);
|
||||
BOOL isRequiredMethod, BOOL isInstanceMethod, unsigned int *count);
|
||||
|
||||
OBJC_GNU_RUNTIME_UNSUPPORTED("Protocol introspection")
|
||||
objc_property_t *protocol_copyPropertyList(Protocol *p, unsigned int *count);
|
||||
|
@ -249,13 +249,13 @@ Protocol **protocol_copyProtocolList(Protocol *p, unsigned int *count);
|
|||
|
||||
OBJC_GNU_RUNTIME_UNSUPPORTED("Protocol introspection")
|
||||
struct objc_method_description protocol_getMethodDescription(Protocol *p,
|
||||
SEL aSel, BOOL isRequiredMethod, BOOL isInstanceMethod);
|
||||
SEL aSel, BOOL isRequiredMethod, BOOL isInstanceMethod);
|
||||
|
||||
const char *protocol_getName(Protocol *p);
|
||||
|
||||
OBJC_GNU_RUNTIME_UNSUPPORTED("Protocol introspection")
|
||||
objc_property_t protocol_getProperty(Protocol *p, const char *name,
|
||||
BOOL isRequiredProperty, BOOL isInstanceProperty);
|
||||
BOOL isRequiredProperty, BOOL isInstanceProperty);
|
||||
|
||||
BOOL protocol_isEqual(Protocol *p, Protocol *other);
|
||||
|
||||
|
|
Loading…
Reference in a new issue