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
bb0aec1d
Unverified
Commit
bb0aec1d
authored
Dec 23, 2019
by
take-cheeze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use binary mode in mrbc source code reading
parent
10e9f193
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c
mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c
+2
-2
No files found.
mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c
View file @
bb0aec1d
...
...
@@ -183,7 +183,7 @@ partial_hook(struct mrb_parser_state *p)
return
-
1
;
}
fn
=
args
->
argv
[
args
->
idx
++
];
p
->
f
=
fopen
(
fn
,
"r"
);
p
->
f
=
fopen
(
fn
,
"r
b
"
);
if
(
p
->
f
==
NULL
)
{
fprintf
(
stderr
,
"%s: cannot open program file. (%s)
\n
"
,
args
->
prog
,
fn
);
return
-
1
;
...
...
@@ -210,7 +210,7 @@ load_file(mrb_state *mrb, struct mrbc_args *args)
}
else
{
need_close
=
TRUE
;
if
((
infile
=
fopen
(
input
,
"r"
))
==
NULL
)
{
if
((
infile
=
fopen
(
input
,
"r
b
"
))
==
NULL
)
{
fprintf
(
stderr
,
"%s: cannot open program file. (%s)
\n
"
,
args
->
prog
,
input
);
return
mrb_nil_value
();
}
...
...
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