libxml-ruby 5.0.5 → 5.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/HISTORY +7 -0
  3. data/Rakefile +98 -98
  4. data/ext/libxml/extconf.h +1 -0
  5. data/ext/libxml/libxml.c +79 -79
  6. data/ext/libxml/ruby_xml_attr.c +333 -333
  7. data/ext/libxml/ruby_xml_attr.h +12 -12
  8. data/ext/libxml/ruby_xml_attr_decl.h +11 -11
  9. data/ext/libxml/ruby_xml_cbg.c +85 -85
  10. data/ext/libxml/ruby_xml_dtd.h +9 -9
  11. data/ext/libxml/ruby_xml_html_parser.c +91 -91
  12. data/ext/libxml/ruby_xml_html_parser.h +10 -10
  13. data/ext/libxml/ruby_xml_html_parser_context.h +10 -10
  14. data/ext/libxml/ruby_xml_html_parser_options.c +48 -48
  15. data/ext/libxml/ruby_xml_html_parser_options.h +10 -10
  16. data/ext/libxml/ruby_xml_input_cbg.h +20 -20
  17. data/ext/libxml/ruby_xml_io.c +47 -47
  18. data/ext/libxml/ruby_xml_io.h +10 -10
  19. data/ext/libxml/ruby_xml_namespace.h +10 -10
  20. data/ext/libxml/ruby_xml_namespaces.c +293 -293
  21. data/ext/libxml/ruby_xml_namespaces.h +9 -9
  22. data/ext/libxml/ruby_xml_node.h +13 -13
  23. data/ext/libxml/ruby_xml_parser.c +91 -91
  24. data/ext/libxml/ruby_xml_parser_context.h +10 -10
  25. data/ext/libxml/ruby_xml_reader.h +14 -14
  26. data/ext/libxml/ruby_xml_relaxng.h +8 -8
  27. data/ext/libxml/ruby_xml_sax2_handler.h +10 -10
  28. data/ext/libxml/ruby_xml_sax_parser.h +10 -10
  29. data/ext/libxml/ruby_xml_schema.h +25 -25
  30. data/ext/libxml/ruby_xml_schema_attribute.h +37 -37
  31. data/ext/libxml/ruby_xml_schema_element.h +11 -11
  32. data/ext/libxml/ruby_xml_schema_facet.c +50 -50
  33. data/ext/libxml/ruby_xml_schema_facet.h +9 -9
  34. data/ext/libxml/ruby_xml_schema_type.h +9 -9
  35. data/ext/libxml/ruby_xml_version.h +2 -2
  36. data/ext/libxml/ruby_xml_writer.c +1124 -1124
  37. data/ext/libxml/ruby_xml_writer.h +6 -6
  38. data/ext/libxml/ruby_xml_xinclude.c +20 -20
  39. data/ext/libxml/ruby_xml_xinclude.h +11 -11
  40. data/ext/libxml/ruby_xml_xpath.c +195 -195
  41. data/ext/libxml/ruby_xml_xpath.h +15 -15
  42. data/ext/libxml/ruby_xml_xpath_context.c +362 -362
  43. data/ext/libxml/ruby_xml_xpath_context.h +9 -9
  44. data/ext/libxml/ruby_xml_xpath_expression.h +10 -10
  45. data/ext/libxml/ruby_xml_xpath_object.h +17 -17
  46. data/lib/libxml-ruby.rb +2 -2
  47. data/test/test_error.rb +5 -2
  48. data/test/test_helper.rb +1 -0
  49. data/test/test_writer.rb +500 -468
  50. metadata +3 -4
  51. data/test/test.rb +0 -5
