Sha256: 18139be84e8ba8e9e0b0ddffe7c86e6a89dc32e81b22323659af0b97aaaa2ce8
Contents?: true
Size: 1.75 KB
Versions: 4
Compression:
Stored size: 1.75 KB
Contents
/* $Id: libxml.c 462 2008-07-15 21:52:47Z cfis $ */ /* Please see the LICENSE file for copyright and distribution information */ #include "ruby_libxml.h" VALUE mLibXML; VALUE mXML; VALUE eXMLError; #if defined(_WIN32) __declspec(dllexport) #endif void Init_libxml_ruby(void) { /* Some libxml memory goo that should be done before anything else */ #ifdef NONE xmlMemGet((xmlFreeFunc *) & freeFunc, (xmlMallocFunc *) & mallocFunc, (xmlReallocFunc *) & reallocFunc, (xmlStrdupFunc *) & strdupFunc); if (xmlMemSetup((xmlFreeFunc)RubyMemFree, (xmlMallocFunc)RubyMemMalloc, (xmlReallocFunc)RubyMemRealloc, (xmlStrdupFunc)RubyMemStrdup) != 0) rb_fatal("could not install the memory handlers for libxml"); #endif mLibXML = rb_define_module("LibXML"); mXML = rb_define_module_under(mLibXML, "XML"); eXMLError = rb_define_class_under(mXML, "Error", rb_eRuntimeError); rb_define_const(mXML, "XML_NAMESPACE", rb_str_new2((const char*)XML_XML_NAMESPACE)); ruby_init_state(); ruby_init_parser(); ruby_init_xml_parser_context(); ruby_init_xml_attributes(); ruby_init_xml_attr(); ruby_init_xml_document(); ruby_init_xml_node(); ruby_init_xml_node_set(); ruby_init_xml_ns(); ruby_init_xml_sax_parser(); ruby_init_xml_xinclude(); ruby_init_xml_xpath(); ruby_init_xml_xpath_context(); ruby_init_xml_xpointer(); ruby_init_xml_xpointer_context(); ruby_init_html_parser(); ruby_init_input_callbacks(); ruby_init_xml_dtd(); ruby_init_xml_schema(); ruby_init_xml_reader(); ruby_xml_parser_default_substitute_entities_set(cXMLParser, Qtrue); ruby_xml_parser_default_load_external_dtd_set(cXMLParser, Qtrue); }
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
libxml-ruby-0.8.0-x86-mswin32-60 | ext/libxml/libxml.c |
libxml-ruby-0.8.0 | ext/libxml/libxml.c |
libxml-ruby-0.8.1 | ext/libxml/libxml.c |
libxml-ruby-0.8.1-x86-mswin32-60 | ext/libxml/libxml.c |