Reinitialize memory pool on each loop of the REPL
This commit is contained in:
@@ -3,13 +3,10 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
void init_repl(repl_t *repl)
|
||||
{
|
||||
init_memory_pool(&repl->pool);
|
||||
}
|
||||
|
||||
bool step_repl(repl_t *repl)
|
||||
{
|
||||
init_memory_pool(&repl->pool);
|
||||
|
||||
int len;
|
||||
for (len = 0; len < REPL_LINE_BUFFER_SIZE; ++len) {
|
||||
const int byte = repl->get_byte();
|
||||
|
||||
Reference in New Issue
Block a user