""Marcus Boerger"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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.

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to