Sha256: 384582eb776ffddb92ab53acb868f220e48e2aa74ef7a3b25b405565192dce5c

Contents?: true

Size: 1.08 KB

Versions: 7

Compression:

Stored size: 1.08 KB

Contents

#include <native.h>

VALUE mNokogiri ;
VALUE mNokogiriXml ;
VALUE mNokogiriHtml ;
VALUE mNokogiriXslt ;
VALUE mNokogiriXmlSax ;
VALUE mNokogiriHtmlSax ;

void Init_native()
{
  mNokogiri = rb_const_get(rb_cObject, rb_intern("Nokogiri"));
  mNokogiriXml = rb_const_get(mNokogiri, rb_intern("XML"));
  mNokogiriHtml = rb_const_get(mNokogiri, rb_intern("HTML"));
  mNokogiriXslt = rb_const_get(mNokogiri, rb_intern("XSLT"));
  mNokogiriXmlSax = rb_const_get(mNokogiriXml, rb_intern("SAX"));
  mNokogiriHtmlSax = rb_const_get(mNokogiriHtml, rb_intern("SAX"));

  rb_const_set( mNokogiri,
                rb_intern("LIBXML_VERSION"),
                rb_str_new2(LIBXML_DOTTED_VERSION)
              );

  xmlSetStructuredErrorFunc(NULL, Nokogiri_error_handler);

  init_xml_document();
  init_html_document();
  init_xml_node();
  init_xml_text();
  init_xml_cdata();
  init_xml_comment();
  init_xml_node_set();
  init_xml_xpath_context();
  init_xml_xpath();
  init_xml_sax_parser();
  init_xml_reader();
  init_xml_dtd();
  init_html_sax_parser();
  init_xslt_stylesheet();
  init_xml_syntax_error();
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
nokogiri-1.1.1-java ext/nokogiri/native.c
nokogiri-1.1.1-x86-mswin32-60 ext/nokogiri/native.c
nokogiri-1.0.7-x86-mswin32-60 ext/nokogiri/native.c
nokogiri-1.0.7 ext/nokogiri/native.c
nokogiri-1.1.0 ext/nokogiri/native.c
nokogiri-1.1.0-x86-mswin32-60 ext/nokogiri/native.c
nokogiri-1.1.1 ext/nokogiri/native.c