diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-19 06:11:41 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-19 06:11:41 +0000 |
| commit | d3566c93796b99da181eaea7859cbd573c1d1f8e (patch) | |
| tree | 0a81f4109473d2c5746f12c65c9287ef06b5b1e0 /load.c | |
| parent | 617abc091ea08c03e1f69277e6a1cb20f68c4513 (diff) | |
| download | ruby-d3566c93796b99da181eaea7859cbd573c1d1f8e.tar.gz ruby-d3566c93796b99da181eaea7859cbd573c1d1f8e.tar.xz ruby-d3566c93796b99da181eaea7859cbd573c1d1f8e.zip | |
* 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
Diffstat (limited to 'load.c')
| -rw-r--r-- | load.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -529,8 +529,17 @@ load_failed(VALUE fname) static VALUE load_ext(VALUE path) { + VALUE result; + SCOPE_SET(NOEX_PUBLIC); - return (VALUE)dln_load(RSTRING_PTR(path)); +#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; } VALUE |
