[PATCH] Hspell plugin for KSpell2

Michael Pyne pynm0001 at comcast.net
Fri Apr 29 22:16:03 BST 2005


On Friday 29 April 2005 05:17 pm, heiko.evermann at gmx.de wrote:
> Hi Nadav,
>
> > Why? What's wrong with C++ junkies knowing that this is a C library, and
> > therefore they need to do
> >
> > extern "C" {
> > #include <hspell.h>
> > }
>
> That is a valid point. You are definitely right. It might however be useful
> to add this as a comment to the header file. Something like "if you want to
> use c++, use hspell like this:

Well I'll admit that I've never seen the big deal with making sure that C 
library headers can be included from C++ code.

The #ifdef __cplusplus construct has been supported by every C++ compiler I've 
ever used (and I started with C++ way back on DOS).

But yes, if it's such a big deal to add C++ guards, at least document it in 
the header as to what we'd have to do to include it in C++ code.

Regards,
 - Michael Pyne




More information about the kde-core-devel mailing list