@@ -1,91 +1,91 @@
1
- /* Please see the LICENSE file for copyright and distribution information */
2
-
3
- #include <stdarg.h>
4
- #include "ruby_libxml.h"
5
-
6
- /*
7
- * Document-class: LibXML::XML::Parser
8
- *
9
- * The XML::Parser provides a tree based API for processing
10
- * xml documents, in contract to XML::Reader's stream
11
- * based api and XML::SaxParser callback based API.
12
- *
13
- * As a result, parsing a document creates an in-memory document object
14
- * that consist of any number of XML::Node instances. This is simple
15
- * and powerful model, but has the major limitation that the size of
16
- * the document that can be processed is limited by the amount of
17
- * memory available. In such cases, it is better to use the XML::Reader.
18
- *
19
- * Using the parser is simple:
20
- *
21
- * parser = XML::Parser.file('my_file')
22
- * doc = parser.parse
23
- *
24
- * You can also parse documents (see XML::Parser.document),
25
- * strings (see XML::Parser.string) and io objects (see
26
- * XML::Parser.io).
27
- */
28
-
29
- VALUE cXMLParser;
30
- static ID CONTEXT_ATTR;
31
-
32
- /*
33
- * call-seq:
34
- * parser.initialize(context) -> XML::Parser
35
- *
36
- * Creates a new XML::Parser from the specified
37
- * XML::Parser::Context.
38
- */
39
- static VALUE rxml_parser_initialize(int argc, VALUE *argv, VALUE self)
40
- {
41
- VALUE context = Qnil;
42
-
43
- rb_scan_args(argc, argv, "01", &context);
44
-
45
- if (context == Qnil)
46
- {
47
- rb_raise(rb_eArgError, "An instance of a XML::Parser::Context must be passed to XML::Parser.new");
48
- }
49
-
50
- rb_ivar_set(self, CONTEXT_ATTR, context);
51
- return self;
52
- }
53
-
54
- /*
55
- * call-seq:
56
- * parser.parse -> XML::Document
57
- *
58
- * Parse the input XML and create an XML::Document with
59
- * it's content. If an error occurs, XML::Parser::ParseError
60
- * is thrown.
61
- */
62
- static VALUE rxml_parser_parse(VALUE self)
63
- {
64
- xmlParserCtxtPtr ctxt;
65
- VALUE context = rb_ivar_get(self, CONTEXT_ATTR);
66
-
67
- Data_Get_Struct(context, xmlParserCtxt, ctxt);
68
-
69
- if ((xmlParseDocument(ctxt) == -1 || !ctxt->wellFormed) && ! ctxt->recovery)
70
- {
71
- rxml_raise(&ctxt->lastError);
72
- }
73
-
74
- rb_funcall(context, rb_intern("close"), 0);
75
-
76
- return rxml_document_wrap(ctxt->myDoc);
77
- }
78
-
79
- void rxml_init_parser(void)
80
- {
81
- cXMLParser = rb_define_class_under(mXML, "Parser", rb_cObject);
82
-
83
- /* Atributes */
84
- CONTEXT_ATTR = rb_intern("@context");
85
- rb_define_attr(cXMLParser, "input", 1, 0);
86
- rb_define_attr(cXMLParser, "context", 1, 0);
87
-
88
- /* Instance Methods */
89
- rb_define_method(cXMLParser, "initialize", rxml_parser_initialize, -1);
90
- rb_define_method(cXMLParser, "parse", rxml_parser_parse, 0);
91
- }
1
+ /* Please see the LICENSE file for copyright and distribution information */
2
+
3
+ #include <stdarg.h>
4
+ #include "ruby_libxml.h"
5
+
6
+ /*
7
+ * Document-class: LibXML::XML::Parser
8
+ *
9
+ * The XML::Parser provides a tree based API for processing
10
+ * xml documents, in contract to XML::Reader's stream
11
+ * based api and XML::SaxParser callback based API.
12
+ *
13
+ * As a result, parsing a document creates an in-memory document object
14
+ * that consist of any number of XML::Node instances. This is simple
15
+ * and powerful model, but has the major limitation that the size of
16
+ * the document that can be processed is limited by the amount of
17
+ * memory available. In such cases, it is better to use the XML::Reader.
18
+ *
19
+ * Using the parser is simple:
20
+ *
21
+ * parser = XML::Parser.file('my_file')
22
+ * doc = parser.parse
23
+ *
24
+ * You can also parse documents (see XML::Parser.document),
25
+ * strings (see XML::Parser.string) and io objects (see
26
+ * XML::Parser.io).
27
+ */
28
+
29
+ VALUE cXMLParser;
30
+ static ID CONTEXT_ATTR;
31
+
32
+ /*
33
+ * call-seq:
34
+ * parser.initialize(context) -> XML::Parser
35
+ *
36
+ * Creates a new XML::Parser from the specified
37
+ * XML::Parser::Context.
38
+ */
39
+ static VALUE rxml_parser_initialize(int argc, VALUE *argv, VALUE self)
40
+ {
41
+ VALUE context = Qnil;
42
+
43
+ rb_scan_args(argc, argv, "01", &context);
44
+
45
+ if (context == Qnil)
46
+ {
47
+ rb_raise(rb_eArgError, "An instance of a XML::Parser::Context must be passed to XML::Parser.new");
48
+ }
49
+
50
+ rb_ivar_set(self, CONTEXT_ATTR, context);
51
+ return self;
52
+ }
53
+
54
+ /*
55
+ * call-seq:
56
+ * parser.parse -> XML::Document
57
+ *
58
+ * Parse the input XML and create an XML::Document with
59
+ * it's content. If an error occurs, XML::Parser::ParseError
60
+ * is thrown.
61
+ */
62
+ static VALUE rxml_parser_parse(VALUE self)
63
+ {
64
+ xmlParserCtxtPtr ctxt;
65
+ VALUE context = rb_ivar_get(self, CONTEXT_ATTR);
66
+
67
+ Data_Get_Struct(context, xmlParserCtxt, ctxt);
68
+
69
+ if ((xmlParseDocument(ctxt) == -1 || !ctxt->wellFormed) && ! ctxt->recovery)
70
+ {
71
+ rxml_raise(&ctxt->lastError);
72
+ }
73
+
74
+ rb_funcall(context, rb_intern("close"), 0);
75
+
76
+ return rxml_document_wrap(ctxt->myDoc);
77
+ }
78
+
79
+ void rxml_init_parser(void)
80
+ {
81
+ cXMLParser = rb_define_class_under(mXML, "Parser", rb_cObject);
82
+
83
+ /* Atributes */
84
+ CONTEXT_ATTR = rb_intern("@context");
85
+ rb_define_attr(cXMLParser, "input", 1, 0);
86
+ rb_define_attr(cXMLParser, "context", 1, 0);
87
+
88
+ /* Instance Methods */
89
+ rb_define_method(cXMLParser, "initialize", rxml_parser_initialize, -1);
90
+ rb_define_method(cXMLParser, "parse", rxml_parser_parse, 0);
91
+ }
@@ -1,10 +1,10 @@
1
- /* Please see the LICENSE file for copyright and distribution information */
2
-
3
- #ifndef __RXML_PARSER_CONTEXT__
4
- #define __RXML_PARSER_CONTEXT__
5
-
6
- extern VALUE cXMLParserContext;
7
-
8
- void rxml_init_parser_context(void);
9
-
10
- #endif
1
+ /* Please see the LICENSE file for copyright and distribution information */
2
+
3
+ #ifndef __RXML_PARSER_CONTEXT__
4
+ #define __RXML_PARSER_CONTEXT__
5
+
6
+ extern VALUE cXMLParserContext;
7
+
8
+ void rxml_init_parser_context(void);
9
+
10
+ #endif
@@ -1,14 +1,14 @@
1
- /* Copyright (c) 2006 Apple Computer Inc.
2
- * Please see the LICENSE file for copyright and distribution information. */
3
-
4
- #ifndef __RXML_READER__
5
- #define __RXML_READER__
6
-
7
- extern VALUE cXMLReader;
8
-
9
- void rxml_init_reader(void);
10
-
11
- /* Exported to be used by XML::Document#reader */
12
- VALUE rxml_reader_new_walker(VALUE self, VALUE doc);
13
-
14
- #endif /* __rxml_READER__ */
1
+ /* Copyright (c) 2006 Apple Computer Inc.
2
+ * Please see the LICENSE file for copyright and distribution information. */
3
+
4
+ #ifndef __RXML_READER__
5
+ #define __RXML_READER__
6
+
7
+ extern VALUE cXMLReader;
8
+
9
+ void rxml_init_reader(void);
10
+
11
+ /* Exported to be used by XML::Document#reader */
12
+ VALUE rxml_reader_new_walker(VALUE self, VALUE doc);
13
+
14
+ #endif /* __rxml_READER__ */
@@ -1,8 +1,8 @@
1
- #ifndef __RXML_RELAXNG__
2
- #define __RXML_RELAXNG__
3
-
4
- extern VALUE cXMLRelaxNG;
5
-
6
- void rxml_init_relaxng(void);
7
- #endif
8
-
1
+ #ifndef __RXML_RELAXNG__
2
+ #define __RXML_RELAXNG__
3
+
4
+ extern VALUE cXMLRelaxNG;
5
+
6
+ void rxml_init_relaxng(void);
7
+ #endif
8
+
@@ -1,10 +1,10 @@
1
- /* Please see the LICENSE file for copyright and distribution information */
2
-
3
- #ifndef __RXML_SAX2_HANDLER__
4
- #define __RXML_SAX2_HANDLER__
5
-
6
- extern xmlSAXHandler rxml_sax_handler;
7
-
8
- void rxml_init_sax2_handler(void);
9
-
10
- #endif
1
+ /* Please see the LICENSE file for copyright and distribution information */
2
+
3
+ #ifndef __RXML_SAX2_HANDLER__
4
+ #define __RXML_SAX2_HANDLER__
5
+
6
+ extern xmlSAXHandler rxml_sax_handler;
7
+
8
+ void rxml_init_sax2_handler(void);
9
+
10
+ #endif
@@ -1,10 +1,10 @@
1
- /* Please see the LICENSE file for copyright and distribution information */
2
-
3
- #ifndef __RXML_SAX_PARSER__
4
- #define __RXML_SAX_PARSER__
5
-
6
- extern VALUE cXMLSaxParser;
7
-
8
- void rxml_init_sax_parser(void);
9
-
10
- #endif
1
+ /* Please see the LICENSE file for copyright and distribution information */
2
+
3
+ #ifndef __RXML_SAX_PARSER__
4
+ #define __RXML_SAX_PARSER__
5
+
6
+ extern VALUE cXMLSaxParser;
7
+
8
+ void rxml_init_sax_parser(void);
9
+
10
+ #endif
@@ -1,25 +1,25 @@
1
- #ifndef __RXML_SCHEMA__
2
- #define __RXML_SCHEMA__
3
-
4
- #include <libxml/schemasInternals.h>
5
- #include <libxml/xmlschemastypes.h>
6
-
7
- typedef struct _xmlSchemaItemList xmlSchemaItemList;
8
- typedef xmlSchemaItemList *xmlSchemaItemListPtr;
9
- struct _xmlSchemaItemList {
10
- void **items;
11
- /* used for dynamic addition of schemata */
12
- int nbItems;
13
- /* used for dynamic addition of schemata */
14
- int sizeItems; /* used for dynamic addition of schemata */
15
- };
16
-
17
- #define QNIL_OR_STRING(slot) \
18
- (slot == NULL) ? Qnil : rb_str_new2((const char *)slot)
19
-
20
- extern VALUE cXMLSchema;
21
-
22
- void rxml_init_schema(void);
23
-
24
- #endif
25
-
1
+ #ifndef __RXML_SCHEMA__
2
+ #define __RXML_SCHEMA__
3
+
4
+ #include <libxml/schemasInternals.h>
5
+ #include <libxml/xmlschemastypes.h>
6
+
7
+ typedef struct _xmlSchemaItemList xmlSchemaItemList;
8
+ typedef xmlSchemaItemList *xmlSchemaItemListPtr;
9
+ struct _xmlSchemaItemList {
10
+ void **items;
11
+ /* used for dynamic addition of schemata */
12
+ int nbItems;
13
+ /* used for dynamic addition of schemata */
14
+ int sizeItems; /* used for dynamic addition of schemata */
15
+ };
16
+
17
+ #define QNIL_OR_STRING(slot) \
18
+ (slot == NULL) ? Qnil : rb_str_new2((const char *)slot)
19
+
20
+ extern VALUE cXMLSchema;
21
+
22
+ void rxml_init_schema(void);
23
+
24
+ #endif
25
+
@@ -1,37 +1,37 @@
1
- #ifndef __RXML_SCHEMA_ATTRIBUTE__
2
- #define __RXML_SCHEMA_ATTRIBUTE__
3
-
4
- #include "ruby_xml_schema.h"
5
-
6
- extern VALUE cXMLSchemaAttribute;
7
-
8
- /**
9
- * xmlSchemaAttributeUsePtr:
10
- *
11
- * The abstract base type for tree-like structured schema components.
12
- * (Extends xmlSchemaTreeItem)
13
- */
14
- typedef struct _xmlSchemaAttributeUse xmlSchemaAttributeUse;
15
- typedef xmlSchemaAttributeUse *xmlSchemaAttributeUsePtr;
16
- struct _xmlSchemaAttributeUse {
17
- xmlSchemaTypeType type;
18
- xmlSchemaAnnotPtr annot;
19
- xmlSchemaAttributeUsePtr next; /* The next attr. use. */
20
- /*
21
- * The attr. decl. OR a QName-ref. to an attr. decl. OR
22
- * a QName-ref. to an attribute group definition.
23
- */
24
- xmlSchemaAttributePtr attrDecl;
25
-
26
- int flags;
27
- xmlNodePtr node;
28
- int occurs;
29
- /* required, optional */
30
- const xmlChar *defValue;
31
- xmlSchemaValPtr defVal;
32
- };
33
-
34
- void rxml_init_schema_attribute(void);
35
- VALUE rxml_wrap_schema_attribute(xmlSchemaAttributeUsePtr attr);
36
-
37
- #endif
1
+ #ifndef __RXML_SCHEMA_ATTRIBUTE__
2
+ #define __RXML_SCHEMA_ATTRIBUTE__
3
+
4
+ #include "ruby_xml_schema.h"
5
+
6
+ extern VALUE cXMLSchemaAttribute;
7
+
8
+ /**
9
+ * xmlSchemaAttributeUsePtr:
10
+ *
11
+ * The abstract base type for tree-like structured schema components.
12
+ * (Extends xmlSchemaTreeItem)
13
+ */
14
+ typedef struct _xmlSchemaAttributeUse xmlSchemaAttributeUse;
15
+ typedef xmlSchemaAttributeUse *xmlSchemaAttributeUsePtr;
16
+ struct _xmlSchemaAttributeUse {
17
+ xmlSchemaTypeType type;
18
+ xmlSchemaAnnotPtr annot;
19
+ xmlSchemaAttributeUsePtr next; /* The next attr. use. */
20
+ /*
21
+ * The attr. decl. OR a QName-ref. to an attr. decl. OR
22
+ * a QName-ref. to an attribute group definition.
23
+ */
24
+ xmlSchemaAttributePtr attrDecl;
25
+
26
+ int flags;
27
+ xmlNodePtr node;
28
+ int occurs;
29
+ /* required, optional */
30
+ const xmlChar *defValue;
31
+ xmlSchemaValPtr defVal;
32
+ };
33
+
34
+ void rxml_init_schema_attribute(void);
35
+ VALUE rxml_wrap_schema_attribute(xmlSchemaAttributeUsePtr attr);
36
+
37
+ #endif
@@ -1,11 +1,11 @@
1
- #ifndef __RXML_SCHEMA_ELEMENT__
2
- #define __RXML_SCHEMA_ELEMENT__
3
-
4
- #include "ruby_xml_schema.h"
5
-
6
- extern VALUE cXMLSchemaElement;
7
-
8
- VALUE rxml_wrap_schema_element(xmlSchemaElementPtr xelement);
9
- void rxml_init_schema_element(void);
10
-
11
- #endif
1
+ #ifndef __RXML_SCHEMA_ELEMENT__
2
+ #define __RXML_SCHEMA_ELEMENT__
3
+
4
+ #include "ruby_xml_schema.h"
5
+
6
+ extern VALUE cXMLSchemaElement;
7
+
8
+ VALUE rxml_wrap_schema_element(xmlSchemaElementPtr xelement);
9
+ void rxml_init_schema_element(void);
10
+
11
+ #endif
@@ -1,50 +1,50 @@
1
- #include "ruby_libxml.h"
2
- #include "ruby_xml_schema_facet.h"
3
-
4
- #include <libxml/schemasInternals.h>
5
- #include <libxml/xmlschemas.h>
6
- #include <libxml/xmlschemastypes.h>
7
-
8
- VALUE cXMLSchemaFacet;
9
-
10
- static void rxml_schema_facet_free(xmlSchemaFacetPtr xschema_type)
11
- {
12
- xschema_type = NULL;
13
- xmlFree(xschema_type);
14
- }
15
-
16
- VALUE rxml_wrap_schema_facet(xmlSchemaFacetPtr facet)
17
- {
18
- VALUE result;
19
-
20
- if (!facet)
21
- rb_raise(rb_eArgError, "XML::Schema::Facet required!");
22
-
23
- result = Data_Wrap_Struct(cXMLSchemaFacet, NULL, rxml_schema_facet_free, facet);
24
-
25
- rb_iv_set(result, "@kind", INT2NUM(facet->type));
26
- rb_iv_set(result, "@value", QNIL_OR_STRING(facet->value));
27
-
28
- return result;
29
-
30
- }
31
-
32
- /* START FACET*/
33
-
34
- static VALUE rxml_schema_facet_node(VALUE self)
35
- {
36
- xmlSchemaFacetPtr facet;
37
-
38
- Data_Get_Struct(self, xmlSchemaFacet, facet);
39
-
40
- return rxml_node_wrap(facet->node);
41
- }
42
-
43
- void rxml_init_schema_facet(void)
44
- {
45
- cXMLSchemaFacet = rb_define_class_under(cXMLSchema, "Facet", rb_cObject);
46
- rb_define_attr(cXMLSchemaFacet, "kind", 1, 0);
47
- rb_define_attr(cXMLSchemaFacet, "value", 1, 0);
48
-
49
- rb_define_method(cXMLSchemaFacet, "node", rxml_schema_facet_node, 0);
50
- }
1
+ #include "ruby_libxml.h"
2
+ #include "ruby_xml_schema_facet.h"
3
+
4
+ #include <libxml/schemasInternals.h>
5
+ #include <libxml/xmlschemas.h>
6
+ #include <libxml/xmlschemastypes.h>
7
+
8
+ VALUE cXMLSchemaFacet;
9
+
10
+ static void rxml_schema_facet_free(xmlSchemaFacetPtr xschema_type)
11
+ {
12
+ xschema_type = NULL;
13
+ xmlFree(xschema_type);
14
+ }
15
+
16
+ VALUE rxml_wrap_schema_facet(xmlSchemaFacetPtr facet)
17
+ {
18
+ VALUE result;
19
+
20
+ if (!facet)
21
+ rb_raise(rb_eArgError, "XML::Schema::Facet required!");
22
+
23
+ result = Data_Wrap_Struct(cXMLSchemaFacet, NULL, rxml_schema_facet_free, facet);
24
+
25
+ rb_iv_set(result, "@kind", INT2NUM(facet->type));
26
+ rb_iv_set(result, "@value", QNIL_OR_STRING(facet->value));
27
+
28
+ return result;
29
+
30
+ }
31
+
32
+ /* START FACET*/
33
+
34
+ static VALUE rxml_schema_facet_node(VALUE self)
35
+ {
36
+ xmlSchemaFacetPtr facet;
37
+
38
+ Data_Get_Struct(self, xmlSchemaFacet, facet);
39
+
40
+ return rxml_node_wrap(facet->node);
41
+ }
42
+
43
+ void rxml_init_schema_facet(void)
44
+ {
45
+ cXMLSchemaFacet = rb_define_class_under(cXMLSchema, "Facet", rb_cObject);
46
+ rb_define_attr(cXMLSchemaFacet, "kind", 1, 0);
47
+ rb_define_attr(cXMLSchemaFacet, "value", 1, 0);
48
+
49
+ rb_define_method(cXMLSchemaFacet, "node", rxml_schema_facet_node, 0);
50
+ }
@@ -1,9 +1,9 @@
1
- #ifndef __RXML_SCHEMA_FACET__
2
- #define __RXML_SCHEMA_FACET__
3
-
4
- extern VALUE cXMLSchemaFacet;
5
-
6
- VALUE rxml_wrap_schema_facet(xmlSchemaFacetPtr facet);
7
- void rxml_init_schema_facet(void);
8
-
9
- #endif
1
+ #ifndef __RXML_SCHEMA_FACET__
2
+ #define __RXML_SCHEMA_FACET__
3
+
4
+ extern VALUE cXMLSchemaFacet;
5
+
6
+ VALUE rxml_wrap_schema_facet(xmlSchemaFacetPtr facet);
7
+ void rxml_init_schema_facet(void);
8
+
9
+ #endif
@@ -1,9 +1,9 @@
1
- #ifndef __RXML_SCHEMA_TYPE__
2
- #define __RXML_SCHEMA_TYPE__
3
-
4
- extern VALUE cXMLSchemaType;
5
-
6
- VALUE rxml_wrap_schema_type(xmlSchemaTypePtr xtype);
7
- void rxml_init_schema_type(void);
8
-
9
- #endif
1
+ #ifndef __RXML_SCHEMA_TYPE__
2
+ #define __RXML_SCHEMA_TYPE__
3
+
4
+ extern VALUE cXMLSchemaType;
5
+
6
+ VALUE rxml_wrap_schema_type(xmlSchemaTypePtr xtype);
7
+ void rxml_init_schema_type(void);
8
+
9
+ #endif
@@ -1,9 +1,9 @@
1
1
  /* Don't nuke this block! It is used for automatically updating the
2
2
  * versions below. VERSION = string formatting, VERNUM = numbered
3
3
  * version for inline testing: increment both or none at all.*/
4
- #define RUBY_LIBXML_VERSION "5.0.5"
4
+ #define RUBY_LIBXML_VERSION "5.0.6"
5
5
  #define RUBY_LIBXML_VERNUM 505
6
6
  #define RUBY_LIBXML_VER_MAJ 5
7
7
  #define RUBY_LIBXML_VER_MIN 0
8
- #define RUBY_LIBXML_VER_MIC 5
8
+ #define RUBY_LIBXML_VER_MIC 6
9
9
  #define RUBY_LIBXML_VER_PATCH 0