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
7f095534
Commit
7f095534
authored
Jan 23, 2013
by
Jon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refine pretty-print indenting
parent
26f353d8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
tasks/mruby_build_commands.rake
tasks/mruby_build_commands.rake
+1
-1
tasks/ruby_ext.rake
tasks/ruby_ext.rake
+6
-2
No files found.
tasks/mruby_build_commands.rake
View file @
7f095534
...
...
@@ -214,7 +214,7 @@ module MRuby
@command
||=
@build
.
mrbcfile
IO
.
popen
(
"
#{
filename
@command
}
#{
@compile_options
%
{
:funcname
=>
funcname
}
}"
,
'r+'
)
do
|
io
|
[
infiles
].
flatten
.
each
do
|
f
|
_pp
"
MRBC"
,
"
#{
f
}
"
_pp
"
MRBC"
,
"
#{
f
}
"
,
nil
,
:indent
=>
2
io
.
write
IO
.
read
(
f
)
end
io
.
close_write
...
...
tasks/ruby_ext.rake
View file @
7f095534
...
...
@@ -57,6 +57,10 @@ else
$pp_show
=
false
if
$verbose
end
def
_pp
(
cmd
,
src
,
tgt
=
nil
)
puts
'%-5s %s %s'
%
[
cmd
,
src
,
tgt
?
"->
#{
tgt
}
"
:
nil
]
if
$pp_show
def
_pp
(
cmd
,
src
,
tgt
=
nil
,
options
=
{})
return
unless
$pp_show
width
=
5
template
=
options
[
:indent
]
?
"%
#{
width
*
options
[
:indent
]
}
s %s %s"
:
"%-
#{
width
}
s %s %s"
puts
template
%
[
cmd
,
src
,
tgt
?
"->
#{
tgt
}
"
:
nil
]
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