From d3566c93796b99da181eaea7859cbd573c1d1f8e Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 19 Feb 2009 06:11:41 +0000 Subject: * 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: http://svn.ruby-lang.org/repos/ruby/trunk@22437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- dln.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'dln.c') diff --git a/dln.c b/dln.c index e9d0bb150..752167862 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(); -- cgit