ext/xml/libxml.h in libxml-ruby-0.3.8.4 vs ext/xml/libxml.h in libxml-ruby-0.5.0
- old
+ new
@@ -4,16 +4,16 @@
#define __RUBY_LIBXML_H__
/* Don't nuke this block! It is used for automatically updating the
* versions below. VERSION = string formatting, VERNUM = numbered
* version for inline testing: increment both or none at all. */
-#define RUBY_LIBXML_VERSION "0.3.8.4"
-#define RUBY_LIBXML_VERNUM 384
-#define RUBY_LIBXML_VER_MAJ 0
-#define RUBY_LIBXML_VER_MIN 3
-#define RUBY_LIBXML_VER_MIC 8
-#define RUBY_LIBXML_VER_PATCH 4
+#define RUBY_LIBXML_VERSION "0.5.0"
+#define RUBY_LIBXML_VERNUM 500
+#define RUBY_LIBXML_VER_MAJ 0
+#define RUBY_LIBXML_VER_MIN 5
+#define RUBY_LIBXML_VER_MIC 0
+#define RUBY_LIBXML_VER_PATCH 0
#include <ruby.h>
#include <rubyio.h>
#include <util.h>
#include <libxml/parser.h>
@@ -22,10 +22,18 @@
#include <libxml/xmlversion.h>
#include <libxml/xmlmemory.h>
#include <libxml/xpath.h>
#include <libxml/valid.h>
#include <libxml/catalog.h>
+#include <libxml/HTMLparser.h>
+#include <libxml/xmlreader.h>
+
+// Maybe not yet defined in ruby
+#ifndef RSTRING_LEN
+#define RSTRING_LEN(x) RSTRING(x)->len
+#endif
+
#ifdef LIBXML_DEBUG_ENABLED
#include <libxml/xpathInternals.h>
#endif
#ifdef LIBXML_XINCLUDE_ENABLED
#include <libxml/xinclude.h>
@@ -55,11 +63,10 @@
typedef struct rx_xpath_data {
VALUE ctxt;
} rx_xpath_data;
#include "ruby_xml_attr.h"
-#include "ruby_xml_attribute.h"
#include "ruby_xml_document.h"
#include "ruby_xml_node.h"
#include "ruby_xml_node_set.h"
#include "ruby_xml_ns.h"
#include "ruby_xml_parser.h"
@@ -72,9 +79,11 @@
#include "ruby_xml_xpointer.h"
#include "ruby_xml_xpointer_context.h"
#include "ruby_xml_input_cbg.h"
#include "ruby_xml_dtd.h"
#include "ruby_xml_schema.h"
+#include "ruby_xml_html_parser.h"
+#include "ruby_xml_reader.h"
extern VALUE mXML;
extern VALUE eXMLError;
void ruby_init_parser(void);