From 043b4fcd4dd70b70f0e61109cca22d436935d76c Mon Sep 17 00:00:00 2001 From: tzmfreedom Date: Wed, 21 Mar 2018 11:39:38 +0900 Subject: [PATCH] Rename context initializer function name to prevent conflict from other gem --- ext/byebug/byebug.c | 2 +- ext/byebug/byebug.h | 2 +- ext/byebug/context.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/byebug/byebug.c b/ext/byebug/byebug.c index d24a81e35..68735bd65 100644 --- a/ext/byebug/byebug.c +++ b/ext/byebug/byebug.c @@ -891,7 +891,7 @@ Init_byebug() rb_define_module_function(mByebug, "verbose=", Set_verbose, 1); Init_threads_table(mByebug); - Init_context(mByebug); + Init_byebug_context(mByebug); Init_breakpoint(mByebug); rb_global_variable(&breakpoints); diff --git a/ext/byebug/byebug.h b/ext/byebug/byebug.h index 9b01598dd..a771b620c 100644 --- a/ext/byebug/byebug.h +++ b/ext/byebug/byebug.h @@ -124,7 +124,7 @@ extern VALUE threads; extern VALUE next_thread; /* functions from context.c */ -extern void Init_context(VALUE mByebug); +extern void Init_byebug_context(VALUE mByebug); extern VALUE byebug_context_create(VALUE thread); extern VALUE context_dup(debug_context_t *context); extern void reset_stepping_stop_points(debug_context_t *context); diff --git a/ext/byebug/context.c b/ext/byebug/context.c index a4fecc642..4bb5281e2 100644 --- a/ext/byebug/context.c +++ b/ext/byebug/context.c @@ -642,7 +642,7 @@ dt_inherited(VALUE klass) * Byebug keeps a single instance of this class per thread. */ void -Init_context(VALUE mByebug) +Init_byebug_context(VALUE mByebug) { cContext = rb_define_class_under(mByebug, "Context", rb_cObject);