ext/byebug/byebug.h in byebug-1.0.3 vs ext/byebug/byebug.h in byebug-1.1.0
- old
+ new
@@ -22,12 +22,10 @@
/* macro functions */
#define CTX_FL_TEST(c,f) ((c)->flags & (f))
#define CTX_FL_SET(c,f) do { (c)->flags |= (f); } while (0)
#define CTX_FL_UNSET(c,f) do { (c)->flags &= ~(f); } while (0)
-#define IS_THREAD_ALIVE(t) (rb_funcall((t), idAlive, 0) == Qtrue)
-
/* types */
typedef enum {
CTX_STOP_NONE,
CTX_STOP_STEP,
CTX_STOP_BREAKPOINT,
@@ -62,23 +60,23 @@
int last_line;
} debug_context_t;
/* functions */
extern VALUE Init_context(VALUE mByebug);
-extern VALUE context_create(VALUE thread, VALUE cDebugThread);
+extern VALUE Context_create(VALUE thread, VALUE cDebugThread);
+extern VALUE Context_dup(debug_context_t *context);
extern void reset_stepping_stop_points(debug_context_t *context);
extern VALUE Context_ignored(VALUE self);
-extern void push_frame(VALUE context_object, char* file, int lineno,
+extern void push_frame(debug_context_t *context, char* file, int lineno,
VALUE method_id, VALUE defined_class, VALUE binding,
VALUE self);
-extern void pop_frame(VALUE context_object);
+extern void pop_frame(debug_context_t *context);
-extern void update_frame(VALUE context_object, char* file, int lineno,
+extern void update_frame(debug_frame_t *context, char* file, int lineno,
VALUE method_id, VALUE defined_class, VALUE binding,
VALUE self);
-
/* locked threads container */
typedef struct locked_thread_t {
VALUE thread;
struct locked_thread_t *next;