From e1199ecf10fcdab85856a2b0e6557b98df15b4ca Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 10 May 2014 17:48:01 +0100 Subject: py, lexer: Add allocation policy config; return NULL if can't allocate. --- py/mpconfig.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'py/mpconfig.h') diff --git a/py/mpconfig.h b/py/mpconfig.h index 73ecc92d1..a7e1c4a40 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -36,6 +36,16 @@ /*****************************************************************************/ /* Memory allocation policy */ +// Initial amount for lexer indentation level +#ifndef MP_ALLOC_LEXER_INDENT_INIT +#define MP_ALLOC_LEXER_INDENT_INIT (10) +#endif + +// Increment for lexer indentation level +#ifndef MP_ALLOC_LEXEL_INDENT_INC +#define MP_ALLOC_LEXEL_INDENT_INC (8) +#endif + // Initial amount for parse rule stack #ifndef MP_ALLOC_PARSE_RULE_INIT #define MP_ALLOC_PARSE_RULE_INIT (64) -- cgit v1.2.3