Re: [gtk-list] Re: A couple of suggestions



> Ah, and regarding this, why are there extern "C" {..} :s wrapped around all
> headers? GTK has no support for C++, it's plain C code, so IMHO it's should
> be the C++ user's responsibility to say extern "C". Also, it screws up
> emacs' indenting. :)

GTK does support C++, it just doesn't take advantage of its object oriented
features. Aside from the emacs problem, I don't see why it's affecting you,
and without it, I would have extern "C"'s in every source file, which can
get pretty ugly.  I think it's better to do it once at the source
(gtk headers), and be done with it.  There is one gtk, but potentially
thousands of gtk apps, so where to put the extern "C"'s seems pretty
obvious.:)

-Brian



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]