Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
a8202762
Commit
a8202762
authored
Oct 09, 2014
by
Damien George
Browse files
Merge branch 'lexer-crash' of
https://github.com/dhylands/micropython
into dhylands-lexer-crash
parents
7989b076
e20cbbec
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/lexerstr.c
View file @
a8202762
...
...
@@ -52,7 +52,10 @@ STATIC void str_buf_free(mp_lexer_str_buf_t *sb) {
}
mp_lexer_t
*
mp_lexer_new_from_str_len
(
qstr
src_name
,
const
char
*
str
,
mp_uint_t
len
,
mp_uint_t
free_len
)
{
mp_lexer_str_buf_t
*
sb
=
m_new_obj
(
mp_lexer_str_buf_t
);
mp_lexer_str_buf_t
*
sb
=
m_new_maybe
(
mp_lexer_str_buf_t
,
1
);
if
(
sb
==
NULL
)
{
return
NULL
;
}
sb
->
free_len
=
free_len
;
sb
->
src_beg
=
str
;
sb
->
src_cur
=
str
;
...
...
Write
Preview
Supports
Markdown
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