[前][次][番号順一覧][スレッド一覧]

ruby-changes:66748

From: S-H-GAMELINKS <ko1@a...>
Date: Sun, 11 Jul 2021 18:26:43 +0900 (JST)
Subject: [ruby-changes:66748] b32ae9898f (master): Move rb_str_escape function declaration

https://git.ruby-lang.org/ruby.git/commit/?id=b32ae9898f

From b32ae9898f0311a3755a361bc0bdcbb38f143deb Mon Sep 17 00:00:00 2001
From: S-H-GAMELINKS <gamelinks007@g...>
Date: Sun, 27 Jun 2021 17:11:24 +0900
Subject: Move rb_str_escape function declaration

---
 internal/string.h | 1 +
 object.c          | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/internal/string.h b/internal/string.h
index 2921353..5062de4 100644
--- a/internal/string.h
+++ b/internal/string.h
@@ -38,6 +38,7 @@ VALUE rb_external_str_with_enc(VALUE str, rb_encoding *eenc); https://github.com/ruby/ruby/blob/trunk/internal/string.h#L38
 VALUE rb_str_cat_conv_enc_opts(VALUE newstr, long ofs, const char *ptr, long len,
                                rb_encoding *from, int ecflags, VALUE ecopts);
 VALUE rb_enc_str_scrub(rb_encoding *enc, VALUE str, VALUE repl);
+VALUE rb_str_escape(VALUE str);
 size_t rb_str_memsize(VALUE);
 char *rb_str_to_cstr(VALUE str);
 const char *ruby_escaped_char(int c);
diff --git a/object.c b/object.c
index 365c60f..695a11e 100644
--- a/object.c
+++ b/object.c
@@ -30,6 +30,7 @@ https://github.com/ruby/ruby/blob/trunk/object.c#L30
 #include "internal/numeric.h"
 #include "internal/object.h"
 #include "internal/struct.h"
+#include "internal/string.h"
 #include "internal/symbol.h"
 #include "internal/variable.h"
 #include "probes.h"
@@ -688,7 +689,6 @@ rb_any_to_s(VALUE obj) https://github.com/ruby/ruby/blob/trunk/object.c#L689
     return str;
 }
 
-VALUE rb_str_escape(VALUE str);
 /*!
  * Convenient wrapper of \c Object#inspect.
  * Returns a human-readable string representation of \a obj,
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]