ext/xml/ruby_xml_attribute.c in libxml-ruby-0.3.8 vs ext/xml/ruby_xml_attribute.c in libxml-ruby-0.3.8.2
- old
+ new
@@ -1,6 +1,6 @@
-/* $Id: ruby_xml_attribute.c,v 1.1 2006/02/21 20:40:16 roscopeco Exp $ */
+/* $Id: ruby_xml_attribute.c,v 1.2 2006/11/20 01:22:07 roscopeco Exp $ */
/* Please see the LICENSE file for copyright and distribution information */
#include "libxml.h"
#include "ruby_xml_attribute.h"
@@ -14,11 +14,11 @@
ruby_xml_attribute *rxa;
Data_Get_Struct(self, ruby_xml_attribute, rxa);
if (rxa->attribute->children == NULL)
return(Qnil);
else
- return(ruby_xml_node_new2(cXMLNode, rxa->xd, rxa->attribute->children));
+ return(ruby_xml_node_new_ptr(cXMLNode, rxa->xd, rxa->attribute->children));
}
VALUE
ruby_xml_attribute_children_q(VALUE self) {
@@ -72,11 +72,11 @@
ruby_xml_attribute *rxa;
Data_Get_Struct(self, ruby_xml_attribute, rxa);
if (rxa->attribute->last == NULL)
return(Qnil);
else
- return(ruby_xml_node_new2(cXMLNode, rxa->xd, rxa->attribute->last));
+ return(ruby_xml_node_new_ptr(cXMLNode, rxa->xd, rxa->attribute->last));
}
VALUE
ruby_xml_attribute_last_q(VALUE self) {
@@ -145,11 +145,11 @@
ruby_xml_attribute *rxa;
Data_Get_Struct(self, ruby_xml_attribute, rxa);
if (rxa->attribute->next == NULL)
return(Qnil);
else
- return(ruby_xml_node_new2(cXMLNode, rxa->xd, rxa->attribute->next));
+ return(ruby_xml_node_new_ptr(cXMLNode, rxa->xd, rxa->attribute->next));
}
VALUE
ruby_xml_attribute_next_q(VALUE self) {
@@ -185,10 +185,10 @@
ruby_xml_attribute *rxa;
Data_Get_Struct(self, ruby_xml_attribute, rxa);
if (rxa->attribute->prev == NULL)
return(Qnil);
else
- return(ruby_xml_node_new2(cXMLNode, rxa->xd, rxa->attribute->prev));
+ return(ruby_xml_node_new_ptr(cXMLNode, rxa->xd, rxa->attribute->prev));
}
VALUE
ruby_xml_attribute_prev_q(VALUE self) {
ruby_xml_attribute *rxa;