diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-17 22:08:49 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-17 22:08:49 +0000 |
commit | a3dca0f59495d8a26aa503ff3d52ba249a6aa65c (patch) | |
tree | 9e935ead0da391f34162bfe1813d5edbb11feb5d /test/socket/test_nonblock.rb | |
parent | f2feaafe0cb35c83dd2bf8c73ad9da20ddc426b8 (diff) |
signal.c (trap_handler): cleanup to use RSTRING_GETMEM + memcmp
strncmp is unnecessary since the switch/case statement already
checks length of the string; so use memcmp.
This makes for a small reduction in binary size on 32-bit x86:
text data bss dec hex filename
2847473 12360 30632 2890465 2c1ae1 ruby.before
2847313 12328 30632 2890273 2c1a21 ruby.after
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/socket/test_nonblock.rb')
0 files changed, 0 insertions, 0 deletions