diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-02-27 16:38:32 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-02-27 18:49:18 +0900 |
commit | db0a4c8923e0e084c7d757d132a83fc9c8431633 (patch) | |
tree | 1ea1f2e494962c6e8c024bd1a60719f305a40341 /win32 | |
parent | d063ed12afcb56d919863d6efb4bfa92741c1555 (diff) | |
download | ruby-db0a4c8923e0e084c7d757d132a83fc9c8431633.tar.gz |
Prefer to use File.foreach instead of IO.foreach
Diffstat (limited to 'win32')
-rwxr-xr-x | win32/mkexports.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/mkexports.rb b/win32/mkexports.rb index 40f055dee7..2889908942 100755 --- a/win32/mkexports.rb +++ b/win32/mkexports.rb @@ -49,7 +49,7 @@ class Exports end def read_substitution(header, syms, winapis) - IO.foreach(header) do |line| + File.foreach(header) do |line| if /^#define (\w+)\((.*?)\)\s+(?:\(void\))?(rb_w32_\w+)\((.*?)\)\s*$/ =~ line and $2.delete(" ") == $4.delete(" ") export, internal = $1, $3 |