On Tue, Sep 08, 2009 at 08:52:39PM -0300, Gustavo Sverzut Barbieri wrote: > - ultra-dirty hack to remove extra pointer. The hack bases on the > fact that we just use ->last from the first node, that always have the > ->prev == NULL. So we could have the first ->prev == ->last, but how > to know it's the first then, you might ask? Easy! Just use the fact > that valid addresses are multiple of sizeof(word) and you're done, no > supported platform uses less than 4 bytes, so ->prev = ->last | 1; > would work, and checks for ->last & 1 would tell you if it's the case > or not.
Please don't. Unless you can demonstrate a use case where the impact is large enough to really, really matter. Joerg ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel