mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Simple reverse mappings added.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@16112 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
58629e4f18
commit
b3b6911ff7
3 changed files with 45 additions and 7 deletions
|
@ -1,3 +1,8 @@
|
|||
2003-03-03 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Headers/gnustep/base/objc-gnu2next.h: Added some trivial reverse
|
||||
mappings to use gnu runtime from old next code.
|
||||
|
||||
2003-03-02 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Headers/gnustep/base/GSObjCRuntime.h:
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
/* Definitions to allow compilation of GNU objc code with NeXT runtime
|
||||
Copyright (C) 1993,1994, 1996 Free Software Foundation, Inc.
|
||||
and the reverse.
|
||||
|
||||
Copyright (C) 1993,1994,1996,2003 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>
|
||||
Date: May 1993
|
||||
|
@ -235,6 +237,35 @@ objc_error_handler objc_set_error_handler(objc_error_handler func);
|
|||
#define OBJC_ERR_UNIMPLEMENTED 30 /* Method is not implemented */
|
||||
|
||||
#define OBJC_ERR_BAD_STATE 40 /* Bad thread state */
|
||||
|
||||
#else /* NeXT_RUNTIME */
|
||||
|
||||
/*
|
||||
* And to use the GNU runtime from old NeXT code ...
|
||||
*/
|
||||
#define class_createInstance(CLASS, X) class_create_instance(CLASS)
|
||||
#define class_getInstanceMethod class_get_instance_method
|
||||
#define class_getClassMethod class_get_class_method
|
||||
#define class_addMethods class_add_method_list
|
||||
#define class_setVersion class_set_version
|
||||
#define class_getVersion class_get_version
|
||||
#define class_poseAs class_pose_as
|
||||
#define method_getSizeOfArguments method_get_sizeof_arguments
|
||||
#define objc_lookUpClass objc_lookup_class
|
||||
#define objc_getClass objc_get_class
|
||||
|
||||
#define sel_registerName sel_register_name
|
||||
#define sel_isMapped sel_is_mapped
|
||||
#define sel_getName sel_get_name
|
||||
#define sel_getUid sel_get_any_uid
|
||||
|
||||
#define class_nextMethodList(aClass,anIterator) ({\
|
||||
if (*(anIterator) == 0) \
|
||||
*((struct objc_method_list**)(anIterator)) = (aClass)->methods; \
|
||||
else \
|
||||
*(anIterator) = (*((struct objc_method_list**)(anIterator)))->method_next; \
|
||||
})
|
||||
|
||||
#endif /* NeXT_RUNTIME */
|
||||
|
||||
#endif /* __objc_gnu2next_h_GNUSTEP_BASE_INCLUDE */
|
||||
|
|
|
@ -109,19 +109,21 @@ win32-entry.m \
|
|||
win32-def.top \
|
||||
libgnustep-base.def
|
||||
|
||||
GNU_HEADERS = \
|
||||
DistributedObjects.h \
|
||||
ADD_HEADERS = \
|
||||
GCObject.h \
|
||||
GSCategories.h \
|
||||
GSObjCRuntime.h \
|
||||
Unicode.h \
|
||||
behavior.h \
|
||||
objc-gnu2next.h
|
||||
|
||||
GNU_HEADERS = $(ADD_HEADERS) \
|
||||
DistributedObjects.h \
|
||||
GSFileHandle.h \
|
||||
GSLocale.h \
|
||||
GSObjCRuntime.h \
|
||||
GSUnion.h \
|
||||
GSIArray.h \
|
||||
GSIMap.h \
|
||||
Unicode.h \
|
||||
behavior.h \
|
||||
objc-gnu2next.h \
|
||||
preface.h
|
||||
|
||||
ifneq ($(OBJC_RUNTIME_LIB), gnu)
|
||||
|
|
Loading…
Reference in a new issue