From 002a03c087621b7df9cfb019c3351858ee04cb46 Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Wed, 19 May 2021 11:47:55 +0800 Subject: [PATCH] shrink heap size for fixed string --- src/include/constants.h | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/include/constants.h b/src/include/constants.h index 54acc3eb..ab784174 100644 --- a/src/include/constants.h +++ b/src/include/constants.h @@ -159,20 +159,14 @@ enum { #endif /* constants for fix string module */ -#if defined (__NOUNIX__) || defined (__uClinux__) - #define MAX_LEN_FIXSTR 64 - #define NR_HEAP 5 - #define LEN_BITMAP (1+2+4+8+16) -#else - #ifdef _MGRM_THREADS - #define MAX_LEN_FIXSTR 2048 - #define NR_HEAP 10 - #define LEN_BITMAP (1+2+4+8+16+32+64+128+256+512) - #else +#ifdef _MGRM_THREADS #define MAX_LEN_FIXSTR 1024 #define NR_HEAP 9 #define LEN_BITMAP (1+2+4+8+16+32+64+128+256) - #endif +#else + #define MAX_LEN_FIXSTR 64 + #define NR_HEAP 5 + #define LEN_BITMAP (1+2+4+8+16) #endif /* constants for engine name and video mode */