Commit e0bf70d
authored
test_peg_generator now defines _Py_TEST_PEGEN macro when building C
code to not call PyAST_Validate() in Parser/pegen.c. Moreover, it
defines Py_BUILD_CORE_MODULE macro to get access to the internal
C API.
Remove "global_ast_state" from Python-ast.c when it's built by
test_peg_generator: always get the AST state from the current interpreter.
1 parent 08fb8ac commit e0bf70d
File tree
4 files changed
+14
-282
lines changed- Parser
- Python
- Tools/peg_generator/pegen
4 files changed
+14
-282
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1373 | 1373 | | |
1374 | 1374 | | |
1375 | 1375 | | |
1376 | | - | |
1377 | 1376 | | |
1378 | | - | |
1379 | | - | |
1380 | | - | |
1381 | 1377 | | |
1382 | 1378 | | |
1383 | 1379 | | |
1384 | 1380 | | |
1385 | 1381 | | |
1386 | | - | |
| 1382 | + | |
1387 | 1383 | | |
1388 | 1384 | | |
1389 | 1385 | | |
| |||
1428 | 1424 | | |
1429 | 1425 | | |
1430 | 1426 | | |
1431 | | - | |
1432 | | - | |
1433 | | - | |
1434 | | - | |
1435 | | - | |
1436 | | - | |
1437 | | - | |
1438 | | - | |
1439 | | - | |
1440 | | - | |
1441 | | - | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
1442 | 1430 | | |
1443 | 1431 | | |
1444 | 1432 | | |
1445 | 1433 | | |
1446 | 1434 | | |
1447 | 1435 | | |
1448 | | - | |
1449 | 1436 | | |
1450 | 1437 | | |
1451 | 1438 | | |
| |||
1456 | 1443 | | |
1457 | 1444 | | |
1458 | 1445 | | |
1459 | | - | |
1460 | | - | |
1461 | | - | |
1462 | | - | |
1463 | | - | |
1464 | | - | |
1465 | | - | |
1466 | | - | |
1467 | | - | |
1468 | | - | |
1469 | | - | |
1470 | | - | |
1471 | | - | |
1472 | 1446 | | |
1473 | 1447 | | |
1474 | 1448 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1265 | 1265 | | |
1266 | 1266 | | |
1267 | 1267 | | |
1268 | | - | |
| 1268 | + | |
| 1269 | + | |
1269 | 1270 | | |
1270 | 1271 | | |
1271 | 1272 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
| |||
0 commit comments