diff options
author | Xavier Noria <fxn@hashref.com> | 2024-01-09 20:04:20 +0100 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2024-01-12 12:24:48 -0800 |
commit | aad246feba1579cc3c34f8309845692e2f11babd (patch) | |
tree | 884c0bc4d8969336a5961fe3688bd1085709ad79 /process.c | |
parent | 774eef692cc9708b22959ef57b8472a375772189 (diff) |
s/SafeStringValue/StringValue/
The macro SafeStringValue() became just StringValue() in c5c05460ac2,
and it is deprecated nowadays.
This patch replaces remaining macro usage. Some occurrences are left in
ext/stringio and ext/win32ole, they should be fixed upstream.
The macro itself is not deleted, because it may be used in extensions.
Diffstat (limited to 'process.c')
-rw-r--r-- | process.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2482,12 +2482,12 @@ rb_check_argv(int argc, VALUE *argv) } prog = RARRAY_AREF(tmp, 0); argv[0] = RARRAY_AREF(tmp, 1); - SafeStringValue(prog); + StringValue(prog); StringValueCStr(prog); prog = rb_str_new_frozen(prog); } for (i = 0; i < argc; i++) { - SafeStringValue(argv[i]); + StringValue(argv[i]); argv[i] = rb_str_new_frozen(argv[i]); StringValueCStr(argv[i]); } |