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
399f88fa
Commit
399f88fa
authored
Aug 20, 2014
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2546 from cubicdaiya/issues/emptylines
Remove empty lines.
parents
f6f31a8e
2b283393
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
mrbgems/mruby-eval/src/eval.c
mrbgems/mruby-eval/src/eval.c
+1
-1
src/class.c
src/class.c
+1
-1
test/t/module.rb
test/t/module.rb
+1
-1
No files found.
mrbgems/mruby-eval/src/eval.c
View file @
399f88fa
...
@@ -13,7 +13,7 @@ get_closure_irep(mrb_state *mrb, int level)
...
@@ -13,7 +13,7 @@ get_closure_irep(mrb_state *mrb, int level)
if
(
level
==
0
)
{
if
(
level
==
0
)
{
return
mrb
->
c
->
ci
[
-
1
].
proc
->
body
.
irep
;
return
mrb
->
c
->
ci
[
-
1
].
proc
->
body
.
irep
;
}
}
while
(
--
level
)
{
while
(
--
level
)
{
e
=
(
struct
REnv
*
)
e
->
c
;
e
=
(
struct
REnv
*
)
e
->
c
;
if
(
!
e
)
return
NULL
;
if
(
!
e
)
return
NULL
;
...
...
src/class.c
View file @
399f88fa
...
@@ -1944,7 +1944,7 @@ mrb_mod_module_function(mrb_state *mrb, mrb_value mod)
...
@@ -1944,7 +1944,7 @@ mrb_mod_module_function(mrb_state *mrb, mrb_value mod)
int
ai
;
int
ai
;
mrb_check_type
(
mrb
,
mod
,
MRB_TT_MODULE
);
mrb_check_type
(
mrb
,
mod
,
MRB_TT_MODULE
);
mrb_get_args
(
mrb
,
"*"
,
&
argv
,
&
argc
);
mrb_get_args
(
mrb
,
"*"
,
&
argv
,
&
argc
);
if
(
argc
==
0
)
{
if
(
argc
==
0
)
{
/* set MODFUNC SCOPE if implemented */
/* set MODFUNC SCOPE if implemented */
...
...
test/t/module.rb
View file @
399f88fa
...
@@ -528,7 +528,7 @@ assert('Module#module_function') do
...
@@ -528,7 +528,7 @@ assert('Module#module_function') do
def
modfunc
;
end
def
modfunc
;
end
module_function
:modfunc
module_function
:modfunc
end
end
assert_true
M
.
respond_to?
(
:modfunc
)
assert_true
M
.
respond_to?
(
:modfunc
)
end
end
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