From d83177b24867c42fb850714e328c7f1636067908 Mon Sep 17 00:00:00 2001
From: Paul Sokolovsky <pfalcon@users.sourceforge.net>
Date: Sun, 3 Jul 2016 00:12:46 +0300
Subject: [PATCH] unix/mpconfigport_minimal.h: Allow to print a string within
 1KB of heap.

By adjusting parser allocation policy.
---
 unix/mpconfigport_minimal.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/unix/mpconfigport_minimal.h b/unix/mpconfigport_minimal.h
index be35e6ec7..2ab95c67a 100644
--- a/unix/mpconfigport_minimal.h
+++ b/unix/mpconfigport_minimal.h
@@ -26,6 +26,12 @@
 
 // options to control how Micro Python is built
 
+#define MICROPY_ALLOC_QSTR_CHUNK_INIT (64)
+#define MICROPY_ALLOC_PARSE_RULE_INIT (8)
+#define MICROPY_ALLOC_PARSE_RULE_INC  (8)
+#define MICROPY_ALLOC_PARSE_RESULT_INIT (8)
+#define MICROPY_ALLOC_PARSE_RESULT_INC (8)
+#define MICROPY_ALLOC_PARSE_CHUNK_INIT (64)
 #define MICROPY_ALLOC_PATH_MAX      (PATH_MAX)
 #define MICROPY_ENABLE_GC           (1)
 #define MICROPY_ENABLE_FINALISER    (0)
-- 
GitLab