Changeset 20949 for lang/cplusplus/llv8call/trunk/ext/libxml/libxml.h
- Timestamp:
- 10/08/08 09:16:42 (3 months ago)
- Files:
-
- 1 modified
-
lang/cplusplus/llv8call/trunk/ext/libxml/libxml.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/cplusplus/llv8call/trunk/ext/libxml/libxml.h
r20947 r20949 35 35 } 36 36 37 inline v8::Handle<v8::Function> cdata_class() { 38 return Handle<Function>::Cast( libxml_namespace()->Get(String::New("CDATASection")) ); 39 } 40 37 41 static inline Handle<Object> createNode(xmlDocPtr doc, xmlNodePtr node_raw) { 38 42 Handle<Value> consarg[2]; … … 56 60 } 57 61 62 static inline Handle<Object> createCDATA(xmlDocPtr doc, xmlNodePtr attr_raw) { 63 Handle<Value> consarg[2]; 64 consarg[0] = External::New(attr_raw); 65 consarg[1] = External::New(doc); 66 return cdata_class()->NewInstance(2, consarg); 67 } 68 58 69 #define ARG_node(name, n) EXTERNAL(xmlNodePtr, name, args[n]->ToObject(), 0) 59 70 #define ARG_attr(name, n) EXTERNAL(xmlAttrPtr, name, args[n]->ToObject(), 0)
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)