Additional darwing fixes, added more function defs

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@10480 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2001-07-15 03:51:11 +00:00
parent 12cc53c280
commit 23088ba48e
6 changed files with 25 additions and 2 deletions

View file

@ -1,3 +1,13 @@
2001-07-14 Adam Fedor <fedor@gnu.org>
* Headers/gnustep/base/objc-gnu2next.h: More function defs.
* Headers/gnustep/base/objc-load.h (objc_get_symbol_path): Correct
def to match function decl.
* Source/NSDistantObject.m (-selectorTypeForProxy:): Declare
variable in NeXT implementation.
* Source/NSInvocation.m (-invokeWithTarget:): Special def for NeXT.
* Source/thr-pthread.m: Add forward decl of __objc_thread_detach.
2001-07-12 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSAttributedString.m: ([addAttributes:range:]) corrected

View file

@ -70,6 +70,8 @@ typedef struct objc_super Super;
(((struct objc_class*)(OBJECT))->isa)
#define class_get_super_class(CLASSPOINTER) \
(((struct objc_class*)(CLASSPOINTER))->super_class)
#define object_get_class_name(OBJECT) \
(((struct objc_class*)(object_get_class(OBJECT)))->name)
#define __objc_responds_to(OBJECT,SEL) \
class_getInstanceMethod(object_get_class(OBJECT), SEL)
@ -79,6 +81,8 @@ typedef struct objc_super Super;
((((struct objc_class*)(CLASSPOINTER))->info) & CLS_META)
#define objc_msg_lookup(OBJ,SEL) \
(class_getInstanceMethod(object_get_class(OBJ), SEL)->method_imp)
#define objc_msg_lookup_super(OBJ,SEL) \
(class_getInstanceMethod(object_get_class(OBJ), SEL)->method_imp)
#define OBJC_READONLY 1

View file

@ -42,6 +42,6 @@ extern long objc_unload_modules(
extern NSString *objc_get_symbol_path(
Class theClass,
Category *theCategory);
struct objc_category *theCategory);
#endif /* __objc_load_h_INCLUDE */

View file

@ -900,7 +900,8 @@ static inline BOOL class_is_kind_of (Class self, Class aClassObject)
#if NeXT_RUNTIME
/* This isn't what we want, unless the remote machine has
the same architecture as us. */
t = [_connection typeForSelector:selector remoteTarget:target];
const char *t;
t = [_connection typeForSelector: selector remoteTarget: _handle];
return t;
#else /* NeXT_runtime */
return sel_get_type (selector);

View file

@ -441,7 +441,11 @@ _arg_addr(NSInvocation *inv, int index)
{
Super s;
#ifndef NeXT_RUNTIME
s.self = _target;
#else
s.receiver = _target;
#endif
if (GSObjCIsInstance(_target))
s.class = class_get_super_class(GSObjCClass(_target));
else

View file

@ -26,6 +26,7 @@ Boston, MA 02111-1307, USA. */
covered by the GNU General Public License. */
#include <pthread.h>
#include <stdarg.h>
#include <base/objc-gnu2next.h>
#include <base/thr-mach.h>
@ -86,6 +87,9 @@ struct __objc_thread_start_state
id argument;
};
objc_thread_t
__objc_thread_detach(void (*func)(void *arg), void *arg);
static volatile void
__objc_thread_detach_function(struct __objc_thread_start_state *istate)
{