Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
b9007244
Unverified
Commit
b9007244
authored
Sep 14, 2020
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add `const` before `struct mrb_irep` in `mruby-bin-debugger` gem.
parent
79325230
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c
mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c
+2
-2
mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c
mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c
+1
-1
mrbgems/mruby-bin-debugger/tools/mrdb/mrdb.c
mrbgems/mruby-bin-debugger/tools/mrdb/mrdb.c
+1
-1
mrbgems/mruby-bin-debugger/tools/mrdb/mrdb.h
mrbgems/mruby-bin-debugger/tools/mrdb/mrdb.h
+2
-2
No files found.
mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c
View file @
b9007244
...
@@ -84,7 +84,7 @@ free_breakpoint(mrb_state *mrb, mrb_debug_breakpoint *bp)
...
@@ -84,7 +84,7 @@ free_breakpoint(mrb_state *mrb, mrb_debug_breakpoint *bp)
}
}
static
uint16_t
static
uint16_t
check_file_lineno
(
mrb_state
*
mrb
,
struct
mrb_irep
*
irep
,
const
char
*
file
,
uint16_t
lineno
)
check_file_lineno
(
mrb_state
*
mrb
,
const
struct
mrb_irep
*
irep
,
const
char
*
file
,
uint16_t
lineno
)
{
{
mrb_irep_debug_info_file
*
info_file
;
mrb_irep_debug_info_file
*
info_file
;
uint16_t
result
=
0
;
uint16_t
result
=
0
;
...
@@ -428,7 +428,7 @@ mrb_debug_disable_break_all(mrb_state *mrb, mrb_debug_context *dbg)
...
@@ -428,7 +428,7 @@ mrb_debug_disable_break_all(mrb_state *mrb, mrb_debug_context *dbg)
}
}
static
mrb_bool
static
mrb_bool
check_start_pc_for_line
(
mrb_state
*
mrb
,
mrb_irep
*
irep
,
const
mrb_code
*
pc
,
uint16_t
line
)
check_start_pc_for_line
(
mrb_state
*
mrb
,
const
mrb_irep
*
irep
,
const
mrb_code
*
pc
,
uint16_t
line
)
{
{
if
(
pc
>
irep
->
iseq
)
{
if
(
pc
>
irep
->
iseq
)
{
if
(
line
==
mrb_debug_get_line
(
mrb
,
irep
,
pc
-
irep
->
iseq
-
1
))
{
if
(
line
==
mrb_debug_get_line
(
mrb
,
irep
,
pc
-
irep
->
iseq
-
1
))
{
...
...
mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c
View file @
b9007244
...
@@ -33,7 +33,7 @@ mrdb_check_syntax(mrb_state *mrb, mrb_debug_context *dbg, const char *expr, size
...
@@ -33,7 +33,7 @@ mrdb_check_syntax(mrb_state *mrb, mrb_debug_context *dbg, const char *expr, size
mrb_value
mrb_value
mrb_debug_eval
(
mrb_state
*
mrb
,
mrb_debug_context
*
dbg
,
const
char
*
expr
,
size_t
len
,
mrb_bool
*
exc
,
int
direct_eval
)
mrb_debug_eval
(
mrb_state
*
mrb
,
mrb_debug_context
*
dbg
,
const
char
*
expr
,
size_t
len
,
mrb_bool
*
exc
,
int
direct_eval
)
{
{
void
(
*
tmp
)(
struct
mrb_state
*
,
struct
mrb_irep
*
,
const
mrb_code
*
,
mrb_value
*
);
void
(
*
tmp
)(
struct
mrb_state
*
,
const
struct
mrb_irep
*
,
const
mrb_code
*
,
mrb_value
*
);
mrb_value
ruby_code
;
mrb_value
ruby_code
;
mrb_value
s
;
mrb_value
s
;
mrb_value
v
;
mrb_value
v
;
...
...
mrbgems/mruby-bin-debugger/tools/mrdb/mrdb.c
View file @
b9007244
...
@@ -504,7 +504,7 @@ get_and_parse_command(mrb_state *mrb, mrdb_state *mrdb)
...
@@ -504,7 +504,7 @@ get_and_parse_command(mrb_state *mrb, mrdb_state *mrdb)
}
}
static
int32_t
static
int32_t
check_method_breakpoint
(
mrb_state
*
mrb
,
mrb_irep
*
irep
,
const
mrb_code
*
pc
,
mrb_value
*
regs
)
check_method_breakpoint
(
mrb_state
*
mrb
,
const
mrb_irep
*
irep
,
const
mrb_code
*
pc
,
mrb_value
*
regs
)
{
{
struct
RClass
*
c
;
struct
RClass
*
c
;
mrb_sym
sym
;
mrb_sym
sym
;
...
...
mrbgems/mruby-bin-debugger/tools/mrdb/mrdb.h
View file @
b9007244
...
@@ -103,8 +103,8 @@ typedef struct mrb_debug_breakpoint {
...
@@ -103,8 +103,8 @@ typedef struct mrb_debug_breakpoint {
}
mrb_debug_breakpoint
;
}
mrb_debug_breakpoint
;
typedef
struct
mrb_debug_context
{
typedef
struct
mrb_debug_context
{
struct
mrb_irep
*
root_irep
;
const
struct
mrb_irep
*
root_irep
;
struct
mrb_irep
*
irep
;
const
struct
mrb_irep
*
irep
;
const
mrb_code
*
pc
;
const
mrb_code
*
pc
;
mrb_value
*
regs
;
mrb_value
*
regs
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment