| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -660,15 +660,6 @@ static int astfold_pattern(pattern_ty node_, PyArena *ctx_, _PyASTOptimizeState | |||
| 660 | 660 | } \ | |
| 661 | 661 | } | |
| 662 | 662 | ||
| 663 | - #define CALL_INT_SEQ(FUNC, TYPE, ARG) { \ | ||
| 664 | - int i; \ | ||
| 665 | - asdl_int_seq *seq = (ARG); /* avoid variable capture */ \ | ||
| 666 | - for (i = 0; i < asdl_seq_LEN(seq); i++) { \ | ||
| 667 | - TYPE elt = (TYPE)asdl_seq_GET(seq, i); \ | ||
| 668 | - if (!FUNC(elt, ctx_, state)) \ | ||
| 669 | - return 0; \ | ||
| 670 | - } \ | ||
| 671 | - } | ||
| 672 | 663 | ||
| 673 | 664 | static int | |
| 674 | 665 | astfold_body(asdl_stmt_seq *stmts, PyArena *ctx_, _PyASTOptimizeState *state) | |
@@ -1085,7 +1076,6 @@ astfold_match_case(match_case_ty node_, PyArena *ctx_, _PyASTOptimizeState *stat | |||
| 1085 | 1076 | #undef CALL | |
| 1086 | 1077 | #undef CALL_OPT | |
| 1087 | 1078 | #undef CALL_SEQ | |
| 1088 | - #undef CALL_INT_SEQ | ||
| 1089 | 1079 | ||
| 1090 | 1080 | /* See comments in symtable.c. */ | |
| 1091 | 1081 | #define COMPILER_STACK_FRAME_SCALE 3 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -37,7 +37,6 @@ | |||
| 37 | 37 | ||
| 38 | 38 | ||
| 39 | 39 | #define DEFAULT_BLOCK_SIZE 16 | |
| 40 | - #define DEFAULT_BLOCKS 8 | ||
| 41 | 40 | #define DEFAULT_CODE_SIZE 128 | |
| 42 | 41 | #define DEFAULT_LNOTAB_SIZE 16 | |
| 43 | 42 | #define DEFAULT_CNOTAB_SIZE 32 | |
@@ -1472,13 +1471,6 @@ compiler_addop_j_noline(struct compiler *c, int opcode, basicblock *b) | |||
| 1472 | 1471 | Py_DECREF(__new_const); \ | |
| 1473 | 1472 | } | |
| 1474 | 1473 | ||
| 1475 | - #define ADDOP_O(C, OP, O, TYPE) { \ | ||
| 1476 | - assert(!HAS_CONST(OP)); /* use ADDOP_LOAD_CONST */ \ | ||
| 1477 | - if (!compiler_addop_o((C), (OP), (C)->u->u_ ## TYPE, (O))) \ | ||
| 1478 | - return 0; \ | ||
| 1479 | - } | ||
| 1480 | - | ||
| 1481 | - /* Same as ADDOP_O, but steals a reference. */ | ||
| 1482 | 1474 | #define ADDOP_N(C, OP, O, TYPE) { \ | |
| 1483 | 1475 | assert(!HAS_CONST(OP)); /* use ADDOP_LOAD_CONST_NEW */ \ | |
| 1484 | 1476 | if (!compiler_addop_o((C), (OP), (C)->u->u_ ## TYPE, (O))) { \ | |
@@ -1552,11 +1544,6 @@ compiler_addop_j_noline(struct compiler *c, int opcode, basicblock *b) | |||
| 1552 | 1544 | } \ | |
| 1553 | 1545 | } | |
| 1554 | 1546 | ||
| 1555 | - #define VISIT_SLICE(C, V, CTX) {\ | ||
| 1556 | - if (!compiler_visit_slice((C), (V), (CTX))) \ | ||
| 1557 | - return 0; \ | ||
| 1558 | - } | ||
| 1559 | - | ||
| 1560 | 1547 | #define VISIT_SEQ(C, TYPE, SEQ) { \ | |
| 1561 | 1548 | int _i; \ | |
| 1562 | 1549 | asdl_ ## TYPE ## _seq *seq = (SEQ); /* avoid variable capture */ \ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,8 +24,6 @@ | |||
| 24 | 24 | extern "C" { | |
| 25 | 25 | #endif | |
| 26 | 26 | ||
| 27 | - #define CACHEDIR "__pycache__" | ||
| 28 | - | ||
| 29 | 27 | /* Forward references */ | |
| 30 | 28 | static PyObject *import_add_module(PyThreadState *tstate, PyObject *name); | |
| 31 | 29 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -45,11 +45,9 @@ | |||
| 45 | 45 | ||
| 46 | 46 | #ifdef Py_DEBUG | |
| 47 | 47 | static int thread_debug = 0; | |
| 48 | - #define dprintf(args) (void)((thread_debug & 1) && printf args) | ||
| 49 | - #define d2printf(args) ((thread_debug & 8) && printf args) | ||
| 48 | + # define dprintf(args) (void)((thread_debug & 1) && printf args) | ||
| 50 | 49 | #else | |
| 51 | - #define dprintf(args) | ||
| 52 | - #define d2printf(args) | ||
| 50 | + # define dprintf(args) | ||
| 53 | 51 | #endif | |
| 54 | 52 | ||
| 55 | 53 | static int initialized; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments