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
d1eea450
Commit
d1eea450
authored
Jul 09, 2014
by
take_cheeze
Committed by
Yukihiro "Matz" Matsumoto
Jul 12, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use `mrb_parse_nstring` instead in eval.
parent
42110dce
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
mrbgems/mruby-eval/src/eval.c
mrbgems/mruby-eval/src/eval.c
+6
-4
No files found.
mrbgems/mruby-eval/src/eval.c
View file @
d1eea450
...
...
@@ -113,10 +113,12 @@ create_proc_from_string(mrb_state *mrb, char *s, int len, mrb_value binding, cha
mrbc_filename
(
mrb
,
cxt
,
file
);
}
p
=
mrb_parser_new
(
mrb
);
p
->
s
=
s
;
p
->
send
=
s
+
len
;
mrb_parser_parse
(
p
,
cxt
);
p
=
mrb_parse_nstring
(
mrb
,
s
,
len
,
cxt
);
/* only occur when memory ran out */
if
(
!
p
)
{
mrb_raise
(
mrb
,
E_RUNTIME_ERROR
,
"Failed to create parser state."
);
}
if
(
0
<
p
->
nerr
)
{
/* parse error */
...
...
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