Re: [FFmpeg-devel] bprint.h can't be included in C++ code

2014-11-28 Thread Michael Niedermayer
On Mon, Nov 24, 2014 at 11:20:25AM -0500, Vadim Kalinsky wrote: > > > Nit: space after commas. > > > Is it necessary to typedef the structure on top of declaring it? In C, > > this: {...} is legal, no need to typedef it. > > > > Apart from that, I think the helper structure should be scoped in

Re: [FFmpeg-devel] bprint.h can't be included in C++ code

2014-11-24 Thread Vadim Kalinsky
> Nit: space after commas. > Is it necessary to typedef the structure on top of declaring it? In C, this: > {...} is legal, no need to typedef it. > Apart from that, I think the helper structure should be scoped in the > ff_namespace > Nit: no empty line between doxy and declaration. Patch

Re: [FFmpeg-devel] bprint.h can't be included in C++ code

2014-11-24 Thread wm4
On Fri, 21 Nov 2014 13:43:20 -0500 Vadim Kalinsky wrote: > C++ does not support anonymous struct. > Proposed an alternative patch ([PATCH] avutil/bprint: make header work with C++, simplify). ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http:

Re: [FFmpeg-devel] bprint.h can't be included in C++ code

2014-11-24 Thread Nicolas George
Le tridi 3 frimaire, an CCXXIII, Vadim Kalinsky a écrit : > Yep, my bad. Thanks for the updated patch. > Maybe I'm little contaminated with modern PLs, but I don't see huge > difference in readability between the old and the new versions. Both are > terrible :-) At least, this one, I can actuall

Re: [FFmpeg-devel] bprint.h can't be included in C++ code

2014-11-23 Thread Vadim Kalinsky
> identifiers starting with a double > underscode are reserved for the implementation, and therefore can not be > used. Yep, my bad. > Apart from the fact that it makes the macro hackery vastly less readable > (maybe some indentation would help), Maybe I'm little contaminated with modern PLs,

Re: [FFmpeg-devel] bprint.h can't be included in C++ code

2014-11-22 Thread wm4
On Fri, 21 Nov 2014 21:42:35 +0100 Nicolas George wrote: > Le primidi 1er frimaire, an CCXXIII, Vadim Kalinsky a écrit : > > bprint.h can't be included in C++ code > > C++ does not support anonymous struct. > > Thanks for the patch. > > Basically, bprint.h is not meant to be included in c++ cod

Re: [FFmpeg-devel] bprint.h can't be included in C++ code

2014-11-22 Thread wm4
On Fri, 21 Nov 2014 21:42:35 +0100 Nicolas George wrote: > Le primidi 1er frimaire, an CCXXIII, Vadim Kalinsky a écrit : > > bprint.h can't be included in C++ code > > C++ does not support anonymous struct. > > Thanks for the patch. > > Basically, bprint.h is not meant to be included in c++ cod

Re: [FFmpeg-devel] bprint.h can't be included in C++ code

2014-11-21 Thread Nicolas George
Le primidi 1er frimaire, an CCXXIII, Vadim Kalinsky a écrit : > bprint.h can't be included in C++ code > C++ does not support anonymous struct. Thanks for the patch. Basically, bprint.h is not meant to be included in c++ code. > From a45cc83a807e7eabf158ddff52751171e80874f8 Mon Sep 17 00:00:00 2

[FFmpeg-devel] bprint.h can't be included in C++ code

2014-11-21 Thread Vadim Kalinsky
C++ does not support anonymous struct. 0001-C-compatible-AVBPrint-definition.patch Description: Binary data Vadim Kalinsky kalinsky.ru signature.asc Description: Message signed with OpenPGP using GPGMail ___ ffmpeg-devel mailing list ffm