Commit 5dac437
committed
gh-98724: Fix the Py_CLEAR() macro in the limited C API
If _Py_TYPEOF() is not available, the limited C API now implements the Py_CLEAR() macro as a function call which hides implementation details. The function uses memcpy() of <string.h> which is not included by <Python.h>. * Add private _Py_Clear() function. * Add _Py_Clear() to Misc/stable_abi.toml.1 parent cda9f02 commit 5dac437
File tree
6 files changed
+61
-4
lines changed- Include
- Lib/test
- Misc
- Modules
- Objects
- PC
6 files changed
+61
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
612 | 612 | | |
613 | 613 | | |
614 | 614 | | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
615 | 619 | | |
| 620 | + | |
| 621 | + | |
616 | 622 | | |
617 | 623 | | |
618 | 624 | | |
| |||
623 | 629 | | |
624 | 630 | | |
625 | 631 | | |
| 632 | + | |
| 633 | + | |
626 | 634 | | |
627 | 635 | | |
628 | 636 | | |
| |||
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 | |
|---|---|---|---|
| |||
2386 | 2386 | | |
2387 | 2387 | | |
2388 | 2388 | | |
| 2389 | + | |
| 2390 | + | |
| 2391 | + | |
| 2392 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2593 | 2593 | | |
2594 | 2594 | | |
2595 | 2595 | | |
| 2596 | + | |
| 2597 | + | |
| 2598 | + | |
| 2599 | + | |
| 2600 | + | |
| 2601 | + | |
2596 | 2602 | | |
2597 | | - | |
| 2603 | + | |
2598 | 2604 | | |
2599 | | - | |
| 2605 | + | |
2600 | 2606 | | |
| 2607 | + | |
2601 | 2608 | | |
| 2609 | + | |
2602 | 2610 | | |
2603 | 2611 | | |
| 2612 | + | |
| 2613 | + | |
| 2614 | + | |
| 2615 | + | |
| 2616 | + | |
| 2617 | + | |
| 2618 | + | |
| 2619 | + | |
| 2620 | + | |
| 2621 | + | |
2604 | 2622 | | |
2605 | 2623 | | |
2606 | | - | |
| 2624 | + | |
2607 | 2625 | | |
2608 | | - | |
| 2626 | + | |
2609 | 2627 | | |
2610 | 2628 | | |
2611 | 2629 | | |
| 2630 | + | |
2612 | 2631 | | |
| 2632 | + | |
2613 | 2633 | | |
2614 | 2634 | | |
2615 | 2635 | | |
| 2636 | + | |
| 2637 | + | |
2616 | 2638 | | |
| 2639 | + | |
| 2640 | + | |
| 2641 | + | |
| 2642 | + | |
2617 | 2643 | | |
2618 | 2644 | | |
2619 | 2645 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2446 | 2446 | | |
2447 | 2447 | | |
2448 | 2448 | | |
| 2449 | + | |
| 2450 | + | |
| 2451 | + | |
| 2452 | + | |
| 2453 | + | |
| 2454 | + | |
| 2455 | + | |
| 2456 | + | |
| 2457 | + | |
| 2458 | + | |
| 2459 | + | |
| 2460 | + | |
| 2461 | + | |
| 2462 | + | |
| 2463 | + | |
| 2464 | + | |
| 2465 | + | |
2449 | 2466 | | |
2450 | 2467 | | |
2451 | 2468 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments