Skip to content

Commit

Permalink
Rename context initializer function name to prevent conflict from other
Browse files Browse the repository at this point in the history
gem
  • Loading branch information
tzmfreedom committed Mar 21, 2018
1 parent 0fdaa8a commit 043b4fc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ext/byebug/byebug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion ext/byebug/byebug.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion ext/byebug/context.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 043b4fc

Please sign in to comment.