[webkit-dev] Making use of a KJS_EXPORT macro
mjs at apple.com
Fri Jun 1 10:30:56 PDT 2007
On Jun 1, 2007, at 9:51 AM, Geoffrey Garen wrote:
> Hi Luciano.
> the time based on new functionality in WebCore or architectural
> quickly get out of sync with reality.
As I understand it, it's not documentation, but an alternative way of
controlling the actual exports. Instead of an export file you can
declare symbol visibility at compile time. In theory this could
somewhat improve codegen, since the compiler would know some
functions are not exported at compile time, not just link time.
> On Jun 1, 2007, at 1:19 AM, Luciano Montanaro wrote:
>> Hi all.
>> I'm trying to reconcile the KJS and JSC repositories, and one of the
>> differences I have found is the usage of the KJS_EXPORT macro, which
>> expands to
>> __attribute ((visibility("default"))) on GCC and
>> __declspec(dllexport) or __declspec(dllimport) on Microsoft
>> I think it's a useful feature, and it offers a way to document
>> which classes
>> are for internal use and which do not without cluttering the
>> source code
>> too much.
>> Would a patch for annotating classes and methods with this macro
>> be welcome?
>> webkit-dev mailing list
>> webkit-dev at lists.webkit.org
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
More information about the webkit-dev