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
8a7604da
Commit
8a7604da
authored
Jan 05, 2014
by
Damien George
Browse files
Merge pull request #88 from dhylands/mp-qstr-init
Make qstr_init reinitialize last_pool.
parents
12e26564
d986b582
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/qstr.c
View file @
8a7604da
...
...
@@ -36,10 +36,10 @@ const static qstr_pool_t const_pool = {
},
};
static
qstr_pool_t
*
last_pool
=
(
qstr_pool_t
*
)
&
const_pool
;
// we won't modify the const_pool since it has no allocated room left
static
qstr_pool_t
*
last_pool
;
void
qstr_init
(
void
)
{
// nothing to do!
last_pool
=
(
qstr_pool_t
*
)
&
const_pool
;
// we won't modify the const_pool since it has no allocated room left
}
static
qstr
qstr_add
(
const
char
*
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