Re: Freeing the contents of a union
- From: ERDI Gergo <cactus cactus rulez org>
- To: Mark McLoughlin <mark skynet ie>
- Cc: orbit-list gnome org
- Subject: Re: Freeing the contents of a union
- Date: Mon, 10 Feb 2003 20:54:07 +0100 (CET)
On 11 Feb 2003, Mark McLoughlin wrote:
> I just glanced at ORBit_freekids_via_TypeCode_T and it seems to be
> doing the right thing - it looks at the discriminator and figures out
> how to free the value - in the case of _d == 0 it should do nothing ...
> as I'm reading it anyway.
So it turns out setting the discriminator _before_ calling _freekids()
wasn't such a bright idea ;)
Oh, and -- I'm not concerned about __freekids being ORBit-specific --
orbitcpp is already tied to ORBit :)
--
.--= ULLA! =---------------------. `We are not here to give users what
\ http://cactus.rulez.org \ they want' -- RMS, at GUADEC 2001
`---= cactus@cactus.rulez.org =---'
Óvakodj a kliséktől: tizenkettő belőlük egy tucat!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]