]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Use macros for marking and checking endpoints in the doubly-linked list of blocks.
authorRaymond Hettinger <python@rcn.com>
Sun, 7 Jul 2013 11:43:42 +0000 (01:43 -1000)
committerRaymond Hettinger <python@rcn.com>
Sun, 7 Jul 2013 11:43:42 +0000 (01:43 -1000)
commit82df92545198ca1c0e69e3664cf4a3f0545498ec
tree03b73735d530a0ee551e999697cee3faf05749c9
parent0cb2aafb362c8ee6c22d2c57664eae7069016dd0
Use macros for marking and checking endpoints in the doubly-linked list of blocks.

* Add comment explaining the endpoint checks
* Only do the checks in a debug build
* Simplify newblock() to only require a length argument
  and leave the link updates to the calling code.
* Also add comment for the freelisting logic.
Modules/_collectionsmodule.c