diff options
| author | Raymond Hettinger <python@rcn.com> | 2013-07-07 11:43:42 (GMT) |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2013-07-07 11:43:42 (GMT) |
| commit | 82df92545198ca1c0e69e3664cf4a3f0545498ec (patch) | |
| tree | 03b73735d530a0ee551e999697cee3faf05749c9 /Python/dup2.c | |
| parent | 0cb2aafb362c8ee6c22d2c57664eae7069016dd0 (diff) | |
| download | cpython-82df92545198ca1c0e69e3664cf4a3f0545498ec.zip cpython-82df92545198ca1c0e69e3664cf4a3f0545498ec.tar.gz cpython-82df92545198ca1c0e69e3664cf4a3f0545498ec.tar.bz2 | |
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.
Diffstat (limited to 'Python/dup2.c')
0 files changed, 0 insertions, 0 deletions
