[FFmpeg-devel] Coding rules question

Michael Niedermayer michaelni
Wed Jun 16 09:33:16 CEST 2010

On Wed, Jun 16, 2010 at 09:06:50AM +0200, Luca Abeni wrote:
> Hi all,
> I read doc/developer.html, but I did not find an answer there
> (do we have some other document about coding rules?), so I am
> asking here: do we have a specific policy about structures and
> typedefs? I mean: in many parts of the code, there are things like
> struct blah {
>    ...
> };
> typedef struct blah blah;
> Is this mandated by some ffmpeg's coding rule, or is it left to
> the file's maintainer?

file maintainers choice

personally i tend to prefer typedef structs so i dont have to
write struct all over the place


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Its not that you shouldnt use gotos but rather that you should write
readable code and code with gotos often but not always is less readable
-------------- 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/20100616/ee015e69/attachment.pgp>

More information about the ffmpeg-devel mailing list