Changeset 35775 in webkit for trunk/JavaScriptCore/API/APICast.h
- Timestamp:
- Aug 15, 2008, 12:43:48 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/APICast.h
r35442 r35775 41 41 typedef const struct OpaqueJSContext* JSContextRef; 42 42 typedef struct OpaqueJSContext* JSGlobalContextRef; 43 typedef struct OpaqueJSString* JSStringRef;44 43 typedef struct OpaqueJSPropertyNameAccumulator* JSPropertyNameAccumulatorRef; 45 44 typedef const struct OpaqueJSValue* JSValueRef; … … 61 60 { 62 61 return reinterpret_cast<KJS::JSValue*>(const_cast<OpaqueJSValue*>(v)); 63 }64 65 inline KJS::UString::Rep* toJS(JSStringRef b)66 {67 return reinterpret_cast<KJS::UString::Rep*>(b);68 62 } 69 63 … … 91 85 { 92 86 return reinterpret_cast<JSValueRef*>(const_cast<const KJS::JSValue**>(v)); 93 }94 95 inline JSStringRef toRef(KJS::UString::Rep* s)96 {97 return reinterpret_cast<JSStringRef>(s);98 87 } 99 88
Note:
See TracChangeset
for help on using the changeset viewer.