summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorS-H-GAMELINKS <gamelinks007@gmail.com>2021-09-28 13:00:16 +0900
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2021-09-28 18:08:08 +1300
commit1e9a688cd55d825d8c77c74c62d4b642ef492659 (patch)
tree85980ec1f4e6da5567e3da0df782f5118981a537
parent2cf101436202c72278926a9d2593f9c26b8e83ce (diff)
Move some function declaration to internal/io.h
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4901
-rw-r--r--internal/io.h4
-rw-r--r--thread.c5
2 files changed, 4 insertions, 5 deletions
diff --git a/internal/io.h b/internal/io.h
index 1d2a866b6e..b5f15499d7 100644
--- a/internal/io.h
+++ b/internal/io.h
@@ -24,6 +24,10 @@ void rb_io_fptr_finalize_internal(void *ptr);
#define rb_io_fptr_finalize rb_io_fptr_finalize_internal
VALUE rb_io_popen(VALUE pname, VALUE pmode, VALUE env, VALUE opt);
+VALUE rb_io_prep_stdin(void);
+VALUE rb_io_prep_stdout(void);
+VALUE rb_io_prep_stderr(void);
+
RUBY_SYMBOL_EXPORT_BEGIN
/* io.c (export) */
void rb_maygvl_fd_fix_cloexec(int fd);
diff --git a/thread.c b/thread.c
index 9008467206..9357d14b8a 100644
--- a/thread.c
+++ b/thread.c
@@ -778,11 +778,6 @@ thread_do_start(rb_thread_t *th)
void rb_ec_clear_current_thread_trace_func(const rb_execution_context_t *ec);
-// io.c
-VALUE rb_io_prep_stdin(void);
-VALUE rb_io_prep_stdout(void);
-VALUE rb_io_prep_stderr(void);
-
static int
thread_start_func_2(rb_thread_t *th, VALUE *stack_start)
{