public
Description: Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser with XPath and CSS selector support.
Homepage: http://nokogiri.rubyforge.org/
Clone URL: git://github.com/tenderlove/nokogiri.git
wrap_xml takes care of private pointers
mdalessio (author)
Sun Sep 28 19:06:56 -0700 2008
commit  bc7abad32e4d6e4316d843dde7ae651130577653
tree    cef5b18a59bc943b1ec9d95f1dc731465db5504f
parent  f65221ae9d5940576a25ffa00d6ddea0f9f87a62
...
14
15
16
17
18
19
20
 
21
22
23
...
14
15
16
 
 
 
 
17
18
19
20
0
@@ -14,10 +14,7 @@ static VALUE dup(VALUE self)
0
   dup = xmlCopyNode(node, 1);
0
   if(dup == NULL) return Qnil;
0
 
0
- VALUE rb_dup = Nokogiri_wrap_xml_node(dup);
0
- node->_private = (void*)rb_dup;
0
-
0
- return rb_dup;
0
+ return Nokogiri_wrap_xml_node(dup);
0
 }
0
 
0
 /*

Comments

    No one has commented yet.