Re: [RFA] Ensure result of make_cleanup is never NULL.

Pedro Alves
2012-04-18T14:32:49Z

On 04/18/2012 03:31 PM, Doug Evans wrote:

> On Wed, Apr 18, 2012 at 7:23 AM, Pedro Alves <palves@redhat.com> wrote:
>> On 04/18/2012 03:02 PM, Doug Evans wrote:
>>
>>> On Wed, Apr 18, 2012 at 2:26 AM, Pedro Alves <palves@redhat.com> wrote:
>>>> On 04/18/2012 01:43 AM, Doug Evans wrote:
>>>>
>>>>> btw, I thought about making cleanup_sentinel const here, for a bit of
>>>>> extra robustness.
>>>>
>>>>
>>>> Won't that mean you'd need to cast the constness out in most, if
>>>> not all places that use it?
>>
>>
>> Well, aren't all places using the sentinel, using it throught the macro?
>> What does this make more robust?
>
>
> Any attempts to modify the sentinel will segv.

Ah. Nothing like explaining things clearly. Good idea then. :-)

--
Pedro Alves