diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-23 00:49:26 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-23 00:49:26 +0000 |
commit | 5bbca2bdde5dad0e4e565db37aa89c877c75edc8 (patch) | |
tree | 822306417b67e66aa27d1e2efacb600fcd0fcb6c /thread_pthread.h | |
parent | ebcf79d988f7504c580f0b12f3d026115956be4f (diff) | |
download | ruby-5bbca2bdde5dad0e4e565db37aa89c877c75edc8.tar.gz |
dir.c (check_dirname): avoid volatile, use return value
volatile is unnecessary since we use rb_sys_fail_path nowadays
and that prevents the path argument from being GC-ed.
Using a return value instead of modifying the argument directly
simplifies the generated code (on 32-bit x86):
text data bss dec hex filename
20744 40 20 20804 5144 dir.o-orig
20720 40 20 20780 512c dir.o
* dir.c (check_dirname): avoid volatile, use return value
(dir_s_chroot, dir_s_mkdir, dir_s_rmdir): adjust callers
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.h')
0 files changed, 0 insertions, 0 deletions