cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: curl.h and CURL_EXTERN

From: Patrick Monnerat <Patrick.Monnerat_at_datasphere.ch>
Date: Fri, 15 Feb 2013 20:06:08 +0100

 
Yang Tse wrote:
> curl.h at line 80 and surrounding has a preprocessor block which takes
care of defining CURL_EXTERN symbol depending on wether other symbols
are defined or not.

I do not really understand the problem, since I do not deal with
platforms needing a non-null value for that symbol.

However, I do use the symbol itself to determine which entry points
should be exported from the "dll" on the OS400:

------- packages/OS400/make-lib.sh
# Gather the list of symbols to export.

EXPORTS=`grep '^CURL_EXTERN[ ]'
\
              "${TOPDIR}"/include/curl/*.h
\
              "${SCRIPTDIR}/ccsidcurl.h"
|
         sed -e 's/^.*CURL_EXTERN[ ]\(.*\)(.*$/\1/'
\
             -e 's/[ ]*$//'
\
             -e 's/^.*[ ][ ]*//'
\
             -e 's/^\*//'
\
             -e 's/(\(.*\))/\1/'`
-------

As a consequence, I don't care about the CURL_EXTERN definition, but I
do care about its use. Thus... Don't remove or replace it in the
declarations. Thanks.

Cheers,
Patrick

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-02-15