"export" is a keyword introduced recently in the
language to implement the "implementation-model" for
templates. 

The earlier era of compilers....
In order to use any template class, a compiler must
"see" the entire defintion of the template funtions
declared within that class. Thus, a programmer has to
write the body of all the template funtions in the .h
file and #include that file whereever the template
class was used. This obviously led to some
code-bloating issues and it was left to linker to do
the duplicate code removal. (Please search this forum
for how CW linker avoids introducing the duplicate
code names in the various translation units - search
for something like "templates+code+bloat+ben")

The current scenario...
The language has recently introduced the keyowrd
'export' in it that allows one to write the
implementation of the template funtions in .cpp files
unlike in .h earlier. 

I have never tried using this feature in CW but the
fact that you say that using SSllib.h containing
"export"(=keyword) as a variable in .cpp files only
(and not in .c files) means the CW has implemented
this new fature of the language in it! (Or atleast it
is there in hibernation!!) :-)

-Viren

----- Original Message ----- 
From: "Flex" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum"
<[EMAIL PROTECTED]>
Sent: Thursday, January 15, 2004 5:39 PM
Subject: Re: keyword "export" is used in SSllib.h


> Yea, known problem, I've just renamed it to exportx
or something. Wonder
> why is that there... didn't they even tested the
ssl? :)))

I think they tested but not with c++.

Vu

>
> Vu Pham wrote:
>
> > Just a report. In the file ssllib.h, there is a
definition
> >
> > typedef struct SslCipherSuiteInfo_st {
> > UInt8 cipherSuite[2];
> > UInt16 cipher; /* sslCsiCipherXXX */
> > UInt16 digest; /* sslCsiDigestXXX */
> > UInt16 keyExchange; /* sslCsiKeyExchXXX */
> > UInt16 authentication; /* sslCsiAuthXXX */
> > UInt16 version;
> > UInt16 cipherBitLength;
> > UInt16 cipherKeyLength;
> > UInt16 keyExchangeLength;
> > UInt16 authenticationLength;
> > UInt16 export;
> > } SslCipherSuiteInfo;
> >
> > One of the member named "export" and this will
cause problem when
compiling
> > with .cpp
> >
> > This causes me some problems when adapting ssl
into my current apps.
> > Currently I must create a separate .c file to
include this ssllib.h, to
> > wrapper all the necessary functions and then
export them under extern
"C" to
> > go around this keyword.
> >
> > Vu
> >
> >
>
> -- 
> For information on using the Palm Developer Forums,
or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/

>




=====
"There is nothing good or bad, 
There is nothing happy or sad,
Only thinking makes it so!"
- William Shakespeare

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to