summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-09-09 23:21:06 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-09-11 08:41:32 +0900
commitcd829bb078e6a3486d9b5ea57fc5111d289c1860 (patch)
treef1c903880d0ed454250f95d95a6e6d765a899796 /string.c
parent967b9743faac0b55a3d8deb176a08fdff449bba8 (diff)
Remove printf family from the mjit header
Linking printf family functions makes mjit objects to link unnecessary code.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4820
Diffstat (limited to 'string.c')
-rw-r--r--string.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/string.c b/string.c
index cbec890313..a0cf94ca9f 100644
--- a/string.c
+++ b/string.c
@@ -223,6 +223,16 @@ rb_str_make_independent(VALUE str)
}
}
+void
+rb_debug_rstring_null_ptr(const char *func)
+{
+ fprintf(stderr, "%s is returning NULL!! "
+ "SIGSEGV is highly expected to follow immediately. "
+ "If you could reproduce, attach your debugger here, "
+ "and look at the passed string.",
+ func);
+}
+
/* symbols for [up|down|swap]case/capitalize options */
static VALUE sym_ascii, sym_turkic, sym_lithuanian, sym_fold;