Re: Re: php-src /ext/unicode unicode_iterators.c /ext/unicode/tests .cvsignore iterator_001.phpt

From: Date: Fri, 17 Feb 2006 08:24:29 +0000
Subject: Re: Re: php-src /ext/unicode unicode_iterators.c /ext/unicode/tests .cvsignore iterator_001.phpt
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-21898@lists.php.net to get a copy of this message
Hello l0t3k, for some reason i always avoided using it - but after your mail seem to need to switch to it, doing so now. marcus Friday, February 17, 2006, 5:23:04 AM, you wrote: > ""Marcus Boerger"" <helly@php.net> wrote in message > news:cvshelly1140039261@cvsserver... >> helly Wed Feb 15 21:34:21 2006 UTC >> +static inline text_iter_obj* text_iter_to_obj(zend_object_iterator *iter) >> +{ >> + static text_iter_obj adr; >> + static int ofs = (char*)&adr.iter - (char*)&adr; >> + >> + return (text_iter_obj *)((char*)iter - ofs); >> +} >> > any reason not to use offsetof(). The above does not compile on Windows. Best regards, Marcus

« previous php.internals (#21898) next »