Changeset 28097 in webkit
- Timestamp:
- Nov 27, 2007 8:31:51 PM (16 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSBase.h
r23802 r28097 59 59 typedef struct OpaqueJSValue* JSObjectRef; 60 60 61 /* JavaScript symbol exports */ 62 63 #undef JS_EXPORT 64 #if defined(WIN32) || defined(_WIN32) 65 #if defined(JS_BUILDING_JS) 66 #define JS_EXPORT __declspec(dllexport) extern 67 #else 68 #define JS_EXPORT __declspec(dllimport) extern 69 #endif 70 #elif defined(__GNUC__) 71 #define JS_EXPORT __attribute__((visibility("default"))) 72 #else 73 #define JS_EXPORT extern 74 #endif 75 61 76 #ifdef __cplusplus 62 77 extern "C" { … … 76 91 @result The JSValue that results from evaluating script, or NULL if an exception is thrown. 77 92 */ 78 JS ValueRef JSEvaluateScript(JSContextRef ctx, JSStringRef script, JSObjectRef thisObject, JSStringRef sourceURL, int startingLineNumber, JSValueRef* exception);93 JS_EXPORT JSValueRef JSEvaluateScript(JSContextRef ctx, JSStringRef script, JSObjectRef thisObject, JSStringRef sourceURL, int startingLineNumber, JSValueRef* exception); 79 94 80 95 /*! … … 88 103 @result true if the script is syntactically correct, otherwise false. 89 104 */ 90 bool JSCheckScriptSyntax(JSContextRef ctx, JSStringRef script, JSStringRef sourceURL, int startingLineNumber, JSValueRef* exception);105 JS_EXPORT bool JSCheckScriptSyntax(JSContextRef ctx, JSStringRef script, JSStringRef sourceURL, int startingLineNumber, JSValueRef* exception); 91 106 92 107 /*! … … 104 119 JSGlobalContextRef's global object, along with the global object itself. 105 120 */ 106 void JSGarbageCollect(JSContextRef ctx);121 JS_EXPORT void JSGarbageCollect(JSContextRef ctx); 107 122 108 123 #ifdef __cplusplus -
trunk/JavaScriptCore/API/JSContextRef.h
r15481 r28097 46 46 @result A JSGlobalContext with a global object of class globalObjectClass. 47 47 */ 48 JS GlobalContextRef JSGlobalContextCreate(JSClassRef globalObjectClass);48 JS_EXPORT JSGlobalContextRef JSGlobalContextCreate(JSClassRef globalObjectClass); 49 49 50 50 /*! … … 54 54 @result A JSGlobalContext that is the same as ctx. 55 55 */ 56 JS GlobalContextRef JSGlobalContextRetain(JSGlobalContextRef ctx);56 JS_EXPORT JSGlobalContextRef JSGlobalContextRetain(JSGlobalContextRef ctx); 57 57 58 58 /*! … … 61 61 @param ctx The JSGlobalContext to release. 62 62 */ 63 void JSGlobalContextRelease(JSGlobalContextRef ctx);63 JS_EXPORT void JSGlobalContextRelease(JSGlobalContextRef ctx); 64 64 65 65 /*! … … 69 69 @result ctx's global object. 70 70 */ 71 JS ObjectRef JSContextGetGlobalObject(JSContextRef ctx);71 JS_EXPORT JSObjectRef JSContextGetGlobalObject(JSContextRef ctx); 72 72 73 73 #ifdef __cplusplus -
trunk/JavaScriptCore/API/JSObjectRef.h
r24809 r28097 377 377 @result A JSClass with the given definition. Ownership follows the Create Rule. 378 378 */ 379 JS ClassRef JSClassCreate(const JSClassDefinition* definition);379 JS_EXPORT JSClassRef JSClassCreate(const JSClassDefinition* definition); 380 380 381 381 /*! … … 385 385 @result A JSClass that is the same as jsClass. 386 386 */ 387 JS ClassRef JSClassRetain(JSClassRef jsClass);387 JS_EXPORT JSClassRef JSClassRetain(JSClassRef jsClass); 388 388 389 389 /*! … … 392 392 @param jsClass The JSClass to release. 393 393 */ 394 void JSClassRelease(JSClassRef jsClass);394 JS_EXPORT void JSClassRelease(JSClassRef jsClass); 395 395 396 396 /*! … … 405 405 data is set on the created object before the intialize methods in its class chain are called. This enables the initialize methods to retrieve and manipulate data through JSObjectGetPrivate. 406 406 */ 407 JS ObjectRef JSObjectMake(JSContextRef ctx, JSClassRef jsClass, void* data);407 JS_EXPORT JSObjectRef JSObjectMake(JSContextRef ctx, JSClassRef jsClass, void* data); 408 408 409 409 /*! … … 415 415 @result A JSObject that is a function. The object's prototype will be the default function prototype. 416 416 */ 417 JS ObjectRef JSObjectMakeFunctionWithCallback(JSContextRef ctx, JSStringRef name, JSObjectCallAsFunctionCallback callAsFunction);417 JS_EXPORT JSObjectRef JSObjectMakeFunctionWithCallback(JSContextRef ctx, JSStringRef name, JSObjectCallAsFunctionCallback callAsFunction); 418 418 419 419 /*! … … 426 426 @discussion The default object constructor takes no arguments and constructs an object of class jsClass with no private data. 427 427 */ 428 JS ObjectRef JSObjectMakeConstructor(JSContextRef ctx, JSClassRef jsClass, JSObjectCallAsConstructorCallback callAsConstructor);428 JS_EXPORT JSObjectRef JSObjectMakeConstructor(JSContextRef ctx, JSClassRef jsClass, JSObjectCallAsConstructorCallback callAsConstructor); 429 429 430 430 /*! … … 442 442 @discussion Use this method when you want to execute a script repeatedly, to avoid the cost of re-parsing the script before each execution. 443 443 */ 444 JS ObjectRef JSObjectMakeFunction(JSContextRef ctx, JSStringRef name, unsigned parameterCount, const JSStringRef parameterNames[], JSStringRef body, JSStringRef sourceURL, int startingLineNumber, JSValueRef* exception);444 JS_EXPORT JSObjectRef JSObjectMakeFunction(JSContextRef ctx, JSStringRef name, unsigned parameterCount, const JSStringRef parameterNames[], JSStringRef body, JSStringRef sourceURL, int startingLineNumber, JSValueRef* exception); 445 445 446 446 /*! … … 451 451 @result A JSValue that is the object's prototype. 452 452 */ 453 JS ValueRef JSObjectGetPrototype(JSContextRef ctx, JSObjectRef object);453 JS_EXPORT JSValueRef JSObjectGetPrototype(JSContextRef ctx, JSObjectRef object); 454 454 455 455 /*! … … 460 460 @param value A JSValue to set as the object's prototype. 461 461 */ 462 void JSObjectSetPrototype(JSContextRef ctx, JSObjectRef object, JSValueRef value);462 JS_EXPORT void JSObjectSetPrototype(JSContextRef ctx, JSObjectRef object, JSValueRef value); 463 463 464 464 /*! … … 469 469 @result true if the object has a property whose name matches propertyName, otherwise false. 470 470 */ 471 bool JSObjectHasProperty(JSContextRef ctx, JSObjectRef object, JSStringRef propertyName);471 JS_EXPORT bool JSObjectHasProperty(JSContextRef ctx, JSObjectRef object, JSStringRef propertyName); 472 472 473 473 /*! … … 480 480 @result The property's value if object has the property, otherwise the undefined value. 481 481 */ 482 JS ValueRef JSObjectGetProperty(JSContextRef ctx, JSObjectRef object, JSStringRef propertyName, JSValueRef* exception);482 JS_EXPORT JSValueRef JSObjectGetProperty(JSContextRef ctx, JSObjectRef object, JSStringRef propertyName, JSValueRef* exception); 483 483 484 484 /*! … … 492 492 @param attributes A logically ORed set of JSPropertyAttributes to give to the property. 493 493 */ 494 void JSObjectSetProperty(JSContextRef ctx, JSObjectRef object, JSStringRef propertyName, JSValueRef value, JSPropertyAttributes attributes, JSValueRef* exception);494 JS_EXPORT void JSObjectSetProperty(JSContextRef ctx, JSObjectRef object, JSStringRef propertyName, JSValueRef value, JSPropertyAttributes attributes, JSValueRef* exception); 495 495 496 496 /*! … … 503 503 @result true if the delete operation succeeds, otherwise false (for example, if the property has the kJSPropertyAttributeDontDelete attribute set). 504 504 */ 505 bool JSObjectDeleteProperty(JSContextRef ctx, JSObjectRef object, JSStringRef propertyName, JSValueRef* exception);505 JS_EXPORT bool JSObjectDeleteProperty(JSContextRef ctx, JSObjectRef object, JSStringRef propertyName, JSValueRef* exception); 506 506 507 507 /*! … … 515 515 @discussion Calling JSObjectGetPropertyAtIndex is equivalent to calling JSObjectGetProperty with a string containing propertyIndex, but JSObjectGetPropertyAtIndex provides optimized access to numeric properties. 516 516 */ 517 JS ValueRef JSObjectGetPropertyAtIndex(JSContextRef ctx, JSObjectRef object, unsigned propertyIndex, JSValueRef* exception);517 JS_EXPORT JSValueRef JSObjectGetPropertyAtIndex(JSContextRef ctx, JSObjectRef object, unsigned propertyIndex, JSValueRef* exception); 518 518 519 519 /*! … … 527 527 @discussion Calling JSObjectSetPropertyAtIndex is equivalent to calling JSObjectSetProperty with a string containing propertyIndex, but JSObjectSetPropertyAtIndex provides optimized access to numeric properties. 528 528 */ 529 void JSObjectSetPropertyAtIndex(JSContextRef ctx, JSObjectRef object, unsigned propertyIndex, JSValueRef value, JSValueRef* exception);529 JS_EXPORT void JSObjectSetPropertyAtIndex(JSContextRef ctx, JSObjectRef object, unsigned propertyIndex, JSValueRef value, JSValueRef* exception); 530 530 531 531 /*! … … 535 535 @result A void* that is the object's private data, if the object has private data, otherwise NULL. 536 536 */ 537 void* JSObjectGetPrivate(JSObjectRef object);537 JS_EXPORT void* JSObjectGetPrivate(JSObjectRef object); 538 538 539 539 /*! … … 545 545 @discussion The default object class does not allocate storage for private data. Only objects created with a non-NULL JSClass can store private data. 546 546 */ 547 bool JSObjectSetPrivate(JSObjectRef object, void* data);547 JS_EXPORT bool JSObjectSetPrivate(JSObjectRef object, void* data); 548 548 549 549 /*! … … 554 554 @result true if the object can be called as a function, otherwise false. 555 555 */ 556 bool JSObjectIsFunction(JSContextRef ctx, JSObjectRef object);556 JS_EXPORT bool JSObjectIsFunction(JSContextRef ctx, JSObjectRef object); 557 557 558 558 /*! … … 567 567 @result The JSValue that results from calling object as a function, or NULL if an exception is thrown or object is not a function. 568 568 */ 569 JS ValueRef JSObjectCallAsFunction(JSContextRef ctx, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception);569 JS_EXPORT JSValueRef JSObjectCallAsFunction(JSContextRef ctx, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception); 570 570 571 571 /*! … … 576 576 @result true if the object can be called as a constructor, otherwise false. 577 577 */ 578 bool JSObjectIsConstructor(JSContextRef ctx, JSObjectRef object);578 JS_EXPORT bool JSObjectIsConstructor(JSContextRef ctx, JSObjectRef object); 579 579 580 580 /*! … … 588 588 @result The JSObject that results from calling object as a constructor, or NULL if an exception is thrown or object is not a constructor. 589 589 */ 590 JS ObjectRef JSObjectCallAsConstructor(JSContextRef ctx, JSObjectRef object, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception);590 JS_EXPORT JSObjectRef JSObjectCallAsConstructor(JSContextRef ctx, JSObjectRef object, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception); 591 591 592 592 /*! … … 597 597 @result A JSPropertyNameArray containing the names object's enumerable properties. 598 598 */ 599 JS PropertyNameArrayRef JSObjectCopyPropertyNames(JSContextRef ctx, JSObjectRef object);599 JS_EXPORT JSPropertyNameArrayRef JSObjectCopyPropertyNames(JSContextRef ctx, JSObjectRef object); 600 600 601 601 /*! … … 605 605 @result A JSPropertyNameArray that is the same as array. 606 606 */ 607 JS PropertyNameArrayRef JSPropertyNameArrayRetain(JSPropertyNameArrayRef array);607 JS_EXPORT JSPropertyNameArrayRef JSPropertyNameArrayRetain(JSPropertyNameArrayRef array); 608 608 609 609 /*! … … 612 612 @param array The JSPropetyNameArray to release. 613 613 */ 614 void JSPropertyNameArrayRelease(JSPropertyNameArrayRef array);614 JS_EXPORT void JSPropertyNameArrayRelease(JSPropertyNameArrayRef array); 615 615 616 616 /*! … … 620 620 @result An integer count of the number of names in array. 621 621 */ 622 size_t JSPropertyNameArrayGetCount(JSPropertyNameArrayRef array);622 JS_EXPORT size_t JSPropertyNameArrayGetCount(JSPropertyNameArrayRef array); 623 623 624 624 /*! … … 629 629 @result A JSStringRef containing the property name. 630 630 */ 631 JS StringRef JSPropertyNameArrayGetNameAtIndex(JSPropertyNameArrayRef array, size_t index);631 JS_EXPORT JSStringRef JSPropertyNameArrayGetNameAtIndex(JSPropertyNameArrayRef array, size_t index); 632 632 633 633 /*! … … 637 637 @param propertyName The property name to add. 638 638 */ 639 void JSPropertyNameAccumulatorAddName(JSPropertyNameAccumulatorRef accumulator, JSStringRef propertyName);639 JS_EXPORT void JSPropertyNameAccumulatorAddName(JSPropertyNameAccumulatorRef accumulator, JSStringRef propertyName); 640 640 641 641 #ifdef __cplusplus -
trunk/JavaScriptCore/API/JSStringRef.h
r24774 r28097 54 54 @result A JSString containing chars. Ownership follows the Create Rule. 55 55 */ 56 JS StringRef JSStringCreateWithCharacters(const JSChar* chars, size_t numChars);56 JS_EXPORT JSStringRef JSStringCreateWithCharacters(const JSChar* chars, size_t numChars); 57 57 /*! 58 58 @function … … 61 61 @result A JSString containing string. Ownership follows the Create Rule. 62 62 */ 63 JS StringRef JSStringCreateWithUTF8CString(const char* string);63 JS_EXPORT JSStringRef JSStringCreateWithUTF8CString(const char* string); 64 64 65 65 /*! … … 69 69 @result A JSString that is the same as string. 70 70 */ 71 JS StringRef JSStringRetain(JSStringRef string);71 JS_EXPORT JSStringRef JSStringRetain(JSStringRef string); 72 72 /*! 73 73 @function … … 75 75 @param string The JSString to release. 76 76 */ 77 void JSStringRelease(JSStringRef string);77 JS_EXPORT void JSStringRelease(JSStringRef string); 78 78 79 79 /*! … … 83 83 @result The number of Unicode characters stored in string. 84 84 */ 85 size_t JSStringGetLength(JSStringRef string);85 JS_EXPORT size_t JSStringGetLength(JSStringRef string); 86 86 /*! 87 87 @function … … 92 92 backing store, which will be deallocated when string is deallocated. 93 93 */ 94 const JSChar* JSStringGetCharactersPtr(JSStringRef string);94 JS_EXPORT const JSChar* JSStringGetCharactersPtr(JSStringRef string); 95 95 96 96 /*! … … 104 104 up requiring could be less than this, but never more. 105 105 */ 106 size_t JSStringGetMaximumUTF8CStringSize(JSStringRef string);106 JS_EXPORT size_t JSStringGetMaximumUTF8CStringSize(JSStringRef string); 107 107 /*! 108 108 @function … … 118 118 @result The number of bytes written into buffer (including the null-terminator byte). 119 119 */ 120 size_t JSStringGetUTF8CString(JSStringRef string, char* buffer, size_t bufferSize);120 JS_EXPORT size_t JSStringGetUTF8CString(JSStringRef string, char* buffer, size_t bufferSize); 121 121 122 122 /*! … … 127 127 @result true if the two strings match, otherwise false. 128 128 */ 129 bool JSStringIsEqual(JSStringRef a, JSStringRef b);129 JS_EXPORT bool JSStringIsEqual(JSStringRef a, JSStringRef b); 130 130 /*! 131 131 @function … … 135 135 @result true if the two strings match, otherwise false. 136 136 */ 137 bool JSStringIsEqualToUTF8CString(JSStringRef a, const char* b);137 JS_EXPORT bool JSStringIsEqualToUTF8CString(JSStringRef a, const char* b); 138 138 139 139 #ifdef __cplusplus -
trunk/JavaScriptCore/API/JSStringRefBSTR.h
r27137 r28097 47 47 @result A JSString containing string. Ownership follows the Create Rule. 48 48 */ 49 JS StringRef JSStringCreateWithBSTR(const BSTR string);49 JS_EXPORT JSStringRef JSStringCreateWithBSTR(const BSTR string); 50 50 51 51 /*! … … 55 55 @result A BSTR containing string. Ownership follows the Create Rule. 56 56 */ 57 BSTR JSStringCopyBSTR(const JSStringRef string);57 JS_EXPORT BSTR JSStringCopyBSTR(const JSStringRef string); 58 58 59 59 #ifdef __cplusplus -
trunk/JavaScriptCore/API/JSStringRefCF.h
r19059 r28097 45 45 @result A JSString containing string. Ownership follows the Create Rule. 46 46 */ 47 JS StringRef JSStringCreateWithCFString(CFStringRef string);47 JS_EXPORT JSStringRef JSStringCreateWithCFString(CFStringRef string); 48 48 /*! 49 49 @function … … 53 53 @result A CFString containing string. Ownership follows the Create Rule. 54 54 */ 55 CFStringRef JSStringCopyCFString(CFAllocatorRef alloc, JSStringRef string);55 JS_EXPORT CFStringRef JSStringCopyCFString(CFAllocatorRef alloc, JSStringRef string); 56 56 57 57 #ifdef __cplusplus -
trunk/JavaScriptCore/API/JSValueRef.h
r15497 r28097 62 62 @result A value of type JSType that identifies value's type. 63 63 */ 64 JS Type JSValueGetType(JSContextRef ctx, JSValueRef value);64 JS_EXPORT JSType JSValueGetType(JSContextRef ctx, JSValueRef value); 65 65 66 66 /*! … … 71 71 @result true if value's type is the undefined type, otherwise false. 72 72 */ 73 bool JSValueIsUndefined(JSContextRef ctx, JSValueRef value);73 JS_EXPORT bool JSValueIsUndefined(JSContextRef ctx, JSValueRef value); 74 74 75 75 /*! … … 80 80 @result true if value's type is the null type, otherwise false. 81 81 */ 82 bool JSValueIsNull(JSContextRef ctx, JSValueRef value);82 JS_EXPORT bool JSValueIsNull(JSContextRef ctx, JSValueRef value); 83 83 84 84 /*! … … 89 89 @result true if value's type is the boolean type, otherwise false. 90 90 */ 91 bool JSValueIsBoolean(JSContextRef ctx, JSValueRef value);91 JS_EXPORT bool JSValueIsBoolean(JSContextRef ctx, JSValueRef value); 92 92 93 93 /*! … … 98 98 @result true if value's type is the number type, otherwise false. 99 99 */ 100 bool JSValueIsNumber(JSContextRef ctx, JSValueRef value);100 JS_EXPORT bool JSValueIsNumber(JSContextRef ctx, JSValueRef value); 101 101 102 102 /*! … … 107 107 @result true if value's type is the string type, otherwise false. 108 108 */ 109 bool JSValueIsString(JSContextRef ctx, JSValueRef value);109 JS_EXPORT bool JSValueIsString(JSContextRef ctx, JSValueRef value); 110 110 111 111 /*! … … 116 116 @result true if value's type is the object type, otherwise false. 117 117 */ 118 bool JSValueIsObject(JSContextRef ctx, JSValueRef value);118 JS_EXPORT bool JSValueIsObject(JSContextRef ctx, JSValueRef value); 119 119 120 120 /*! … … 126 126 @result true if value is an object and has jsClass in its class chain, otherwise false. 127 127 */ 128 bool JSValueIsObjectOfClass(JSContextRef ctx, JSValueRef value, JSClassRef jsClass);128 JS_EXPORT bool JSValueIsObjectOfClass(JSContextRef ctx, JSValueRef value, JSClassRef jsClass); 129 129 130 130 // Comparing values … … 139 139 @result true if the two values are equal, false if they are not equal or an exception is thrown. 140 140 */ 141 bool JSValueIsEqual(JSContextRef ctx, JSValueRef a, JSValueRef b, JSValueRef* exception);141 JS_EXPORT bool JSValueIsEqual(JSContextRef ctx, JSValueRef a, JSValueRef b, JSValueRef* exception); 142 142 143 143 /*! … … 149 149 @result true if the two values are strict equal, otherwise false. 150 150 */ 151 bool JSValueIsStrictEqual(JSContextRef ctx, JSValueRef a, JSValueRef b);151 JS_EXPORT bool JSValueIsStrictEqual(JSContextRef ctx, JSValueRef a, JSValueRef b); 152 152 153 153 /*! … … 160 160 @result true if value is an object constructed by constructor, as compared by the JS instanceof operator, otherwise false. 161 161 */ 162 bool JSValueIsInstanceOfConstructor(JSContextRef ctx, JSValueRef value, JSObjectRef constructor, JSValueRef* exception);162 JS_EXPORT bool JSValueIsInstanceOfConstructor(JSContextRef ctx, JSValueRef value, JSObjectRef constructor, JSValueRef* exception); 163 163 164 164 // Creating values … … 170 170 @result The unique undefined value. 171 171 */ 172 JS ValueRef JSValueMakeUndefined(JSContextRef ctx);172 JS_EXPORT JSValueRef JSValueMakeUndefined(JSContextRef ctx); 173 173 174 174 /*! … … 178 178 @result The unique null value. 179 179 */ 180 JS ValueRef JSValueMakeNull(JSContextRef ctx);180 JS_EXPORT JSValueRef JSValueMakeNull(JSContextRef ctx); 181 181 182 182 /*! … … 187 187 @result A JSValue of the boolean type, representing the value of boolean. 188 188 */ 189 JS ValueRef JSValueMakeBoolean(JSContextRef ctx, bool boolean);189 JS_EXPORT JSValueRef JSValueMakeBoolean(JSContextRef ctx, bool boolean); 190 190 191 191 /*! … … 196 196 @result A JSValue of the number type, representing the value of number. 197 197 */ 198 JS ValueRef JSValueMakeNumber(JSContextRef ctx, double number);198 JS_EXPORT JSValueRef JSValueMakeNumber(JSContextRef ctx, double number); 199 199 200 200 /*! … … 206 206 @result A JSValue of the string type, representing the value of string. 207 207 */ 208 JS ValueRef JSValueMakeString(JSContextRef ctx, JSStringRef string);208 JS_EXPORT JSValueRef JSValueMakeString(JSContextRef ctx, JSStringRef string); 209 209 210 210 // Converting to primitive values … … 217 217 @result The boolean result of conversion. 218 218 */ 219 bool JSValueToBoolean(JSContextRef ctx, JSValueRef value);219 JS_EXPORT bool JSValueToBoolean(JSContextRef ctx, JSValueRef value); 220 220 221 221 /*! … … 227 227 @result The numeric result of conversion, or NaN if an exception is thrown. 228 228 */ 229 double JSValueToNumber(JSContextRef ctx, JSValueRef value, JSValueRef* exception);229 JS_EXPORT double JSValueToNumber(JSContextRef ctx, JSValueRef value, JSValueRef* exception); 230 230 231 231 /*! … … 237 237 @result A JSString with the result of conversion, or NULL if an exception is thrown. Ownership follows the Create Rule. 238 238 */ 239 JS StringRef JSValueToStringCopy(JSContextRef ctx, JSValueRef value, JSValueRef* exception);239 JS_EXPORT JSStringRef JSValueToStringCopy(JSContextRef ctx, JSValueRef value, JSValueRef* exception); 240 240 241 241 /*! … … 247 247 @result The JSObject result of conversion, or NULL if an exception is thrown. 248 248 */ 249 JS ObjectRef JSValueToObject(JSContextRef ctx, JSValueRef value, JSValueRef* exception);249 JS_EXPORT JSObjectRef JSValueToObject(JSContextRef ctx, JSValueRef value, JSValueRef* exception); 250 250 251 251 // Garbage collection … … 259 259 A value may be protected multiple times and must be unprotected an equal number of times before becoming eligible for garbage collection. 260 260 */ 261 void JSValueProtect(JSContextRef ctx, JSValueRef value);261 JS_EXPORT void JSValueProtect(JSContextRef ctx, JSValueRef value); 262 262 263 263 /*! … … 269 269 equal number of times before becoming eligible for garbage collection. 270 270 */ 271 void JSValueUnprotect(JSContextRef ctx, JSValueRef value);271 JS_EXPORT void JSValueUnprotect(JSContextRef ctx, JSValueRef value); 272 272 273 273 #ifdef __cplusplus -
trunk/JavaScriptCore/ChangeLog
r28079 r28097 1 2007-11-27 Alp Toker <alp@atoker.com> 2 3 Reviewed by Maciej. 4 5 http://bugs.webkit.org/show_bug.cgi?id=15569 6 [gtk] GTK JavaScriptCore needs to export symbols for JSC API and WTF 7 8 Introduce JS_EXPORT to mark symbols to be exported as public API. 9 10 Export all public symbols in the JavaScriptCore C API. 11 12 This matches conventions for exporting symbols set by the CF and CG 13 frameworks. 14 15 * API/JSBase.h: 16 * API/JSContextRef.h: 17 * API/JSObjectRef.h: 18 * API/JSStringRef.h: 19 * API/JSStringRefBSTR.h: 20 * API/JSStringRefCF.h: 21 * API/JSValueRef.h: 22 1 23 2007-11-27 Anders Carlsson <andersca@apple.com> 2 24
Note: See TracChangeset
for help on using the changeset viewer.