Changeset 15480 in webkit for trunk/JavaScriptCore/API/JSBase.h


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

Approved by Maciej, RS by Beth.


JSObjectMakeFunction -> JSObjectMakeFunctionWithCallback
JSObjectMakeFunctionWithBody -> JSObjectMakeFunction


because the latter is more common, and more fundamental, than the former.

  • API/APICast.h: (toJS):
  • API/JSBase.h:
  • API/JSCallbackObject.cpp: (KJS::JSCallbackObject::getOwnPropertySlot): (KJS::JSCallbackObject::put): (KJS::JSCallbackObject::deleteProperty): (KJS::JSCallbackObject::getPropertyNames): (KJS::JSCallbackObject::staticValueGetter): (KJS::JSCallbackObject::staticFunctionGetter):
  • API/JSClassRef.cpp: (OpaqueJSClass::OpaqueJSClass): (OpaqueJSClass::~OpaqueJSClass):
  • API/JSClassRef.h:
  • API/JSObjectRef.cpp: (JSClassCreate): (JSObjectMakeFunctionWithCallback): (JSObjectMakeFunction): (OpaqueJSPropertyNameArray::OpaqueJSPropertyNameArray): (JSObjectCopyPropertyNames):
  • API/JSObjectRef.h:
  • API/minidom.c: (main):
  • API/testapi.c: (main):
  • ChangeLog:
  • JavaScriptCore.exp:
File:
1 edited

Legend:

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

    r15468 r15480  
    3333
    3434/*! @typedef JSContextRef A JavaScript execution context. Holds the global object and other execution state. */
    35 typedef const struct __JSContext* JSContextRef;
     35typedef const struct OpaqueJSContext* JSContextRef;
    3636
    3737/*! @typedef JSGlobalContextRef A global JavaScript execution context. A JSGlobalContext is a JSContext. */
    38 typedef struct __JSContext* JSGlobalContextRef;
     38typedef struct OpaqueJSContext* JSGlobalContextRef;
    3939
    4040/*! @typedef JSString A UTF16 character buffer. The fundamental string representation in JavaScript. */
    41 typedef struct __JSString* JSStringRef;
     41typedef struct OpaqueJSString* JSStringRef;
    4242
    4343/*! @typedef JSClassRef A JavaScript class. Used with JSObjectMake to construct objects with custom behavior. */
    44 typedef struct __JSClass* JSClassRef;
     44typedef struct OpaqueJSClass* JSClassRef;
    4545
    4646/*! @typedef JSPropertyNameArrayRef An array of JavaScript property names. */
    47 typedef struct __JSPropertyNameArray* JSPropertyNameArrayRef;
     47typedef struct OpaqueJSPropertyNameArray* JSPropertyNameArrayRef;
    4848
    4949/*! @typedef JSPropertyNameAccumulatorRef A data type used to collect a JavaScript object's property names. */
    50 typedef struct __JSPropertyNameAccumulator* JSPropertyNameAccumulatorRef;
     50typedef struct OpaqueJSPropertyNameAccumulator* JSPropertyNameAccumulatorRef;
    5151
    5252
     
    5454
    5555/*! @typedef JSValueRef A JavaScript value. The base type for all JavaScript values, and polymorphic functions on them. */
    56 typedef const struct __JSValue* JSValueRef;
     56typedef const struct OpaqueJSValue* JSValueRef;
    5757
    5858/*! @typedef JSObjectRef A JavaScript object. A JSObject is a JSValue. */
    59 typedef struct __JSValue* JSObjectRef;
     59typedef struct OpaqueJSValue* JSObjectRef;
    6060
    6161#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.