Show
Ignore:
Timestamp:
10/08/08 09:00:07 (3 months ago)
Author:
tokuhirom
Message:

added attr.* methods

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/cplusplus/llv8call/trunk/ext/libxml/libxml.h

    r20881 r20947  
    4949} 
    5050 
    51 static inline Handle<Object> createAttr(xmlAttrPtr attr_raw) { 
    52     Handle<Value> consarg[1]; 
     51static inline Handle<Object> createAttr(xmlDocPtr doc, xmlAttrPtr attr_raw) { 
     52    Handle<Value> consarg[2]; 
    5353    consarg[0] = External::New(attr_raw); 
    54     return attr_class()->NewInstance(1, consarg); 
     54    consarg[1] = External::New(doc); 
     55    return attr_class()->NewInstance(2, consarg); 
    5556} 
    5657