Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-41875: Use __builtin_unreachable when possible (GH-22433) | Dong-hee Na | 2020-09-28 | 1 | -1/+3 |
| | |||||
* | bpo-38249: Expand Py_UNREACHABLE() to __builtin_unreachable() in the release ↵ | Serhiy Storchaka | 2020-03-09 | 1 | -3/+7 |
| | | | | | mode. (GH-16329) Co-authored-by: Victor Stinner <vstinner@python.org> | ||||
* | bpo-38205: Py_UNREACHABLE() calls Py_FatalError() (GH-16290) | Victor Stinner | 2019-09-20 | 1 | -23/+18 |
| | |||||
* | Enhance Py_UNREACHABLE macro (GH-16032) | Zachary Ware | 2019-09-12 | 1 | -0/+26 |
| | |||||
* | Support Py_UNUSED() on clang (GH-13544) | Victor Stinner | 2019-05-24 | 1 | -3/+8 |
| | |||||
* | bpo-36641: Add "const" to PyDoc_VAR macro (GH-12854) | Inada Naoki | 2019-04-16 | 1 | -1/+1 |
| | | | It reduces "data" segment in python about 200KB. | ||||
* | bpo-31338 (#3374) | Barry Warsaw | 2017-09-15 | 1 | -0/+2 |
| | | | | | | | * Add Py_UNREACHABLE() as an alias to abort(). * Use Py_UNREACHABLE() instead of assert(0) * Convert more unreachable code to use Py_UNREACHABLE() * Document Py_UNREACHABLE() and a few other macros. | ||||
* | bpo-29936: fix typo __GNU*C*_MINOR__ (#878) | Niklas Fiekas | 2017-03-29 | 1 | -1/+1 |
| | |||||
* | Add Py_MEMBER_SIZE macro | Victor Stinner | 2016-09-08 | 1 | -0/+3 |
| | | | | | Issue #27350: use Py_MEMBER_SIZE() macro to get the size of PyDictKeyEntry.dk_indices, rather than hardcoding 8. | ||||
* | replace Py_(u)intptr_t with the c99 standard types | Benjamin Peterson | 2016-09-06 | 1 | -4/+4 |
| | |||||
* | Issue #25558: Use compile-time asserts. | Serhiy Storchaka | 2015-11-07 | 1 | -0/+4 |
| | |||||
* | Issue #21490: Add new C macros: Py_ABS() and Py_STRINGIFY() | Victor Stinner | 2014-05-14 | 1 | -1/+14 |
| | | | | | Keep _Py_STRINGIZE() in PC/pyconfig.h to not introduce a dependency between pyconfig.h and pymacros.h. | ||||
* | Issue #19976: Argument Clinic METH_NOARGS functions now always | Larry Hastings | 2014-01-04 | 1 | -0/+6 |
| | | | | take two parameters. | ||||
* | Fix test for GCC 3.1+ but not strict ANSI C | Christian Heimes | 2013-06-24 | 1 | -1/+1 |
| | |||||
* | Issue #16881: Fix Py_ARRAY_LENGTH macro for GCC < 3.1. | Christian Heimes | 2013-01-06 | 1 | -2/+5 |
| | |||||
* | GCC doesn't support typeof in strict ansi mode (e.g. -ansi or -std=c89) | Christian Heimes | 2012-09-23 | 1 | -1/+1 |
| | |||||
* | Issue #15144: Fix possible integer overflow when handling pointers as ↵ | Antoine Pitrou | 2012-09-20 | 1 | -0/+14 |
| | | | | | | integer values, by using Py_uintptr_t instead of size_t. Patch by Serhiy Storchaka. | ||||
* | Rename Py_BUILD_ASSERT to Py_BUILD_ASSERT_EXPR | Victor Stinner | 2011-09-29 | 1 | -6/+5 |
| | | | | | To make it clearer that Py_BUILD_ASSERT_EXPR(cond) cannot be used as assert(cond). | ||||
* | pymacro.h: Inline _Py_ARRAY_LENGTH_CHECK() and add http://ccodearchive.net/ | Victor Stinner | 2011-09-29 | 1 | -13/+12 |
| | |||||
* | Enhance Py_ARRAY_LENGTH(): fail at build time if the argument is not an array | Victor Stinner | 2011-09-28 | 1 | -0/+57 |
Move other various macros to pymcacro.h Thanks Rusty Russell for having written these amazing C macros! |