]> granicus.if.org Git - python/commit
gc list function cleanup.
authorTim Peters <tim.peters@gmail.com>
Mon, 1 Nov 2004 01:39:08 +0000 (01:39 +0000)
committerTim Peters <tim.peters@gmail.com>
Mon, 1 Nov 2004 01:39:08 +0000 (01:39 +0000)
commite2d591847c2a2b3f02d9b7bb4242cd92d9297ec9
treeda82b3e2338d758ca852f3d3a15d8a2d5a7634a1
parentcc2a866cb7439788b9083969b0f79b8483f3e071
gc list function cleanup.

Introduced gc_list_move(), which captures the common gc_list_remove() +
gc_list_append() sequence.  In fact, no uses of gc_list_append() remained
(they were all in a gc_list_move() sequence), so commented that one out.

gc_list_merge():  assert that `from` != `to`; that was an implicit
precondition, now verified in a debug build.

Others:  added comments about their purpose.
Modules/gcmodule.c