W3C home > Mailing lists > Public > www-lib@w3.org > January to March 2002

Re: [FYI] new libwww contributor

From: Vic Bancroft <bancroft@america.net>
Date: Sun, 10 Mar 2002 19:43:07 -0500 (EST)
To: Jose Kahan <jose.kahan@w3.org>
cc: www-lib@w3.org
Message-ID: <Pine.LNX.4.44.0203101406050.32168-100000@pc70.home.maioriello.net>

On Fri, 8 Mar 2002, Jose Kahan wrote:

> If someone wants to help, please mail me and I'll open the CVS access
> too.

I would be willing to make the "header file modifications we needed when
extending our use of libwww from within c++ classes.  This may or may not
address a few of the reported compile problems.  It might be nice if
someone made all of the header files c++ sensitive . . ." [1].  The basic
idea is that to use the various functions from a C++ world, we need to at
indicate to the compiler that they are extern "C" style declarations, thus
avoiding the name mangler.  Several years have passed since making the
suggestion (another project with a different repository), however I find
myself once again in a Makefile where everyone else is using g++ . . .

The implementation is simply to add the following three lines,

  #ifdef __cplusplus
  extern "C" {

near the top of the header files (just after the copyright),  and then add

  #ifdef __cplusplus
  } /* end extern C definitions */

near the bottom.  This is quite a bit more modest than a rewrite in STL, 
yet is pragmatically worth while. 


katabatic cohabitation :  to live together as if a married couple or in company;  
to exist together, relating as or being like a wind produced by the flow of cold 
dense air down a slope (as of a mountain or glacier) in an area subject to 
radiational cooling.   mailto:bancroft@america.net  http://america.net/~bancroft

[1]  http://lists.w3.org/Archives/Public/www-lib/2000JanMar/0064.html
Received on Monday, 11 March 2002 04:46:24 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:55 UTC