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

From: Date: Fri, 17 Feb 2006 04:23:04 +0000
Subject: Re: php-src /ext/unicode unicode_iterators.c /ext/unicode/tests .cvsignore iterator_001.phpt
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-21896@lists.php.net to get a copy of this message
""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.

« previous php.internals (#21896) next »