Ignore:
Timestamp:
Jul 14, 2006, 9:16:30 PM (19 years ago)
Author:
ggaren
Message:

RS by Maciej.


Global replace in the API of argc/argv with argumentCount/arguments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/API/JSObjectRef.h

    r15443 r15444  
    176176@param function A JSObject that is the function being called.
    177177@param thisObject A JSObject that is the 'this' variable in the function's scope.
    178 @param argc An integer count of the number of arguments in argv.
    179 @param argv A JSValue array of the  arguments passed to the function.
     178@param argumentCount An integer count of the number of arguments in arguments.
     179@param arguments A JSValue array of the  arguments passed to the function.
    180180@param exception A pointer to a JSValueRef in which to return an exception, if any.
    181181@result A JSValue that is the function's return value.
    182182@discussion If you named your function CallAsFunction, you would declare it like this:
    183183
    184 JSValueRef CallAsFunction(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argc, JSValueRef argv[], JSValueRef* exception);
     184JSValueRef CallAsFunction(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception);
    185185
    186186If your callback were invoked by the JavaScript expression 'myObject.myMemberFunction()', function would be set to myMemberFunction, and thisObject would be set to myObject.
     
    189189*/
    190190typedef JSValueRef
    191 (*JSObjectCallAsFunctionCallback) (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argc, JSValueRef argv[], JSValueRef* exception);
     191(*JSObjectCallAsFunctionCallback) (JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception);
    192192
    193193/*!
     
    196196@param context The current execution context.
    197197@param constructor A JSObject that is the constructor being called.
    198 @param argc An integer count of the number of arguments in argv.
    199 @param argv A JSValue array of the  arguments passed to the function.
     198@param argumentCount An integer count of the number of arguments in arguments.
     199@param arguments A JSValue array of the  arguments passed to the function.
    200200@param exception A pointer to a JSValueRef in which to return an exception, if any.
    201201@result A JSObject that is the constructor's return value.
    202202@discussion If you named your function CallAsConstructor, you would declare it like this:
    203203
    204 JSObjectRef CallAsConstructor(JSContextRef context, JSObjectRef constructor, size_t argc, JSValueRef argv[], JSValueRef* exception);
     204JSObjectRef CallAsConstructor(JSContextRef context, JSObjectRef constructor, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception);
    205205
    206206If your callback were invoked by the JavaScript expression 'new myConstructorFunction()', constructor would be set to myConstructorFunction.
     
    209209*/
    210210typedef JSObjectRef
    211 (*JSObjectCallAsConstructorCallback) (JSContextRef context, JSObjectRef constructor, size_t argc, JSValueRef argv[], JSValueRef* exception);
     211(*JSObjectCallAsConstructorCallback) (JSContextRef context, JSObjectRef constructor, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception);
    212212
    213213/*!
     
    500500@param object The JSObject to call as a function.
    501501@param thisObject The object to use as "this," or NULL to use the global object as "this."
    502 @param argc An integer count of the number of arguments in argv.
    503 @param argv A JSValue array of the  arguments to pass to the function.
     502@param argumentCount An integer count of the number of arguments in arguments.
     503@param arguments A JSValue array of the  arguments to pass to the function.
    504504@param exception A pointer to a JSValueRef in which to store an exception, if any. Pass NULL if you do not care to store an exception.
    505505@result The JSValue that results from calling object as a function, or NULL if an exception is thrown or object is not a function.
    506506*/
    507 JSValueRef JSObjectCallAsFunction(JSContextRef context, JSObjectRef object, JSObjectRef thisObject, size_t argc, JSValueRef argv[], JSValueRef* exception);
     507JSValueRef JSObjectCallAsFunction(JSContextRef context, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception);
    508508/*!
    509509@function
     
    518518@param context The execution context to use.
    519519@param object The JSObject to call as a constructor.
    520 @param argc An integer count of the number of arguments in argv.
    521 @param argv A JSValue array of the  arguments to pass to the function.
     520@param argumentCount An integer count of the number of arguments in arguments.
     521@param arguments A JSValue array of the  arguments to pass to the function.
    522522@param exception A pointer to a JSValueRef in which to store an exception, if any. Pass NULL if you do not care to store an exception.
    523523@result The JSObject that results from calling object as a constructor, or NULL if an exception is thrown or object is not a constructor.
    524524*/
    525 JSObjectRef JSObjectCallAsConstructor(JSContextRef context, JSObjectRef object, size_t argc, JSValueRef argv[], JSValueRef* exception);
     525JSObjectRef JSObjectCallAsConstructor(JSContextRef context, JSObjectRef object, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception);
    526526
    527527/*!
Note: See TracChangeset for help on using the changeset viewer.