pike.git/
src/
dynamic_load.c
Branch:
Tag:
Non-build tags
All tags
No tags
2003-12-10
2003-12-10 12:26:40 by Henrik Grubbström (Grubba) <grubba@grubba.org>
38ee579501815dca715465caf6fdac8a981043cf (
8
lines) (+
5
/-
3
)
[
Show
|
Annotate
]
Branch:
7.4
Fixed DYLD (MAcOS X) case.
Rev: src/dynamic_load.c:1.68
2:
|| This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information.
-
|| $Id: dynamic_load.c,v 1.
67
2002
/
10
/
30
14
:
45
:
50
grubba Exp $
+
|| $Id: dynamic_load.c,v 1.
68
2003
/
12/
10
12
:
26
:
40
grubba Exp $
*/ #ifdef TESTING
24:
# include "language.h" # include "lex.h"
-
RCSID("$Id: dynamic_load.c,v 1.
67
2002
/
10
/
30
14
:
45
:
50
grubba Exp $");
+
RCSID("$Id: dynamic_load.c,v 1.
68
2003
/
12/
10
12
:
26
:
40
grubba Exp $");
#else /* TESTING */
271:
static void *dlsym(void *module, char *function) {
-
return
NSLookupSymbolInModule(module, function);
+
NSSymbol
*symbol =
NSLookupSymbolInModule(module, function);
+
return symbol?NSAddressOfSymbol(symbol):NULL;
} static void *dlclose(void *module)