Changeset 15465 in webkit for trunk/JavaScriptCore
- Timestamp:
- Jul 15, 2006, 7:26:40 PM (19 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSNode.c
r15462 r15465 33 33 static JSClassRef JSNode_class(JSContextRef context); 34 34 35 static JSValueRef JSNodePrototype_appendChild(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception)35 static JSValueRef JSNodePrototype_appendChild(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) 36 36 { 37 37 UNUSED_PARAM(context); … … 57 57 } 58 58 59 static JSValueRef JSNodePrototype_removeChild(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception)59 static JSValueRef JSNodePrototype_removeChild(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) 60 60 { 61 61 UNUSED_PARAM(context); … … 77 77 } 78 78 79 static JSValueRef JSNodePrototype_replaceChild(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception)79 static JSValueRef JSNodePrototype_replaceChild(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) 80 80 { 81 81 UNUSED_PARAM(context); … … 197 197 } 198 198 199 JSObjectRef JSNode_construct(JSContextRef context, JSObjectRef object, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception)199 JSObjectRef JSNode_construct(JSContextRef context, JSObjectRef object, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) 200 200 { 201 201 UNUSED_PARAM(object); -
trunk/JavaScriptCore/API/JSNodeList.c
r15462 r15465 29 29 #include "UnusedParam.h" 30 30 31 static JSValueRef JSNodeListPrototype_item(JSContextRef context, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception)31 static JSValueRef JSNodeListPrototype_item(JSContextRef context, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) 32 32 { 33 33 if (argumentCount > 0) { -
trunk/JavaScriptCore/API/JSObjectRef.cpp
r15463 r15465 90 90 } 91 91 92 JSObjectRef JSObjectMakeFunctionWithBody(JSContextRef context, JSStringRef name, unsigned parameterCount, JSStringRef parameterNames[], JSStringRef body, JSStringRef sourceURL, int startingLineNumber, JSValueRef* exception)92 JSObjectRef JSObjectMakeFunctionWithBody(JSContextRef context, JSStringRef name, unsigned parameterCount, const JSStringRef parameterNames[], JSStringRef body, JSStringRef sourceURL, int startingLineNumber, JSValueRef* exception) 93 93 { 94 94 JSLock lock; … … 257 257 } 258 258 259 JSValueRef JSObjectCallAsFunction(JSContextRef context, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception)259 JSValueRef JSObjectCallAsFunction(JSContextRef context, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) 260 260 { 261 261 JSLock lock; … … 287 287 } 288 288 289 JSObjectRef JSObjectCallAsConstructor(JSContextRef context, JSObjectRef object, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception)289 JSObjectRef JSObjectCallAsConstructor(JSContextRef context, JSObjectRef object, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) 290 290 { 291 291 JSLock lock; -
trunk/JavaScriptCore/API/minidom.c
r15444 r15465 30 30 31 31 static char* createStringWithContentsOfFile(const char* fileName); 32 static JSValueRef print(JSContextRef context, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception);32 static JSValueRef print(JSContextRef context, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception); 33 33 34 34 int main(int argc, char* argv[]) … … 79 79 } 80 80 81 static JSValueRef print(JSContextRef context, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception)81 static JSValueRef print(JSContextRef context, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) 82 82 { 83 83 if (argumentCount > 0) { -
trunk/JavaScriptCore/API/testapi.c
r15463 r15465 185 185 } 186 186 187 static JSValueRef MyObject_callAsFunction(JSContextRef context, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception)187 static JSValueRef MyObject_callAsFunction(JSContextRef context, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) 188 188 { 189 189 UNUSED_PARAM(context); … … 197 197 } 198 198 199 static JSObjectRef MyObject_callAsConstructor(JSContextRef context, JSObjectRef object, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception)199 static JSObjectRef MyObject_callAsConstructor(JSContextRef context, JSObjectRef object, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) 200 200 { 201 201 UNUSED_PARAM(context); … … 274 274 } 275 275 276 static JSValueRef print_callAsFunction(JSContextRef context, JSObjectRef functionObject, JSObjectRef thisObject, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception)276 static JSValueRef print_callAsFunction(JSContextRef context, JSObjectRef functionObject, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) 277 277 { 278 278 UNUSED_PARAM(functionObject); … … 291 291 } 292 292 293 static JSObjectRef myConstructor_callAsConstructor(JSContextRef context, JSObjectRef constructorObject, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception)293 static JSObjectRef myConstructor_callAsConstructor(JSContextRef context, JSObjectRef constructorObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) 294 294 { 295 295 UNUSED_PARAM(constructorObject); -
trunk/JavaScriptCore/ChangeLog
r15464 r15465 1 2006-07-15 Darin Adler <[email protected]> 2 3 - oops, missed a few more arrays that had to be const 4 5 * API/JSNode.c: 6 (JSNodePrototype_appendChild): Added const. 7 (JSNodePrototype_removeChild): Ditto. 8 (JSNodePrototype_replaceChild): Ditto. 9 (JSNode_construct): Ditto. 10 * API/JSNodeList.c: 11 (JSNodeListPrototype_item): Ditto. 12 * API/JSObjectRef.cpp: 13 (JSObjectMakeFunctionWithBody): Ditto. 14 (JSObjectCallAsFunction): Ditto. 15 (JSObjectCallAsConstructor): Ditto. 16 * API/minidom.c: 17 (print): Ditto. 18 * API/testapi.c: 19 (MyObject_callAsFunction): Ditto. 20 (MyObject_callAsConstructor): Ditto. 21 (print_callAsFunction): Ditto. 22 (myConstructor_callAsConstructor): Ditto. 23 1 24 2006-07-15 Darin Adler <[email protected]> 2 25
Note:
See TracChangeset
for help on using the changeset viewer.