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
f4bacab1
Commit
f4bacab1
authored
May 18, 2012
by
Yukihiro Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename ruby_show_version to mrb_show_version
parent
1ace96a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
tools/mrbc/mrbc.c
tools/mrbc/mrbc.c
+3
-1
tools/mruby/mruby.c
tools/mruby/mruby.c
+5
-5
No files found.
tools/mrbc/mrbc.c
View file @
f4bacab1
...
...
@@ -9,6 +9,8 @@
#define RITEBIN_EXT ".mrb"
#define C_EXT ".c"
void
mrb_show_version
(
mrb_state
*
);
void
mrb_show_copyright
(
mrb_state
*
);
void
parser_dump
(
mrb_state
*
,
struct
mrb_ast_node
*
,
int
);
void
codedump_all
(
mrb_state
*
,
int
);
...
...
@@ -94,7 +96,7 @@ parse_args(mrb_state *mrb, int argc, char **argv, struct _args *args)
args
->
check_syntax
=
1
;
break
;
case
'v'
:
ruby
_show_version
(
mrb
);
mrb
_show_version
(
mrb
);
args
->
verbose
=
1
;
break
;
case
'-'
:
...
...
tools/mruby/mruby.c
View file @
f4bacab1
...
...
@@ -7,8 +7,8 @@
#include <stdio.h>
#include <string.h>
void
ruby
_show_version
(
mrb_state
*
);
void
ruby
_show_copyright
(
mrb_state
*
);
void
mrb
_show_version
(
mrb_state
*
);
void
mrb
_show_copyright
(
mrb_state
*
);
void
parser_dump
(
mrb_state
*
,
struct
mrb_ast_node
*
,
int
);
void
codedump_all
(
mrb_state
*
,
int
);
...
...
@@ -85,19 +85,19 @@ parse_args(mrb_state *mrb, int argc, char **argv, struct _args *args)
}
break
;
case
'v'
:
ruby
_show_version
(
mrb
);
mrb
_show_version
(
mrb
);
args
->
verbose
=
1
;
break
;
case
'-'
:
if
(
strcmp
((
*
argv
)
+
2
,
"version"
)
==
0
)
{
ruby
_show_version
(
mrb
);
mrb
_show_version
(
mrb
);
}
else
if
(
strcmp
((
*
argv
)
+
2
,
"verbose"
)
==
0
)
{
args
->
verbose
=
1
;
break
;
}
else
if
(
strcmp
((
*
argv
)
+
2
,
"copyright"
)
==
0
)
{
ruby
_show_copyright
(
mrb
);
mrb
_show_copyright
(
mrb
);
}
else
return
-
3
;
return
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