Re: [webkit-dev] EXPORT_JS changeset

2009-07-06 Thread Maciej Stachowiak


I see Darin already answered. But for future reference, questions like  
this that are requests for help, rather than about the development of  
WebKit itself, should be posted on webkit-help rather than webkit-div.


On Jul 1, 2009, at 6:23 AM, Jack Wootton wrote:


Hello,

I'm interested in using the JavaScriptCore, however I'm working with
an old revision of WebKit - I'm unsure of exactly what version it is,
but the most recent entry in the changelog file in the JavaScriptCore
was on the 2007-10-03.

Looking at the JavaScriptcore API files, such as JSObjectRef.h,
functions are not prefixed with IMPORT / EXPORT - as I would expect
them to be, since they make up an API exported from a DLL.  Browsing a
more recent version of the source online here:

http://trac.webkit.org/browser/trunk/JavaScriptCore/API/JSObjectRef.h

functions are exported using JS_EXPORT.  However this change seems to
have been introduced with the following changeset dated 27/11/2007.

http://trac.webkit.org/changeset/28097

Can any provide any information on:

1. How the JavaScriptCore API can be used if there is no IMPORT /
EXPORT next to function definitions.  How was it used before the
changeset introducing JS_EXPORT?
2. What happened in terms of the changes to how JSCore functions were
exported and when these changes were introduced?

--
Regards
Jack
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] EXPORT_JS changeset

2009-07-06 Thread Darin Adler

On Jul 1, 2009, at 6:23 AM, Jack Wootton wrote:

I'm interested in using the JavaScriptCore, however I'm working with  
an old revision of WebKit - I'm unsure of exactly what version it  
is, but the most recent entry in the changelog file in the  
JavaScriptCore was on the 2007-10-03.


As a group, the WebKit developers don’t really support mixing and  
matching various old versions of components.


1. How the JavaScriptCore API can be used if there is no IMPORT /  
EXPORT next to function definitions.  How was it used before the  
changeset introducing JS_EXPORT?


I assume you’re asking about Windows. We used .def files to list  
exported symbols.


2. What happened in terms of the changes to how JSCore functions  
were exported and when these changes were introduced?


Different platforms use different build systems, so the techniques  
required to get the public symbols exported are different. For  
example, on Mac OS X a .exp file is used to determine which symbols  
are exported from the JavaScriptCore framework.


-- Darin

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[webkit-dev] EXPORT_JS changeset

2009-07-01 Thread Jack Wootton
Hello,

I'm interested in using the JavaScriptCore, however I'm working with
an old revision of WebKit - I'm unsure of exactly what version it is,
but the most recent entry in the changelog file in the JavaScriptCore
was on the 2007-10-03.

Looking at the JavaScriptcore API files, such as JSObjectRef.h,
functions are not prefixed with IMPORT / EXPORT - as I would expect
them to be, since they make up an API exported from a DLL.  Browsing a
more recent version of the source online here:

http://trac.webkit.org/browser/trunk/JavaScriptCore/API/JSObjectRef.h

functions are exported using JS_EXPORT.  However this change seems to
have been introduced with the following changeset dated 27/11/2007.

http://trac.webkit.org/changeset/28097

Can any provide any information on:

1. How the JavaScriptCore API can be used if there is no IMPORT /
EXPORT next to function definitions.  How was it used before the
changeset introducing JS_EXPORT?
2. What happened in terms of the changes to how JSCore functions were
exported and when these changes were introduced?

-- 
Regards
Jack
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev