Changeset 15465 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Jul 15, 2006, 7:26:40 PM (19 years ago)
Author:
darin
Message:
  • oops, missed a few more arrays that had to be const
  • API/JSNode.c: (JSNodePrototype_appendChild): Added const. (JSNodePrototype_removeChild): Ditto. (JSNodePrototype_replaceChild): Ditto. (JSNode_construct): Ditto.
  • API/JSNodeList.c: (JSNodeListPrototype_item): Ditto.
  • API/JSObjectRef.cpp: (JSObjectMakeFunctionWithBody): Ditto. (JSObjectCallAsFunction): Ditto. (JSObjectCallAsConstructor): Ditto.
  • API/minidom.c: (print): Ditto.
  • API/testapi.c: (MyObject_callAsFunction): Ditto. (MyObject_callAsConstructor): Ditto. (print_callAsFunction): Ditto. (myConstructor_callAsConstructor): Ditto.
Location:
trunk/JavaScriptCore
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/API/JSNode.c

    r15462 r15465  
    3333static JSClassRef JSNode_class(JSContextRef context);
    3434
    35 static JSValueRef JSNodePrototype_appendChild(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception)
     35static JSValueRef JSNodePrototype_appendChild(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
    3636{
    3737    UNUSED_PARAM(context);
     
    5757}
    5858
    59 static JSValueRef JSNodePrototype_removeChild(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception)
     59static JSValueRef JSNodePrototype_removeChild(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
    6060{
    6161    UNUSED_PARAM(context);
     
    7777}
    7878
    79 static JSValueRef JSNodePrototype_replaceChild(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception)
     79static JSValueRef JSNodePrototype_replaceChild(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
    8080{
    8181    UNUSED_PARAM(context);
     
    197197}
    198198
    199 JSObjectRef JSNode_construct(JSContextRef context, JSObjectRef object, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception)
     199JSObjectRef JSNode_construct(JSContextRef context, JSObjectRef object, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
    200200{
    201201    UNUSED_PARAM(object);
  • trunk/JavaScriptCore/API/JSNodeList.c

    r15462 r15465  
    2929#include "UnusedParam.h"
    3030
    31 static JSValueRef JSNodeListPrototype_item(JSContextRef context, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception)
     31static JSValueRef JSNodeListPrototype_item(JSContextRef context, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
    3232{
    3333    if (argumentCount > 0) {
  • trunk/JavaScriptCore/API/JSObjectRef.cpp

    r15463 r15465  
    9090}
    9191
    92 JSObjectRef JSObjectMakeFunctionWithBody(JSContextRef context, JSStringRef name, unsigned parameterCount, JSStringRef parameterNames[], JSStringRef body, JSStringRef sourceURL, int startingLineNumber, JSValueRef* exception)
     92JSObjectRef JSObjectMakeFunctionWithBody(JSContextRef context, JSStringRef name, unsigned parameterCount, const JSStringRef parameterNames[], JSStringRef body, JSStringRef sourceURL, int startingLineNumber, JSValueRef* exception)
    9393{
    9494    JSLock lock;
     
    257257}
    258258
    259 JSValueRef JSObjectCallAsFunction(JSContextRef context, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception)
     259JSValueRef JSObjectCallAsFunction(JSContextRef context, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
    260260{
    261261    JSLock lock;
     
    287287}
    288288
    289 JSObjectRef JSObjectCallAsConstructor(JSContextRef context, JSObjectRef object, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception)
     289JSObjectRef JSObjectCallAsConstructor(JSContextRef context, JSObjectRef object, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
    290290{
    291291    JSLock lock;
  • trunk/JavaScriptCore/API/minidom.c

    r15444 r15465  
    3030
    3131static char* createStringWithContentsOfFile(const char* fileName);
    32 static JSValueRef print(JSContextRef context, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception);
     32static JSValueRef print(JSContextRef context, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception);
    3333
    3434int main(int argc, char* argv[])
     
    7979}
    8080
    81 static JSValueRef print(JSContextRef context, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception)
     81static JSValueRef print(JSContextRef context, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
    8282{
    8383    if (argumentCount > 0) {
  • trunk/JavaScriptCore/API/testapi.c

    r15463 r15465  
    185185}
    186186
    187 static JSValueRef MyObject_callAsFunction(JSContextRef context, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception)
     187static JSValueRef MyObject_callAsFunction(JSContextRef context, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
    188188{
    189189    UNUSED_PARAM(context);
     
    197197}
    198198
    199 static JSObjectRef MyObject_callAsConstructor(JSContextRef context, JSObjectRef object, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception)
     199static JSObjectRef MyObject_callAsConstructor(JSContextRef context, JSObjectRef object, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
    200200{
    201201    UNUSED_PARAM(context);
     
    274274}
    275275
    276 static JSValueRef print_callAsFunction(JSContextRef context, JSObjectRef functionObject, JSObjectRef thisObject, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception)
     276static JSValueRef print_callAsFunction(JSContextRef context, JSObjectRef functionObject, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
    277277{
    278278    UNUSED_PARAM(functionObject);
     
    291291}
    292292
    293 static JSObjectRef myConstructor_callAsConstructor(JSContextRef context, JSObjectRef constructorObject, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception)
     293static JSObjectRef myConstructor_callAsConstructor(JSContextRef context, JSObjectRef constructorObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
    294294{
    295295    UNUSED_PARAM(constructorObject);
  • trunk/JavaScriptCore/ChangeLog

    r15464 r15465  
     12006-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
    1242006-07-15  Darin Adler  <[email protected]>
    225
Note: See TracChangeset for help on using the changeset viewer.