On Sat, 17 Jun 2006 15:20:52 +0200 Harald van Dijk <[EMAIL PROTECTED]> wrote: | and then accessing {first, null}, or {null, last} as a struct dl_node | the way to fix the code would be to rewrite the code to use arrays | of pointers instead of simply three pointer members. There is no | valid way to do what the code does using pointer members (that's | simple logic: it relies on the padding between first and null to be | exactly the same as that between null and last, which is a guarantee | standard C doesn't make), so fixing it requires quite a bit of work.
It can be done using nested structs. -- Ciaran McCreesh Mail : ciaran dot mccreesh at blueyonder.co.uk -- gentoo-dev@gentoo.org mailing list