[FFmpeg-devel] _t POSIX namespace issues

Michael Niedermayer michaelni
Thu Dec 11 20:55:35 CET 2008


On Thu, Dec 11, 2008 at 08:08:38PM +0100, Diego Biurrun wrote:
> On Thu, Dec 11, 2008 at 06:39:11PM +0100, Michael Niedermayer wrote:
> > On Thu, Dec 11, 2008 at 05:33:57PM +0100, Diego Biurrun wrote:
> > > On Thu, Dec 11, 2008 at 09:43:02AM +0000, M?ns Rullg?rd wrote:
> > > > Diego Biurrun <diego at biurrun.de> writes:
> > > > 
> > > > > So names ending in _t are reserved by POSIX.  Nonetheless we have tons
> > > > > of them.  I thought about fixing these issues myself, but coming up with
> > > > > good new names is tedious, so I propose to have each maintainer address
> > > > > the problem in the files they maintain.  Here is a the result of a grep
> > > > > for problematic names with maintainers, in no particular order:
> > > > 
> > > > > libpostproc/postprocess.h:typedef void pp_context_t;
> > > > > libpostproc/postprocess.h:typedef void pp_mode_t;
> > > > 
> > > > Typedeffing things as void or void * is just silly.
> > > 
> > > True, here is a patch that addresses this.  I fear this might need a
> > > major version bump, though...
> > 
> > it should be changed to code like AVMD5 in libavutil/md5.h
> > its a lot better to have named types than void* .
> > and the _t could just be dropped
> 
> Like this then?

ok

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Dictatorship naturally arises out of democracy, and the most aggravated
form of tyranny and slavery out of the most extreme liberty. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081211/019994b8/attachment.pgp>



More information about the ffmpeg-devel mailing list