[FFmpeg-devel] [PATCH] X-Face image encoder and decoder

Clément Bœsch ubitux at gmail.com
Sat Oct 13 22:06:38 CEST 2012


On Sat, Oct 13, 2012 at 07:20:40PM +0000, Paul B Mahol wrote:
[...]
> > +/* Portable, very large unsigned integer arithmetic is needed.
> > + * Implementation uses arrays of WORDs. */
> > +typedef struct {
> > +    int nb_words;
> > +    uint8_t words[XFACE_MAX_WORDS];
> > +} BigInt;
> 
> anonymous typedef (trend is to give them name)

Is there any real technical reason in this case?

Also, AFAICT it's an anonymous struct, and a named typedef. What's the
point of writing the name twice if we don't plan to write "struct
TheName"?

[...]

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20121013/1991df7c/attachment.asc>


More information about the ffmpeg-devel mailing list