summaryrefslogtreecommitdiff
path: root/load.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-02-24 02:52:08 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-02-24 02:52:08 +0000
commit37e11f3cce5dc533379117d216c09120b6546c26 (patch)
treed7bd385b2c33db30d80e573f9a370a2f4521e812 /load.c
parent9afa9ba9673370d98d433ba24c06282ca8f1e5e8 (diff)
* dln.c (translit_separator): moved back from load.c again.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'load.c')
-rw-r--r--load.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/load.c b/load.c
index 90d22d80ba..7551b6b629 100644
--- a/load.c
+++ b/load.c
@@ -536,17 +536,8 @@ load_failed(VALUE fname)
static VALUE
load_ext(VALUE path)
{
- VALUE result;
-
SCOPE_SET(NOEX_PUBLIC);
-#if defined DLN_NEEDS_ALT_SEPARATOR && DLN_NEEDS_ALT_SEPARATOR
- translit_char(RSTRING_PTR(path), '/', '\\');
-#endif
- result = (VALUE)dln_load(RSTRING_PTR(path));
-#if defined DLN_NEEDS_ALT_SEPARATOR && DLN_NEEDS_ALT_SEPARATOR
- translit_char(RSTRING_PTR(path), '\\', '/');
-#endif
- return result;
+ return (VALUE)dln_load(RSTRING_PTR(path));
}
VALUE