[FFmpeg-devel] Coding rules question

Luca Abeni lucabe72
Wed Jun 16 09:47:50 CEST 2010


Hi Michael,

On 06/16/2010 09:33 AM, Michael Niedermayer wrote:
> 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

Good, thanks. I'll think a little bit more about it, and maybe I'll
commit the change in the next days.


			Thanks,
				Luca



More information about the ffmpeg-devel mailing list