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
fe19ac2b
Commit
fe19ac2b
authored
Jan 06, 2014
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small cosmetic variable renaming
parent
07e8f800
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
src/backtrace.c
src/backtrace.c
+7
-7
No files found.
src/backtrace.c
View file @
fe19ac2b
...
...
@@ -62,7 +62,7 @@ mrb_output_backtrace(mrb_state *mrb, struct RObject *exc, output_stream_func fun
mrb_callinfo
*
ci
;
mrb_int
ciidx
;
const
char
*
filename
,
*
method
,
*
sep
;
int
i
,
line
;
int
i
,
line
no
;
func
(
mrb
,
stream
,
1
,
"trace:
\n
"
);
ciidx
=
mrb_fixnum
(
mrb_obj_iv_get
(
mrb
,
exc
,
mrb_intern_lit
(
mrb
,
"ciidx"
)));
...
...
@@ -72,7 +72,7 @@ mrb_output_backtrace(mrb_state *mrb, struct RObject *exc, output_stream_func fun
for
(
i
=
ciidx
;
i
>=
0
;
i
--
)
{
ci
=
&
mrb
->
c
->
cibase
[
i
];
filename
=
NULL
;
line
=
-
1
;
line
no
=
-
1
;
if
(
MRB_PROC_CFUNC_P
(
ci
->
proc
))
{
continue
;
...
...
@@ -91,9 +91,9 @@ mrb_output_backtrace(mrb_state *mrb, struct RObject *exc, output_stream_func fun
pc
=
(
mrb_code
*
)
mrb_cptr
(
mrb_obj_iv_get
(
mrb
,
exc
,
mrb_intern_lit
(
mrb
,
"lastpc"
)));
}
filename
=
mrb_debug_get_filename
(
irep
,
pc
-
irep
->
iseq
);
line
=
mrb_debug_get_line
(
irep
,
pc
-
irep
->
iseq
);
line
no
=
mrb_debug_get_line
(
irep
,
pc
-
irep
->
iseq
);
}
if
(
line
==
-
1
)
continue
;
if
(
line
no
==
-
1
)
continue
;
if
(
ci
->
target_class
==
ci
->
proc
->
target_class
)
sep
=
"."
;
else
...
...
@@ -109,18 +109,18 @@ mrb_output_backtrace(mrb_state *mrb, struct RObject *exc, output_stream_func fun
if
(
cn
)
{
func
(
mrb
,
stream
,
1
,
"
\t
[%d] "
,
i
);
func
(
mrb
,
stream
,
0
,
"%s:%d:in %s%s%s"
,
filename
,
line
,
cn
,
sep
,
method
);
func
(
mrb
,
stream
,
0
,
"%s:%d:in %s%s%s"
,
filename
,
line
no
,
cn
,
sep
,
method
);
func
(
mrb
,
stream
,
1
,
"
\n
"
);
}
else
{
func
(
mrb
,
stream
,
1
,
"
\t
[%d] "
,
i
);
func
(
mrb
,
stream
,
0
,
"%s:%d:in %s"
,
filename
,
line
,
method
);
func
(
mrb
,
stream
,
0
,
"%s:%d:in %s"
,
filename
,
line
no
,
method
);
func
(
mrb
,
stream
,
1
,
"
\n
"
);
}
}
else
{
func
(
mrb
,
stream
,
1
,
"
\t
[%d] "
,
i
);
func
(
mrb
,
stream
,
0
,
"%s:%d"
,
filename
,
line
);
func
(
mrb
,
stream
,
0
,
"%s:%d"
,
filename
,
line
no
);
func
(
mrb
,
stream
,
1
,
"
\n
"
);
}
}
...
...
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