Re: Review of sizeof usage
From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Tue, 11 Aug 2015 22:31:11 +0000
Branko Čibej wrote on Tue, Aug 11, 2015 at 21:55:48 +0200:
Both of these variants are redundant. We could encapsulate the
#define SVN__CALLOC(obj, pool) do { (obj) = apr_pcalloc((pool), sizeof(*(obj))); } while (0)
> > We have had problems with both styles in the past, so neither is immune
Why doesn't the compiler or buildbot catch accidents?
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.