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
f74d370c
Commit
f74d370c
authored
Jul 15, 2020
by
Rory O'Connell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mrb_ prefix convention
parent
38b07591
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
include/mruby/hash.h
include/mruby/hash.h
+1
-1
mrbgems/mruby-objectspace/src/mruby_objectspace.c
mrbgems/mruby-objectspace/src/mruby_objectspace.c
+1
-1
src/hash.c
src/hash.c
+1
-1
No files found.
include/mruby/hash.h
View file @
f74d370c
...
...
@@ -23,7 +23,7 @@ struct RHash {
#define mrb_hash_ptr(v) ((struct RHash*)(mrb_ptr(v)))
#define mrb_hash_value(p) mrb_obj_value((void*)(p))
mrb_int
os_memsize_of_hash_table
(
mrb_value
obj
);
mrb_int
mrb_
os_memsize_of_hash_table
(
mrb_value
obj
);
MRB_API
mrb_value
mrb_hash_new_capa
(
mrb_state
*
mrb
,
mrb_int
capa
);
MRB_API
mrb_value
mrb_ensure_hash_type
(
mrb_state
*
mrb
,
mrb_value
hash
);
MRB_API
mrb_value
mrb_check_hash_type
(
mrb_state
*
mrb
,
mrb_value
hash
);
...
...
mrbgems/mruby-objectspace/src/mruby_objectspace.c
View file @
f74d370c
...
...
@@ -270,7 +270,7 @@ os_memsize_of_object(mrb_state* mrb, mrb_value obj, mrb_value recurse, mrb_int*
}
case
MRB_TT_HASH
:
{
(
*
t
)
+=
mrb_objspace_page_slot_size
()
+
os_memsize_of_hash_table
(
obj
);
mrb_
os_memsize_of_hash_table
(
obj
);
if
(
!
mrb_nil_p
(
recurse
))
{
os_memsize_of_object
(
mrb
,
mrb_hash_keys
(
mrb
,
obj
),
recurse
,
t
);
os_memsize_of_object
(
mrb
,
mrb_hash_values
(
mrb
,
obj
),
recurse
,
t
);
...
...
src/hash.c
View file @
f74d370c
...
...
@@ -519,7 +519,7 @@ ht_foreach(mrb_state *mrb, htable *t, mrb_hash_foreach_func *func, void *p)
}
mrb_int
os_memsize_of_hash_table
(
mrb_value
obj
)
mrb_
os_memsize_of_hash_table
(
mrb_value
obj
)
{
struct
htable
*
h
=
mrb_hash_ptr
(
obj
)
->
ht
;
mrb_int
segkv_size
=
0
;
...
...
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