Message184739
I thought I had explained this already, but can't find it, so here is the explanation:
It matches the pattern of r_ref(), which semantically is a combination of r_ref_register() and r_ref_insert().
It is a convenence calling pattern because these functions will either:
a) pass a NULL operand through,
b) succeed and pass the non-NULL operatn through
c) fail, and release the operand and return NULL.
In all cases, it is sufficient to look at the value of the operand after this transformation to know if everything was allright. This simplifies all the calling sites where these things are used, e.g. by the R_REF() macro. |
|
Date |
User |
Action |
Args |
2013-03-20 04:50:23 | kristjan.jonsson | set | recipients:
+ kristjan.jonsson, loewis, gregory.p.smith, mark.dickinson, pitrou, christian.heimes, benjamin.peterson, python-dev, serhiy.storchaka |
2013-03-20 04:50:23 | kristjan.jonsson | set | messageid: <1363755023.01.0.0755829322843.issue16475@psf.upfronthosting.co.za> |
2013-03-20 04:50:22 | kristjan.jonsson | link | issue16475 messages |
2013-03-20 04:50:22 | kristjan.jonsson | create | |
|