[FFmpeg-devel] [RFC] extern "C" usage

Ulrich von Zadow coder
Mon May 14 18:08:00 CEST 2007


Rich Felker schrieb:
> On Mon, May 14, 2007 at 12:15:28PM +0200, Ulrich von Zadow wrote:
>> At the moment, it's no harder to use ffmpeg from C++ than it is from C
>> (We're doing it), and that's very good. Removing the extern "C" markings
>> would change that. It would remove maybe 20 lines from ffmpeg and
>> require every library that uses ffmpeg from C++ to add these lines
>> again. That's a lot of duplicated code and hence wasted effort.
> 
> It's not duplicated _code_. It's correctly flagging that you're
> including a _foreign_ language header rather than a C++ header.

Ah, it's both. Flagging that you're including C and duplicating code.
Thing is, you haven't told us _why_ it's important to make sure everyone
knows you're including C, and the reason completely escapes me. Now, I
haven't told you why it's important not to duplicate code either, but
I'd like to assume you know the reason for that.

Desparately trying to turn this into a real flamewar ;-),

  Uli







More information about the ffmpeg-devel mailing list