libxml-ruby 0.9.2-x86-mswin32-60 → 0.9.3-x86-mswin32-60

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. data/CHANGES +13 -0
  2. data/ext/libxml/libxml.c +885 -886
  3. data/ext/libxml/ruby_libxml.h +70 -72
  4. data/ext/libxml/ruby_xml_attr.c +76 -76
  5. data/ext/libxml/ruby_xml_attr.h +8 -8
  6. data/ext/libxml/ruby_xml_attributes.c +36 -36
  7. data/ext/libxml/ruby_xml_attributes.h +6 -6
  8. data/ext/libxml/ruby_xml_document.c +133 -220
  9. data/ext/libxml/ruby_xml_document.h +4 -7
  10. data/ext/libxml/ruby_xml_dtd.c +30 -109
  11. data/ext/libxml/ruby_xml_dtd.h +2 -11
  12. data/ext/libxml/ruby_xml_error.c +10 -10
  13. data/ext/libxml/ruby_xml_error.h +4 -4
  14. data/ext/libxml/ruby_xml_html_parser.c +28 -40
  15. data/ext/libxml/ruby_xml_html_parser.h +4 -4
  16. data/ext/libxml/ruby_xml_input.c +208 -32
  17. data/ext/libxml/ruby_xml_input.h +7 -5
  18. data/ext/libxml/ruby_xml_input_cbg.c +3 -3
  19. data/ext/libxml/ruby_xml_node.c +217 -217
  20. data/ext/libxml/ruby_xml_node.h +5 -5
  21. data/ext/libxml/ruby_xml_ns.c +26 -26
  22. data/ext/libxml/ruby_xml_ns.h +4 -4
  23. data/ext/libxml/ruby_xml_parser.c +151 -164
  24. data/ext/libxml/ruby_xml_parser.h +3 -8
  25. data/ext/libxml/ruby_xml_parser_context.c +105 -105
  26. data/ext/libxml/ruby_xml_parser_context.h +4 -4
  27. data/ext/libxml/ruby_xml_reader.c +145 -162
  28. data/ext/libxml/ruby_xml_reader.h +4 -4
  29. data/ext/libxml/ruby_xml_relaxng.c +30 -43
  30. data/ext/libxml/ruby_xml_relaxng.h +2 -7
  31. data/ext/libxml/ruby_xml_sax_parser.c +174 -228
  32. data/ext/libxml/ruby_xml_sax_parser.h +12 -20
  33. data/ext/libxml/ruby_xml_schema.c +31 -44
  34. data/ext/libxml/ruby_xml_schema.h +2 -7
  35. data/ext/libxml/ruby_xml_state.c +6 -6
  36. data/ext/libxml/ruby_xml_state.h +2 -2
  37. data/ext/libxml/ruby_xml_xinclude.c +1 -1
  38. data/ext/libxml/ruby_xml_xinclude.h +3 -3
  39. data/ext/libxml/ruby_xml_xpath.c +1 -1
  40. data/ext/libxml/ruby_xml_xpath.h +3 -12
  41. data/ext/libxml/ruby_xml_xpath_context.c +293 -294
  42. data/ext/libxml/ruby_xml_xpath_context.h +3 -7
  43. data/ext/libxml/ruby_xml_xpath_expression.c +11 -11
  44. data/ext/libxml/ruby_xml_xpath_expression.h +2 -2
  45. data/ext/libxml/ruby_xml_xpath_object.c +52 -66
  46. data/ext/libxml/ruby_xml_xpath_object.h +3 -14
  47. data/ext/libxml/ruby_xml_xpointer.c +11 -12
  48. data/ext/libxml/ruby_xml_xpointer.h +5 -7
  49. data/ext/libxml/sax_parser_callbacks.inc +53 -36
  50. data/ext/libxml/version.h +2 -2
  51. data/ext/mingw/libxml_ruby.dll.a +0 -0
  52. data/ext/mingw/libxml_ruby.so +0 -0
  53. data/ext/vc/libxml_ruby.vcproj +1 -9
  54. data/lib/libxml/html_parser.rb +5 -5
  55. data/lib/libxml/parser.rb +4 -4
  56. data/lib/libxml/sax_parser.rb +24 -0
  57. data/test/tc_document_write.rb +2 -16
  58. data/test/tc_html_parser.rb +57 -5
  59. data/test/tc_input.rb +13 -0
  60. data/test/tc_parser.rb +11 -3
  61. data/test/tc_reader.rb +53 -34
  62. data/test/tc_sax_parser.rb +30 -8
  63. data/test/test.rb +8 -0
  64. data/test/test_suite.rb +1 -1
  65. metadata +5 -6
  66. data/ext/libxml/ruby_xml_encoding.c +0 -164
  67. data/ext/libxml/ruby_xml_encoding.h +0 -13
  68. data/test/tc_encoding.rb +0 -13
