summaryrefslogtreecommitdiff
path: root/dln.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-19 06:11:41 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-19 06:11:41 (GMT)
commitf35308b3ef20be1716660a751087b4e726db2171 (patch)
tree0a81f4109473d2c5746f12c65c9287ef06b5b1e0 /dln.c
parent6d3ceb6ce38f91898dfc388fc96f5401ff3edc52 (diff)
* eval_intern.h (translit_char): moved from ruby.c.
* load.c (load_ext): transliterates file separators and back if needed. * symbian/setup (DLN_NEEDS_ALT_SEPARATOR): defined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dln.c')
-rw-r--r--dln.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/dln.c b/dln.c
index e9d0bb1..7521678 100644
--- a/dln.c
+++ b/dln.c
@@ -1268,16 +1268,6 @@ dln_load(const char *file)
# define RTLD_GLOBAL 0
#endif
-#if defined __SYMBIAN32__
- { /* Need backslash in the path again */
- char *p;
- for (p = (char *)file; *p; p++) {
- if (*p == '/') {
- *p = '\\';
- }
- }
- }
-#endif
/* Load file */
if ((handle = (void*)dlopen(file, RTLD_LAZY|RTLD_GLOBAL)) == NULL) {
error = dln_strerror();
@@ -1286,8 +1276,9 @@ dln_load(const char *file)
init_fct = (void(*)())dlsym(handle, buf);
#if defined __SYMBIAN32__
- if (init_fct == NULL)
- init_fct = (void(*)())dlsym(handle, "1"); /* Some Symbian versions do not support symbol table in DLL, ordinal numbers only */
+ if (init_fct == NULL) {
+ init_fct = (void(*)())dlsym(handle, "1"); /* Some Symbian versions do not support symbol table in DLL, ordinal numbers only */
+ }
#endif
if (init_fct == NULL) {
error = DLN_ERROR();