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
2a932441
Commit
2a932441
authored
Feb 26, 2013
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #895 from monaka/pr-code-cleanup-20130226
Clean code up.
parents
d3418a7a
d8646485
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
6 deletions
+3
-6
src/codegen.c
src/codegen.c
+0
-1
src/gc.c
src/gc.c
+3
-3
src/hash.c
src/hash.c
+0
-1
src/struct.c
src/struct.c
+0
-1
No files found.
src/codegen.c
View file @
2a932441
...
...
@@ -838,7 +838,6 @@ gen_assignment(codegen_scope *s, node *node, int sp, int val)
lv
++
;
up
=
up
->
prev
;
}
// assert(up!=0);
}
break
;
case
NODE_IVAR
:
...
...
src/gc.c
View file @
2a932441
...
...
@@ -271,9 +271,9 @@ add_heap(mrb_state *mrb)
#define DEFAULT_GC_INTERVAL_RATIO 200
#define DEFAULT_GC_STEP_RATIO 200
#define DEFAULT_MAJOR_GC_INC_RATIO 200
#define is_generational(mrb) (
mrb
->is_generational_gc_mode)
#define is_major_gc(mrb) (is_generational(mrb) &&
mrb
->gc_full)
#define is_minor_gc(mrb) (is_generational(mrb) && !
mrb
->gc_full)
#define is_generational(mrb) (
(mrb)
->is_generational_gc_mode)
#define is_major_gc(mrb) (is_generational(mrb) &&
(mrb)
->gc_full)
#define is_minor_gc(mrb) (is_generational(mrb) && !
(mrb)
->gc_full)
void
mrb_init_heap
(
mrb_state
*
mrb
)
...
...
src/hash.c
View file @
2a932441
...
...
@@ -152,7 +152,6 @@ mrb_hash_set(mrb_state *mrb, mrb_value hash, mrb_value key, mrb_value val) /* mr
mrb_value
mrb_hash_freeze
(
mrb_value
hash
)
{
//return mrb_obj_freeze(hash);
return
(
hash
);
}
...
...
src/struct.c
View file @
2a932441
...
...
@@ -251,7 +251,6 @@ make_struct(mrb_state *mrb, mrb_value name, mrb_value members, struct RClass * k
long
i
,
len
;
struct
RClass
*
c
;
//OBJ_FREEZE(members);
if
(
mrb_nil_p
(
name
))
{
c
=
mrb_class_new
(
mrb
,
klass
);
}
...
...
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