summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2024-01-09 20:04:20 +0100
committerAaron Patterson <aaron.patterson@gmail.com>2024-01-12 12:24:48 -0800
commitaad246feba1579cc3c34f8309845692e2f11babd (patch)
tree884c0bc4d8969336a5961fe3688bd1085709ad79 /internal
parent774eef692cc9708b22959ef57b8472a375772189 (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 'internal')
-rw-r--r--internal/imemo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/imemo.h b/internal/imemo.h
index 65335285ab..22dc457194 100644
--- a/internal/imemo.h
+++ b/internal/imemo.h
@@ -213,7 +213,7 @@ rb_imemo_tmpbuf_auto_free_pointer_new_from_an_RString(VALUE str)
void *dst;
size_t len;
- SafeStringValue(str);
+ StringValue(str);
/* create tmpbuf to keep the pointer before xmalloc */
imemo = rb_imemo_tmpbuf_auto_free_pointer();
tmpbuf = (rb_imemo_tmpbuf_t *)imemo;