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
3fa19357
Commit
3fa19357
authored
May 21, 2014
by
take_cheeze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce children filenames listing.
It is executed per each debug filenames in irep to same ireps(children).
parent
87eec261
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
src/dump.c
src/dump.c
+7
-9
No files found.
src/dump.c
View file @
3fa19357
...
@@ -514,17 +514,15 @@ static size_t
...
@@ -514,17 +514,15 @@ static size_t
get_filename_table_size
(
mrb_state
*
mrb
,
mrb_irep
*
irep
,
mrb_sym
**
fp
,
uint16_t
*
lp
)
get_filename_table_size
(
mrb_state
*
mrb
,
mrb_irep
*
irep
,
mrb_sym
**
fp
,
uint16_t
*
lp
)
{
{
mrb_sym
*
filenames
=
*
fp
;
mrb_sym
*
filenames
=
*
fp
;
uint32_t
file_i
;
size_t
i
,
size
=
0
;
size_t
size
=
0
;
mrb_irep_debug_info
*
di
=
irep
->
debug_info
;
mrb_irep_debug_info
*
di
=
irep
->
debug_info
;
mrb_assert
(
lp
);
mrb_assert
(
lp
);
for
(
file_i
=
0
;
file_i
<
di
->
flen
;
++
file_
i
)
{
for
(
i
=
0
;
i
<
di
->
flen
;
++
i
)
{
mrb_irep_debug_info_file
*
file
;
mrb_irep_debug_info_file
*
file
;
mrb_int
filename_len
;
mrb_int
filename_len
;
size_t
i
;
file
=
di
->
files
[
file_
i
];
file
=
di
->
files
[
i
];
if
(
find_filename_index
(
filenames
,
*
lp
,
file
->
filename_sym
)
==
-
1
)
{
if
(
find_filename_index
(
filenames
,
*
lp
,
file
->
filename_sym
)
==
-
1
)
{
/* register filename */
/* register filename */
*
lp
+=
1
;
*
lp
+=
1
;
...
@@ -535,10 +533,10 @@ get_filename_table_size(mrb_state *mrb, mrb_irep *irep, mrb_sym **fp, uint16_t *
...
@@ -535,10 +533,10 @@ get_filename_table_size(mrb_state *mrb, mrb_irep *irep, mrb_sym **fp, uint16_t *
mrb_sym2name_len
(
mrb
,
file
->
filename_sym
,
&
filename_len
);
mrb_sym2name_len
(
mrb
,
file
->
filename_sym
,
&
filename_len
);
size
+=
sizeof
(
uint16_t
)
+
(
size_t
)
filename_len
;
size
+=
sizeof
(
uint16_t
)
+
(
size_t
)
filename_len
;
}
}
for
(
i
=
0
;
i
<
irep
->
rlen
;
i
++
)
{
}
size
+=
get_filename_table_size
(
mrb
,
irep
->
reps
[
i
],
fp
,
lp
);
for
(
i
=
0
;
i
<
irep
->
rlen
;
i
++
)
{
filenames
=
*
fp
;
size
+=
get_filename_table_size
(
mrb
,
irep
->
reps
[
i
],
fp
,
lp
)
;
}
filenames
=
*
fp
;
}
}
return
size
;
return
size
;
}
}
...
...
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