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
8c24e9e2
Commit
8c24e9e2
authored
Nov 30, 2012
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #580 from shtirlic/fix_warns
Fix compile warnings in mirb
parents
5947113f
83ecb2f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
tools/mirb/mirb.c
tools/mirb/mirb.c
+4
-4
No files found.
tools/mirb/mirb.c
View file @
8c24e9e2
...
...
@@ -5,7 +5,7 @@
** an interactive way and executes it
** immediately. It's a REPL...
*/
#include <string.h>
#include <mruby.h>
...
...
@@ -143,7 +143,7 @@ print_cmdline(int code_block_open)
int
main
(
void
)
{
char
last_char
;
int
last_char
;
char
ruby_code
[
1024
]
=
{
0
};
char
last_code_line
[
1024
]
=
{
0
};
int
char_index
;
...
...
@@ -156,7 +156,7 @@ main(void)
print_hint
();
/* new interpreter instance */
/* new interpreter instance */
mrb
=
mrb_open
();
if
(
mrb
==
NULL
)
{
fprintf
(
stderr
,
"Invalid mrb interpreter, exiting mirb"
);
...
...
@@ -207,7 +207,7 @@ main(void)
parser
->
send
=
ruby_code
+
strlen
(
ruby_code
);
parser
->
lineno
=
1
;
mrb_parser_parse
(
parser
,
cxt
);
code_block_open
=
is_code_block_open
(
parser
);
code_block_open
=
is_code_block_open
(
parser
);
if
(
code_block_open
)
{
/* no evaluation of code */
...
...
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