1 Aug 2008 03:27
Re: r14484 - in trunk/libavcodec: audioconvert.c audioconvert.h
Michael Niedermayer <michaelni <at> gmx.at>
2008-08-01 01:27:43 GMT
2008-08-01 01:27:43 GMT
On Thu, Jul 31, 2008 at 05:00:40PM -0400, The Wanderer wrote: > Michael Niedermayer wrote: > > > On Thu, Jul 31, 2008 at 07:47:05PM +0200, Michael Niedermayer wrote: > > > >> On Thu, Jul 31, 2008 at 01:11:14PM -0400, compn wrote: > > >>> is this policy documented somewhere? > >> > >> it has not even been discussed or agreed upon yet ... > >> > >> Besides maybe we can make the converter independant of avcodec.h > >> Which seems better either way ... > > > > and just to repeat my view on the headers inclusion IMHO headers > > should NOT include other headers, this nicely avoids such problems > > ... > > It also leads to the case where including one header leads to needing to > include another header, which might in turn need another header, et which is not available and compilation fails. The user now who just wants to use the part has to hack the headers instead of adding a 5 line enum before the header that needs it. Or maybe the functionality is available but in a different header ... Or the application breaks randomly until the user realized that audioconvert.h included acodec.h that included common.h that included assert.h and one of the headers defined NDEBUG thus disabling asserts. and rendering the user own #include <assert.h> worthless (this one actually happened to me(Continue reading)
RSS Feed