mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Libffi support
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13506 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e53ab6db84
commit
377fd7db34
18 changed files with 1525 additions and 748 deletions
|
@ -36,7 +36,7 @@
|
|||
#
|
||||
|
||||
# Additional flags to pass to the preprocessor
|
||||
ADDITIONAL_CPPFLAGS =
|
||||
ADDITIONAL_CPPFLAGS =
|
||||
|
||||
# Additional flags to pass to the Objective-C compiler
|
||||
ADDITIONAL_OBJCFLAGS = -g
|
||||
|
@ -54,7 +54,6 @@ ADDITIONAL_LDFLAGS =
|
|||
# Additional library directories the linker should search
|
||||
ADDITIONAL_LIB_DIRS = -L../Source/$(GNUSTEP_OBJ_DIR)
|
||||
|
||||
|
||||
ifeq ($(GNUSTEP_TARGET_OS),mingw32)
|
||||
BUNDLE_LIBS += -lgnustep-base -lobjc
|
||||
endif
|
||||
|
|
|
@ -164,6 +164,8 @@ typedef struct {
|
|||
d = [NSArchiver archivedDataWithRootObject: i];
|
||||
i = [NSUnarchiver unarchiveObjectWithData: d];
|
||||
l = [[i methodSignature] methodReturnLength];
|
||||
if (l < sizeof(void *))
|
||||
l = sizeof(void *);
|
||||
b = (void *)objc_malloc(l);
|
||||
[i getReturnValue: b];
|
||||
[inv setReturnValue: b];
|
||||
|
@ -194,8 +196,10 @@ main ()
|
|||
id p;
|
||||
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
||||
|
||||
printf("Starting\n");
|
||||
t = [Target new];
|
||||
p = [[MyProxy alloc] initWithTarget: t];
|
||||
printf("Calling proxy\n");
|
||||
[p loopInt: 1];
|
||||
|
||||
#define SETUP(X) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue