Don't use the stack for meta.ini parsing

This commit is contained in:
Maschell 2022-01-26 14:32:30 +01:00
parent 136da033f4
commit 1365eff9fc

View File

@ -96,7 +96,7 @@ int ini_parse_string(const char* string, ini_handler handler, void* user);
/* Nonzero to use stack for line buffer, zero to use heap (malloc/free). */ /* Nonzero to use stack for line buffer, zero to use heap (malloc/free). */
#ifndef INI_USE_STACK #ifndef INI_USE_STACK
#define INI_USE_STACK 1 #define INI_USE_STACK 0
#endif #endif
/* Maximum line length for any line in INI file (stack or heap). Note that /* Maximum line length for any line in INI file (stack or heap). Note that
@ -109,7 +109,7 @@ int ini_parse_string(const char* string, ini_handler handler, void* user);
fixed-size buffer of INI_MAX_LINE bytes. Only applies if INI_USE_STACK is fixed-size buffer of INI_MAX_LINE bytes. Only applies if INI_USE_STACK is
zero. */ zero. */
#ifndef INI_ALLOW_REALLOC #ifndef INI_ALLOW_REALLOC
#define INI_ALLOW_REALLOC 0 #define INI_ALLOW_REALLOC 1
#endif #endif
/* Initial size in bytes for heap line buffer. Only applies if INI_USE_STACK /* Initial size in bytes for heap line buffer. Only applies if INI_USE_STACK