Stefan Fuhrmann <[email protected]> writes:
>> I prefer the explicit type as it is easier to grep.
>
> What do you grep for, specifically? The type should
> already show up for the variable / function argument
> declaration - so, you should not miss a type usage
> either way.
If I want to find all the locations that a given type is allocated then
using grep is hard on code like this:
type_t *p;
...
p = apr_palloc(result_pool, *p);
and this:
void foo(type_t **p, apr_pool_t *pool)
{
*p = apr_palloc(pool, **p);
}
Finding sizeof(type_t) is easier.
--
Philip Martin
WANdisco