@@ -1,19 +1,14 @@
1
- /* $Id: ruby_xml_parser.h 550 2008-11-17 23:26:53Z cfis $ */
1
+ /* $Id: ruby_xml_parser.h 614 2008-11-22 08:04:39Z cfis $ */
2
2
 
3
3
  /* Please see the LICENSE file for copyright and distribution information */
4
4
 
5
- #ifndef __RUBY_XML_PARSER__
6
- #define __RUBY_XML_PARSER__
5
+ #ifndef __rxml_PARSER__
6
+ #define __rxml_PARSER__
7
7
 
8
8
  #define MAX_LIBXML_FEATURES_LEN 50
9
9
 
10
-
11
10
  extern VALUE cXMLParser;
12
11
 
13
12
  void ruby_init_parser();
14
13
 
15
- VALUE ruby_xml_parser_default_substitute_entities_set(VALUE class, VALUE bool);
16
- VALUE ruby_xml_parser_default_load_external_dtd_set(VALUE class, VALUE bool);
17
-
18
-
19
14
  #endif
@@ -1,4 +1,4 @@
1
- /* $Id: ruby_xml_parser_context.c 566 2008-11-18 06:53:36Z cfis $ */
1
+ /* $Id: ruby_xml_parser_context.c 612 2008-11-21 08:01:29Z cfis $ */
2
2
 
3
3
  /* Please see the LICENSE file for copyright and distribution information */
4
4
 
@@ -15,15 +15,15 @@ VALUE cXMLParserContext;
15
15
  */
16
16
 
17
17
 
