diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2023-06-03 12:12:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-03 05:12:07 -0600 |
commit | 94a1eea511c53bf88dd8b1e441c8018fd9ff4a5e (patch) | |
tree | 2654d23810fd6190f538496afa497f0f1bd3f1b8 /Python/compile.c | |
parent | e6373c0d8b59512aa7f0dea7f3fb162b6ed10fa4 (diff) | |
download | cpython-94a1eea511c53bf88dd8b1e441c8018fd9ff4a5e.tar.gz cpython-94a1eea511c53bf88dd8b1e441c8018fd9ff4a5e.zip |
gh-103277: remove unused macros (#105247)
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/Python/compile.c b/Python/compile.c index 6872c3b492d..4fa1ee55bf7 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -37,10 +37,6 @@ #include "opcode_metadata.h" // _PyOpcode_opcode_metadata, _PyOpcode_num_popped/pushed -#define DEFAULT_CODE_SIZE 128 -#define DEFAULT_LNOTAB_SIZE 16 -#define DEFAULT_CNOTAB_SIZE 32 - #define COMP_GENEXP 0 #define COMP_LISTCOMP 1 #define COMP_SETCOMP 2 @@ -65,21 +61,6 @@ return ERROR; \ } -/* If we exceed this limit, it should - * be considered a compiler bug. - * Currently it should be impossible - * to exceed STACK_USE_GUIDELINE * 100, - * as 100 is the maximum parse depth. - * For performance reasons we will - * want to reduce this to a - * few hundred in the future. - * - * NOTE: Whatever MAX_ALLOWED_STACK_USE is - * set to, it should never restrict what Python - * we can write, just how we compile it. - */ -#define MAX_ALLOWED_STACK_USE (STACK_USE_GUIDELINE * 100) - #define IS_TOP_LEVEL_AWAIT(C) ( \ ((C)->c_flags.cf_flags & PyCF_ALLOW_TOP_LEVEL_AWAIT) \ && ((C)->u->u_ste->ste_type == ModuleBlock)) |