Re: Re: Help - gcc mystery in ext/imap
| From: | Stanislav Malyshev | Date: | Thu, 22 Jan 2015 20:34:12 +0000 |
| Subject: | Re: Re: Help - gcc mystery in ext/imap | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-80990@lists.php.net to get a copy of this message | ||
Hi!
> Should we use size_t/ptrdiff_t everywhere applicable?
We should use it everywhere where we deal with zend_string and such -
i.e. where the size_t parameter is expected. If it's related to outside
library - we should use its type and check (e.g. ICU uses int32_t). For
internal things, I guess it goes on case-by-case basis, depending on how
big the thing in question can get.
--
Stas Malyshev
smalyshev@gmail.com