18
- void
19
- ruby_xml_parser_context_free(xmlParserCtxtPtr ctxt) {
18
+ static void
19
+ rxml_parser_context_free(xmlParserCtxtPtr ctxt) {
20
20
  if (ctxt != NULL)
21
21
  xmlFreeParserCtxt(ctxt);
22
22
  }
23
23
 
24
24
  VALUE
25
- ruby_xml_parser_context_wrap(xmlParserCtxtPtr ctxt) {
26
- return Data_Wrap_Struct(cXMLParserContext, NULL, ruby_xml_parser_context_free, ctxt);
25
+ rxml_parser_context_wrap(xmlParserCtxtPtr ctxt) {
26
+ return Data_Wrap_Struct(cXMLParserContext, NULL, rxml_parser_context_free, ctxt);
27
27
  }
28
28
 
29
29
  /*
@@ -32,8 +32,8 @@ ruby_xml_parser_context_wrap(xmlParserCtxtPtr ctxt) {
32
32
  *
33
33
  * Obtain the data directory associated with this context.
34
34
  */
35
- VALUE
36
- ruby_xml_parser_context_data_directory_get(VALUE self) {
35
+ static VALUE
36
+ rxml_parser_context_data_directory_get(VALUE self) {
37
37
  xmlParserCtxtPtr ctxt;
38
38
  Data_Get_Struct(self, xmlParserCtxt, ctxt);
39
39
 
@@ -50,8 +50,8 @@ ruby_xml_parser_context_data_directory_get(VALUE self) {
50
50
  *
51
51
  * Obtain the depth of this context.
52
52
  */
53
- VALUE
54
- ruby_xml_parser_context_depth_get(VALUE self) {
53
+ static VALUE
54
+ rxml_parser_context_depth_get(VALUE self) {
55
55
  xmlParserCtxtPtr ctxt;
56
56
  Data_Get_Struct(self, xmlParserCtxt, ctxt);
57
57
 
@@ -66,8 +66,8 @@ ruby_xml_parser_context_depth_get(VALUE self) {
66
66
  * Determine whether SAX-based processing is disabled
67
67
  * in this context.
68
68
  */
69
- VALUE
70
- ruby_xml_parser_context_disable_sax_q(VALUE self) {
69
+ static VALUE
70
+ rxml_parser_context_disable_sax_q(VALUE self) {
71
71
  xmlParserCtxtPtr ctxt;
72
72
  Data_Get_Struct(self, xmlParserCtxt, ctxt);
73
73
 
@@ -85,8 +85,8 @@ ruby_xml_parser_context_disable_sax_q(VALUE self) {
85
85
  *
86
86
  * Determine whether this is a docbook context.
87
87
  */
88
- VALUE
89
- ruby_xml_parser_context_docbook_q(VALUE self) {
88
+ static VALUE
89
+ rxml_parser_context_docbook_q(VALUE self) {
90
90
  xmlParserCtxtPtr ctxt;
91
91
  Data_Get_Struct(self, xmlParserCtxt, ctxt);
92
92
 
@@ -104,8 +104,8 @@ ruby_xml_parser_context_docbook_q(VALUE self) {
104
104
  * Obtain the character encoding identifier used in
105
105
  * this context.
106
106
  */
107
- VALUE
108
- ruby_xml_parser_context_encoding_get(VALUE self) {
107
+ static VALUE
108
+ rxml_parser_context_encoding_get(VALUE self) {
109
109
  xmlParserCtxtPtr ctxt;
110
110
  Data_Get_Struct(self, xmlParserCtxt, ctxt);
111
111
 
@@ -122,8 +122,8 @@ ruby_xml_parser_context_encoding_get(VALUE self) {
122
122
  *
123
123
  * Obtain the last-error number in this context.
124
124
  */
125
- VALUE
126
- ruby_xml_parser_context_errno_get(VALUE self) {
125
+ static VALUE
126
+ rxml_parser_context_errno_get(VALUE self) {
127
127
  xmlParserCtxtPtr ctxt;
128
128
  Data_Get_Struct(self, xmlParserCtxt, ctxt);
129
129
 
@@ -138,8 +138,8 @@ ruby_xml_parser_context_errno_get(VALUE self) {
138
138
  *
139
139
  * Determine whether this is an html context.
140
140
  */
141
- VALUE
142
- ruby_xml_parser_context_html_q(VALUE self) {
141
+ static VALUE
142
+ rxml_parser_context_html_q(VALUE self) {
143
143
  xmlParserCtxtPtr ctxt;
144
144
  Data_Get_Struct(self, xmlParserCtxt, ctxt);
145
145
 
@@ -157,8 +157,8 @@ ruby_xml_parser_context_html_q(VALUE self) {
157
157
  * Obtain the limit on the number of IO streams opened in
158
158
  * this context.
159
159
  */
160
- VALUE
161
- ruby_xml_parser_context_io_max_num_streams_get(VALUE self) {
160
+ static VALUE
161
+ rxml_parser_context_io_max_num_streams_get(VALUE self) {
162
162
  // TODO alias to max_streams and dep this?
163
163
  xmlParserCtxtPtr ctxt;
164
164
  Data_Get_Struct(self, xmlParserCtxt, ctxt);
@@ -174,8 +174,8 @@ ruby_xml_parser_context_io_max_num_streams_get(VALUE self) {
174
174
  * Obtain the actual number of IO streams in this
175
175
  * context.
176
176
  */
177
- VALUE
178
- ruby_xml_parser_context_io_num_streams_get(VALUE self) {
177
+ static VALUE
178
+ rxml_parser_context_io_num_streams_get(VALUE self) {
179
179
  xmlParserCtxtPtr ctxt;
180
180
  Data_Get_Struct(self, xmlParserCtxt, ctxt);
181
181
 
@@ -190,8 +190,8 @@ ruby_xml_parser_context_io_num_streams_get(VALUE self) {
190
190
  * Determine whether parsers in this context retain
191
191
  * whitespace.
192
192
  */
193
- VALUE
194
- ruby_xml_parser_context_keep_blanks_q(VALUE self) {
193
+ static VALUE
194
+ rxml_parser_context_keep_blanks_q(VALUE self) {
195
195
  xmlParserCtxtPtr ctxt;
196
196
  Data_Get_Struct(self, xmlParserCtxt, ctxt);
197
197
 
@@ -208,8 +208,8 @@ ruby_xml_parser_context_keep_blanks_q(VALUE self) {
208
208
  *
209
209
  * Obtain the name depth for this context.
210
210
  */
211
- VALUE
212
- ruby_xml_parser_context_name_depth_get(VALUE self) {
211
+ static VALUE
212
+ rxml_parser_context_name_depth_get(VALUE self) {
213
213
  xmlParserCtxtPtr ctxt;
214
214
  Data_Get_Struct(self, xmlParserCtxt, ctxt);
215
215
 
@@ -223,8 +223,8 @@ ruby_xml_parser_context_name_depth_get(VALUE self) {
223
223
  *
224
224
  * Obtain the maximum name depth for this context.
225
225
  */
226
- VALUE
227
- ruby_xml_parser_context_name_depth_max_get(VALUE self) {
226
+ static VALUE
227
+ rxml_parser_context_name_depth_max_get(VALUE self) {
228
228
  xmlParserCtxtPtr ctxt;
229
229
  Data_Get_Struct(self, xmlParserCtxt, ctxt);
230
230
 
@@ -238,8 +238,8 @@ ruby_xml_parser_context_name_depth_max_get(VALUE self) {
238
238
  *
239
239
  * Obtain the name node for this context.
240
240
  */
241
- VALUE
242
- ruby_xml_parser_context_name_node_get(VALUE self) {
241
+ static VALUE
242
+ rxml_parser_context_name_node_get(VALUE self) {
243
243
  xmlParserCtxtPtr ctxt;
244
244
  Data_Get_Struct(self, xmlParserCtxt, ctxt);
245
245
 
@@ -256,8 +256,8 @@ ruby_xml_parser_context_name_node_get(VALUE self) {
256
256
  *
257
257
  * Obtain the name table for this context.
258
258
  */
259
- VALUE
260
- ruby_xml_parser_context_name_tab_get(VALUE self) {
259
+ static VALUE
260
+ rxml_parser_context_name_tab_get(VALUE self) {
261
261
  int i;
262
262
  xmlParserCtxtPtr ctxt;
263
263
  VALUE tab_ary;
@@ -286,8 +286,8 @@ ruby_xml_parser_context_name_tab_get(VALUE self) {
286
286
  *
287
287
  * Obtain the node depth for this context.
288
288
  */
289
- VALUE
290
- ruby_xml_parser_context_node_depth_get(VALUE self) {
289
+ static VALUE
290
+ rxml_parser_context_node_depth_get(VALUE self) {
291
291
  xmlParserCtxtPtr ctxt;
292
292
  Data_Get_Struct(self, xmlParserCtxt, ctxt);
293
293
 
@@ -301,15 +301,15 @@ ruby_xml_parser_context_node_depth_get(VALUE self) {
301
301
  *
302
302
  * Obtain the root node of this context.
303
303
  */
304
- VALUE
305
- ruby_xml_parser_context_node_get(VALUE self) {
304
+ static VALUE
305
+ rxml_parser_context_node_get(VALUE self) {
306
306
  xmlParserCtxtPtr ctxt;
307
307
  Data_Get_Struct(self, xmlParserCtxt, ctxt);
308
308
 
309
309
  if (ctxt->node == NULL)
310
310
  return(Qnil);
311
311
  else
312
- return(ruby_xml_node2_wrap(cXMLNode,
312
+ return(rxml_node2_wrap(cXMLNode,
313
313
  ctxt->node));
314
314
  }
315
315
 
@@ -320,8 +320,8 @@ ruby_xml_parser_context_node_get(VALUE self) {
320
320
  *
321
321
  * Obtain the maximum node depth for this context.
322
322
  */
323
- VALUE
324
- ruby_xml_parser_context_node_depth_max_get(VALUE self) {
323
+ static VALUE
324
+ rxml_parser_context_node_depth_max_get(VALUE self) {
325
325
  xmlParserCtxtPtr ctxt;
326
326
  Data_Get_Struct(self, xmlParserCtxt, ctxt);
327
327
 
@@ -335,8 +335,8 @@ ruby_xml_parser_context_node_depth_max_get(VALUE self) {
335
335
  *
336
336
  * Obtain the number of characters in this context.
337
337
  */
338
- VALUE
339
- ruby_xml_parser_context_num_chars_get(VALUE self) {
338
+ static VALUE
339
+ rxml_parser_context_num_chars_get(VALUE self) {
340
340
  xmlParserCtxtPtr ctxt;
341
341
  Data_Get_Struct(self, xmlParserCtxt, ctxt);
342
342
 
@@ -350,8 +350,8 @@ ruby_xml_parser_context_num_chars_get(VALUE self) {
350
350
  * Determine whether external entity replacement is enabled in this
351
351
  * context.
352
352
  */
353
- VALUE
354
- ruby_xml_parser_context_replace_entities_q(VALUE self) {
353
+ static VALUE
354
+ rxml_parser_context_replace_entities_q(VALUE self) {
355
355
  xmlParserCtxtPtr ctxt;
356
356
  Data_Get_Struct(self, xmlParserCtxt, ctxt);
357
357
 
@@ -369,8 +369,8 @@ ruby_xml_parser_context_replace_entities_q(VALUE self) {
369
369
  * Control whether external entity replacement is enabled in this
370
370
  * context.
371
371
  */
372
- VALUE
373
- ruby_xml_parser_context_replace_entities_set(VALUE self, VALUE bool) {
372
+ static VALUE
373
+ rxml_parser_context_replace_entities_set(VALUE self, VALUE bool) {
374
374
  xmlParserCtxtPtr ctxt;
375
375
  Data_Get_Struct(self, xmlParserCtxt, ctxt);
376
376
 
@@ -389,8 +389,8 @@ ruby_xml_parser_context_replace_entities_set(VALUE self, VALUE bool) {
389
389
  *
390
390
  * Obtain the space depth for this context.
391
391
  */
392
- VALUE
393
- ruby_xml_parser_context_space_depth_get(VALUE self) {
392
+ static VALUE
393
+ rxml_parser_context_space_depth_get(VALUE self) {
394
394
  xmlParserCtxtPtr ctxt;
395
395
  Data_Get_Struct(self, xmlParserCtxt, ctxt);
396
396
 
@@ -404,8 +404,8 @@ ruby_xml_parser_context_space_depth_get(VALUE self) {
404
404
  *
405
405
  * Obtain the maximum space depth for this context.
406
406
  */
407
- VALUE
408
- ruby_xml_parser_context_space_depth_max_get(VALUE self) {
407
+ static VALUE
408
+ rxml_parser_context_space_depth_max_get(VALUE self) {
409
409
  xmlParserCtxtPtr ctxt;
410
410
  Data_Get_Struct(self, xmlParserCtxt, ctxt);
411
411
 
@@ -420,8 +420,8 @@ ruby_xml_parser_context_space_depth_max_get(VALUE self) {
420
420
  * Determine whether this context is a subset of an
421
421
  * external context.
422
422
  */
423
- VALUE
424
- ruby_xml_parser_context_subset_external_q(VALUE self) {
423
+ static VALUE
424
+ rxml_parser_context_subset_external_q(VALUE self) {
425
425
  xmlParserCtxtPtr ctxt;
426
426
  Data_Get_Struct(self, xmlParserCtxt, ctxt);
427
427
 
@@ -439,8 +439,8 @@ ruby_xml_parser_context_subset_external_q(VALUE self) {
439
439
  * Determine whether this context is a subset of an
440
440
  * internal context.
441
441
  */
442
- VALUE
443
- ruby_xml_parser_context_subset_internal_q(VALUE self) {
442
+ static VALUE
443
+ rxml_parser_context_subset_internal_q(VALUE self) {
444
444
  xmlParserCtxtPtr ctxt;
445
445
  Data_Get_Struct(self, xmlParserCtxt, ctxt);
446
446
 
@@ -459,8 +459,8 @@ ruby_xml_parser_context_subset_internal_q(VALUE self) {
459
459
  * either of subset_external? or subset_internal?
460
460
  * is true).
461
461
  */
462
- VALUE
463
- ruby_xml_parser_context_subset_name_get(VALUE self) {
462
+ static VALUE
463
+ rxml_parser_context_subset_name_get(VALUE self) {
464
464
  xmlParserCtxtPtr ctxt;
465
465
  Data_Get_Struct(self, xmlParserCtxt, ctxt);
466
466
 
@@ -479,8 +479,8 @@ ruby_xml_parser_context_subset_name_get(VALUE self) {
479
479
  * either of subset_external? or subset_internal?
480
480
  * is true).
481
481
  */
482
- VALUE
483
- ruby_xml_parser_context_subset_external_uri_get(VALUE self) {
482
+ static VALUE
483
+ rxml_parser_context_subset_external_uri_get(VALUE self) {
484
484
  xmlParserCtxtPtr ctxt;
485
485
  Data_Get_Struct(self, xmlParserCtxt, ctxt);
486
486
 
@@ -499,8 +499,8 @@ ruby_xml_parser_context_subset_external_uri_get(VALUE self) {
499
499
  * (valid only if either of subset_external? or subset_internal?
500
500
  * is true).
501
501
  */
502
- VALUE
503
- ruby_xml_parser_context_subset_external_system_id_get(VALUE self) {
502
+ static VALUE
503
+ rxml_parser_context_subset_external_system_id_get(VALUE self) {
504
504
  xmlParserCtxtPtr ctxt;
505
505
  Data_Get_Struct(self, xmlParserCtxt, ctxt);
506
506
 
@@ -517,8 +517,8 @@ ruby_xml_parser_context_subset_external_system_id_get(VALUE self) {
517
517
  *
518
518
  * Determine whether this is a standalone context.
519
519
  */
520
- VALUE
521
- ruby_xml_parser_context_standalone_q(VALUE self) {
520
+ static VALUE
521
+ rxml_parser_context_standalone_q(VALUE self) {
522
522
  xmlParserCtxtPtr ctxt;
523
523
  Data_Get_Struct(self, xmlParserCtxt, ctxt);
524
524
 
@@ -535,8 +535,8 @@ ruby_xml_parser_context_standalone_q(VALUE self) {
535
535
  *
536
536
  * Determine whether this context maintains statistics.
537
537
  */
538
- VALUE
539
- ruby_xml_parser_context_stats_q(VALUE self) {
538
+ static VALUE
539
+ rxml_parser_context_stats_q(VALUE self) {
540
540
  xmlParserCtxtPtr ctxt;
541
541
  Data_Get_Struct(self, xmlParserCtxt, ctxt);
542
542
 
@@ -553,8 +553,8 @@ ruby_xml_parser_context_stats_q(VALUE self) {
553
553
  *
554
554
  * Determine whether this context is valid.
555
555
  */
556
- VALUE
557
- ruby_xml_parser_context_valid_q(VALUE self) {
556
+ static VALUE
557
+ rxml_parser_context_valid_q(VALUE self) {
558
558
  xmlParserCtxtPtr ctxt;
559
559
  Data_Get_Struct(self, xmlParserCtxt, ctxt);
560
560
 
@@ -571,8 +571,8 @@ ruby_xml_parser_context_valid_q(VALUE self) {
571
571
  *
572
572
  * Determine whether validation is enabled in this context.
573
573
  */
574
- VALUE
575
- ruby_xml_parser_context_validate_q(VALUE self) {
574
+ static VALUE
575
+ rxml_parser_context_validate_q(VALUE self) {
576
576
  xmlParserCtxtPtr ctxt;
577
577
  Data_Get_Struct(self, xmlParserCtxt, ctxt);
578
578
 
@@ -589,8 +589,8 @@ ruby_xml_parser_context_validate_q(VALUE self) {
589
589
  *
590
590
  * Obtain this context's version identifier.
591
591
  */
592
- VALUE
593
- ruby_xml_parser_context_version_get(VALUE self) {
592
+ static VALUE
593
+ rxml_parser_context_version_get(VALUE self) {
594
594
  xmlParserCtxtPtr ctxt;
595
595
  Data_Get_Struct(self, xmlParserCtxt, ctxt);
596
596
 
@@ -607,8 +607,8 @@ ruby_xml_parser_context_version_get(VALUE self) {
607
607
  *
608
608
  * Determine whether this context contains well-formed XML.
609
609
  */
610
- VALUE
611
- ruby_xml_parser_context_well_formed_q(VALUE self) {
610
+ static VALUE
611
+ rxml_parser_context_well_formed_q(VALUE self) {
612
612
  xmlParserCtxtPtr ctxt;
613
613
  Data_Get_Struct(self, xmlParserCtxt, ctxt);
614
614
 
@@ -623,37 +623,37 @@ ruby_init_xml_parser_context(void) {
623
623
  cXMLParserContext = rb_define_class_under(cXMLParser, "Context", rb_cObject);
624
624
  rb_undef_alloc_func(cXMLParserContext);
625
625
 
626
- rb_define_method(cXMLParserContext, "data_directory", ruby_xml_parser_context_data_directory_get, 0);
627
- rb_define_method(cXMLParserContext, "depth", ruby_xml_parser_context_depth_get, 0);
628
- rb_define_method(cXMLParserContext, "disable_sax?", ruby_xml_parser_context_disable_sax_q, 0);
629
- rb_define_method(cXMLParserContext, "docbook?", ruby_xml_parser_context_docbook_q, 0);
630
- rb_define_method(cXMLParserContext, "encoding", ruby_xml_parser_context_encoding_get, 0);
631
- rb_define_method(cXMLParserContext, "errno", ruby_xml_parser_context_errno_get, 0);
632
- rb_define_method(cXMLParserContext, "html?", ruby_xml_parser_context_html_q, 0);
633
- rb_define_method(cXMLParserContext, "io_max_num_streams", ruby_xml_parser_context_io_max_num_streams_get, 0);
634
- rb_define_method(cXMLParserContext, "io_num_streams", ruby_xml_parser_context_io_num_streams_get, 0);
635
- rb_define_method(cXMLParserContext, "keep_blanks?", ruby_xml_parser_context_keep_blanks_q, 0);
636
- rb_define_method(cXMLParserContext, "name_node", ruby_xml_parser_context_name_node_get, 0);
637
- rb_define_method(cXMLParserContext, "name_depth", ruby_xml_parser_context_name_depth_get, 0);
638
- rb_define_method(cXMLParserContext, "name_depth_max", ruby_xml_parser_context_name_depth_max_get, 0);
639
- rb_define_method(cXMLParserContext, "name_tab", ruby_xml_parser_context_name_tab_get, 0);
640
- rb_define_method(cXMLParserContext, "node", ruby_xml_parser_context_node_get, 0);
641
- rb_define_method(cXMLParserContext, "node_depth", ruby_xml_parser_context_node_depth_get, 0);
642
- rb_define_method(cXMLParserContext, "node_depth_max", ruby_xml_parser_context_node_depth_max_get, 0);
643
- rb_define_method(cXMLParserContext, "num_chars", ruby_xml_parser_context_num_chars_get, 0);
644
- rb_define_method(cXMLParserContext, "replace_entities?", ruby_xml_parser_context_replace_entities_q, 0);
645
- rb_define_method(cXMLParserContext, "replace_entities=", ruby_xml_parser_context_replace_entities_set, 1);
646
- rb_define_method(cXMLParserContext, "space_depth", ruby_xml_parser_context_space_depth_get, 0);
647
- rb_define_method(cXMLParserContext, "space_depth_max", ruby_xml_parser_context_space_depth_max_get, 0);
648
- rb_define_method(cXMLParserContext, "subset_external?", ruby_xml_parser_context_subset_external_q, 0);
649
- rb_define_method(cXMLParserContext, "subset_external_system_id", ruby_xml_parser_context_subset_external_system_id_get, 0);
650
- rb_define_method(cXMLParserContext, "subset_external_uri", ruby_xml_parser_context_subset_name_get, 0);
651
- rb_define_method(cXMLParserContext, "subset_internal?", ruby_xml_parser_context_subset_internal_q, 0);
652
- rb_define_method(cXMLParserContext, "subset_internal_name", ruby_xml_parser_context_subset_name_get, 0);
653
- rb_define_method(cXMLParserContext, "stats?", ruby_xml_parser_context_stats_q, 0);
654
- rb_define_method(cXMLParserContext, "standalone?", ruby_xml_parser_context_standalone_q, 0);
655
- rb_define_method(cXMLParserContext, "valid", ruby_xml_parser_context_valid_q, 0);
656
- rb_define_method(cXMLParserContext, "validate?", ruby_xml_parser_context_validate_q, 0);
657
- rb_define_method(cXMLParserContext, "version", ruby_xml_parser_context_version_get, 0);
658
- rb_define_method(cXMLParserContext, "well_formed?", ruby_xml_parser_context_well_formed_q, 0);
626
+ rb_define_method(cXMLParserContext, "data_directory", rxml_parser_context_data_directory_get, 0);
627
+ rb_define_method(cXMLParserContext, "depth", rxml_parser_context_depth_get, 0);
628
+ rb_define_method(cXMLParserContext, "disable_sax?", rxml_parser_context_disable_sax_q, 0);
629
+ rb_define_method(cXMLParserContext, "docbook?", rxml_parser_context_docbook_q, 0);
630
+ rb_define_method(cXMLParserContext, "encoding", rxml_parser_context_encoding_get, 0);
631
+ rb_define_method(cXMLParserContext, "errno", rxml_parser_context_errno_get, 0);
632
+ rb_define_method(cXMLParserContext, "html?", rxml_parser_context_html_q, 0);
633
+ rb_define_method(cXMLParserContext, "io_max_num_streams", rxml_parser_context_io_max_num_streams_get, 0);
634
+ rb_define_method(cXMLParserContext, "io_num_streams", rxml_parser_context_io_num_streams_get, 0);
635
+ rb_define_method(cXMLParserContext, "keep_blanks?", rxml_parser_context_keep_blanks_q, 0);
636
+ rb_define_method(cXMLParserContext, "name_node", rxml_parser_context_name_node_get, 0);
637
+ rb_define_method(cXMLParserContext, "name_depth", rxml_parser_context_name_depth_get, 0);
638
+ rb_define_method(cXMLParserContext, "name_depth_max", rxml_parser_context_name_depth_max_get, 0);
639
+ rb_define_method(cXMLParserContext, "name_tab", rxml_parser_context_name_tab_get, 0);
640
+ rb_define_method(cXMLParserContext, "node", rxml_parser_context_node_get, 0);
641
+ rb_define_method(cXMLParserContext, "node_depth", rxml_parser_context_node_depth_get, 0);
642
+ rb_define_method(cXMLParserContext, "node_depth_max", rxml_parser_context_node_depth_max_get, 0);
643
+ rb_define_method(cXMLParserContext, "num_chars", rxml_parser_context_num_chars_get, 0);
644
+ rb_define_method(cXMLParserContext, "replace_entities?", rxml_parser_context_replace_entities_q, 0);
645
+ rb_define_method(cXMLParserContext, "replace_entities=", rxml_parser_context_replace_entities_set, 1);
646
+ rb_define_method(cXMLParserContext, "space_depth", rxml_parser_context_space_depth_get, 0);
647
+ rb_define_method(cXMLParserContext, "space_depth_max", rxml_parser_context_space_depth_max_get, 0);
648
+ rb_define_method(cXMLParserContext, "subset_external?", rxml_parser_context_subset_external_q, 0);
649
+ rb_define_method(cXMLParserContext, "subset_external_system_id", rxml_parser_context_subset_external_system_id_get, 0);
650
+ rb_define_method(cXMLParserContext, "subset_external_uri", rxml_parser_context_subset_name_get, 0);
651
+ rb_define_method(cXMLParserContext, "subset_internal?", rxml_parser_context_subset_internal_q, 0);
652
+ rb_define_method(cXMLParserContext, "subset_internal_name", rxml_parser_context_subset_name_get, 0);
653
+ rb_define_method(cXMLParserContext, "stats?", rxml_parser_context_stats_q, 0);
654
+ rb_define_method(cXMLParserContext, "standalone?", rxml_parser_context_standalone_q, 0);
655
+ rb_define_method(cXMLParserContext, "valid", rxml_parser_context_valid_q, 0);
656
+ rb_define_method(cXMLParserContext, "validate?", rxml_parser_context_validate_q, 0);
657
+ rb_define_method(cXMLParserContext, "version", rxml_parser_context_version_get, 0);
658
+ rb_define_method(cXMLParserContext, "well_formed?", rxml_parser_context_well_formed_q, 0);
659
659
  }