nokolexbor 0.2.5 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/ext/nokolexbor/CMakeLists.txt +7 -4
  3. data/ext/nokolexbor/config.h.cmake.in +2 -0
  4. data/ext/nokolexbor/extconf.rb +47 -25
  5. data/ext/nokolexbor/libxml/SAX2.h +4 -4
  6. data/ext/nokolexbor/libxml/chvalid.h +21 -21
  7. data/ext/nokolexbor/libxml/dict.h +13 -13
  8. data/ext/nokolexbor/libxml/globals.h +202 -202
  9. data/ext/nokolexbor/libxml/hash.h +25 -25
  10. data/ext/nokolexbor/libxml/parser.h +5 -5
  11. data/ext/nokolexbor/libxml/parserInternals.h +4 -4
  12. data/ext/nokolexbor/libxml/pattern.h +14 -14
  13. data/ext/nokolexbor/libxml/threads.h +15 -15
  14. data/ext/nokolexbor/libxml/tree.h +5 -5
  15. data/ext/nokolexbor/libxml/xmlerror.h +5 -5
  16. data/ext/nokolexbor/libxml/xmlmemory.h +16 -16
  17. data/ext/nokolexbor/libxml/xmlstring.h +30 -30
  18. data/ext/nokolexbor/libxml/xpath.h +43 -43
  19. data/ext/nokolexbor/libxml/xpathInternals.h +128 -128
  20. data/ext/nokolexbor/memory.c +6 -6
  21. data/ext/nokolexbor/nl_cdata.c +44 -0
  22. data/ext/nokolexbor/nl_comment.c +44 -0
  23. data/ext/nokolexbor/nl_document.c +23 -9
  24. data/ext/nokolexbor/nl_node.c +191 -178
  25. data/ext/nokolexbor/nl_node_set.c +38 -73
  26. data/ext/nokolexbor/nl_text.c +44 -0
  27. data/ext/nokolexbor/nl_xpath_context.c +33 -42
  28. data/ext/nokolexbor/nokolexbor.c +7 -3
  29. data/ext/nokolexbor/nokolexbor.h +9 -7
  30. data/ext/nokolexbor/private/buf.h +1 -1
  31. data/ext/nokolexbor/private/error.h +3 -3
  32. data/ext/nokolexbor/xml_SAX2.c +8 -8
  33. data/ext/nokolexbor/xml_buf.c +19 -19
  34. data/ext/nokolexbor/xml_chvalid.c +25 -25
  35. data/ext/nokolexbor/xml_dict.c +69 -69
  36. data/ext/nokolexbor/xml_encoding.c +2 -2
  37. data/ext/nokolexbor/xml_error.c +51 -51
  38. data/ext/nokolexbor/xml_globals.c +329 -329
  39. data/ext/nokolexbor/xml_hash.c +131 -131
  40. data/ext/nokolexbor/xml_memory.c +25 -25
  41. data/ext/nokolexbor/xml_parser.c +3 -3
  42. data/ext/nokolexbor/xml_parserInternals.c +15 -15
  43. data/ext/nokolexbor/xml_pattern.c +103 -103
  44. data/ext/nokolexbor/xml_string.c +93 -93
  45. data/ext/nokolexbor/xml_threads.c +61 -61
  46. data/ext/nokolexbor/xml_tree.c +12 -12
  47. data/ext/nokolexbor/xml_xpath.c +1194 -1203
  48. data/lib/nokolexbor/document.rb +92 -1
  49. data/lib/nokolexbor/node.rb +64 -0
  50. data/lib/nokolexbor/node_set.rb +6 -5
  51. data/lib/nokolexbor/version.rb +1 -1
  52. data/lib/nokolexbor.rb +21 -1
  53. data/patches/0001-lexbor-support-text-pseudo-element.patch +1 -1
  54. metadata +7 -4
@@ -413,9 +413,9 @@ struct _xmlXPathParserContext {
413
413
  * Objects and Nodesets handling
414
414
  */
415
415
 
416
- XMLPUBVAR double xmlXPathNAN;
417
- XMLPUBVAR double xmlXPathPINF;
418
- XMLPUBVAR double xmlXPathNINF;
416
+ XMLPUBVAR double nl_xmlXPathNAN;
417
+ XMLPUBVAR double nl_xmlXPathPINF;
418
+ XMLPUBVAR double nl_xmlXPathNINF;
419
419
 
420
420
  /* These macros may later turn into functions */
421
421
  /**
@@ -455,68 +455,68 @@ XMLPUBVAR double xmlXPathNINF;
455
455
 
456
456
 
457
457
  XMLPUBFUN void XMLCALL
458
- xmlXPathFreeObject (xmlXPathObjectPtr obj);
458
+ nl_xmlXPathFreeObject (xmlXPathObjectPtr obj);
459
459
  XMLPUBFUN xmlNodeSetPtr XMLCALL
460
- xmlXPathNodeSetCreate (lxb_dom_node_t_ptr val);
460
+ nl_xmlXPathNodeSetCreate (lxb_dom_node_t_ptr val);
461
461
  XMLPUBFUN void XMLCALL
462
- xmlXPathFreeNodeSetList (xmlXPathObjectPtr obj);
462
+ nl_xmlXPathFreeNodeSetList (xmlXPathObjectPtr obj);
463
463
  XMLPUBFUN void XMLCALL
464
- xmlXPathFreeNodeSet (xmlNodeSetPtr obj);
464
+ nl_xmlXPathFreeNodeSet (xmlNodeSetPtr obj);
465
465
  XMLPUBFUN xmlXPathObjectPtr XMLCALL
466
- xmlXPathObjectCopy (xmlXPathObjectPtr val);
466
+ nl_xmlXPathObjectCopy (xmlXPathObjectPtr val);
467
467
  XMLPUBFUN int XMLCALL
468
- xmlXPathCmpNodes (lxb_dom_node_t_ptr node1,
468
+ nl_xmlXPathCmpNodes (lxb_dom_node_t_ptr node1,
469
469
  lxb_dom_node_t_ptr node2);
470
470
  /**
471
471
  * Conversion functions to basic types.
472
472
  */
473
473
  XMLPUBFUN int XMLCALL
474
- xmlXPathCastNumberToBoolean (double val);
474
+ nl_xmlXPathCastNumberToBoolean (double val);
475
475
  XMLPUBFUN int XMLCALL
476
- xmlXPathCastStringToBoolean (const xmlChar * val);
476
+ nl_xmlXPathCastStringToBoolean (const xmlChar * val);
477
477
  XMLPUBFUN int XMLCALL
478
- xmlXPathCastNodeSetToBoolean(xmlNodeSetPtr ns);
478
+ nl_xmlXPathCastNodeSetToBoolean(xmlNodeSetPtr ns);
479
479
  XMLPUBFUN int XMLCALL
480
- xmlXPathCastToBoolean (xmlXPathObjectPtr val);
480
+ nl_xmlXPathCastToBoolean (xmlXPathObjectPtr val);
481
481
 
482
482
  XMLPUBFUN double XMLCALL
483
- xmlXPathCastBooleanToNumber (int val);
483
+ nl_xmlXPathCastBooleanToNumber (int val);
484
484
  XMLPUBFUN double XMLCALL
485
- xmlXPathCastStringToNumber (const xmlChar * val);
485
+ nl_xmlXPathCastStringToNumber (const xmlChar * val);
486
486
  XMLPUBFUN double XMLCALL
487
- xmlXPathCastNodeToNumber (lxb_dom_node_t_ptr node);
487
+ nl_xmlXPathCastNodeToNumber (lxb_dom_node_t_ptr node);
488
488
  XMLPUBFUN double XMLCALL
489
- xmlXPathCastNodeSetToNumber (xmlNodeSetPtr ns);
489
+ nl_xmlXPathCastNodeSetToNumber (xmlNodeSetPtr ns);
490
490
  XMLPUBFUN double XMLCALL
491
- xmlXPathCastToNumber (xmlXPathObjectPtr val);
491
+ nl_xmlXPathCastToNumber (xmlXPathObjectPtr val);
492
492
 
493
493
  XMLPUBFUN xmlChar * XMLCALL
494
- xmlXPathCastBooleanToString (int val);
494
+ nl_xmlXPathCastBooleanToString (int val);
495
495
  XMLPUBFUN xmlChar * XMLCALL
496
- xmlXPathCastNumberToString (double val);
496
+ nl_xmlXPathCastNumberToString (double val);
497
497
  XMLPUBFUN xmlChar * XMLCALL
498
- xmlXPathCastNodeToString (lxb_dom_node_t_ptr node);
498
+ nl_xmlXPathCastNodeToString (lxb_dom_node_t_ptr node);
499
499
  XMLPUBFUN xmlChar * XMLCALL
500
- xmlXPathCastNodeSetToString (xmlNodeSetPtr ns);
500
+ nl_xmlXPathCastNodeSetToString (xmlNodeSetPtr ns);
501
501
  XMLPUBFUN xmlChar * XMLCALL
502
- xmlXPathCastToString (xmlXPathObjectPtr val);
502
+ nl_xmlXPathCastToString (xmlXPathObjectPtr val);
503
503
 
504
504
  XMLPUBFUN xmlXPathObjectPtr XMLCALL
505
- xmlXPathConvertBoolean (xmlXPathObjectPtr val);
505
+ nl_xmlXPathConvertBoolean (xmlXPathObjectPtr val);
506
506
  XMLPUBFUN xmlXPathObjectPtr XMLCALL
507
- xmlXPathConvertNumber (xmlXPathObjectPtr val);
507
+ nl_xmlXPathConvertNumber (xmlXPathObjectPtr val);
508
508
  XMLPUBFUN xmlXPathObjectPtr XMLCALL
509
- xmlXPathConvertString (xmlXPathObjectPtr val);
509
+ nl_xmlXPathConvertString (xmlXPathObjectPtr val);
510
510
 
511
511
  /**
512
512
  * Context handling.
513
513
  */
514
514
  XMLPUBFUN xmlXPathContextPtr XMLCALL
515
- xmlXPathNewContext (lxb_dom_document_t_ptr doc);
515
+ nl_xmlXPathNewContext (lxb_dom_document_t_ptr doc);
516
516
  XMLPUBFUN void XMLCALL
517
- xmlXPathFreeContext (xmlXPathContextPtr ctxt);
517
+ nl_xmlXPathFreeContext (xmlXPathContextPtr ctxt);
518
518
  XMLPUBFUN int XMLCALL
519
- xmlXPathContextSetCache(xmlXPathContextPtr ctxt,
519
+ nl_xmlXPathContextSetCache(xmlXPathContextPtr ctxt,
520
520
  int active,
521
521
  int value,
522
522
  int options);
@@ -524,48 +524,48 @@ XMLPUBFUN int XMLCALL
524
524
  * Evaluation functions.
525
525
  */
526
526
  XMLPUBFUN long XMLCALL
527
- xmlXPathOrderDocElems (lxb_dom_document_t_ptr doc);
527
+ nl_xmlXPathOrderDocElems (lxb_dom_document_t_ptr doc);
528
528
  XMLPUBFUN int XMLCALL
529
- xmlXPathSetContextNode (lxb_dom_node_t_ptr node,
529
+ nl_xmlXPathSetContextNode (lxb_dom_node_t_ptr node,
530
530
  xmlXPathContextPtr ctx);
531
531
  XMLPUBFUN xmlXPathObjectPtr XMLCALL
532
- xmlXPathNodeEval (lxb_dom_node_t_ptr node,
532
+ nl_xmlXPathNodeEval (lxb_dom_node_t_ptr node,
533
533
  const xmlChar *str,
534
534
  xmlXPathContextPtr ctx);
535
535
  XMLPUBFUN xmlXPathObjectPtr XMLCALL
536
- xmlXPathEval (const xmlChar *str,
536
+ nl_xmlXPathEval (const xmlChar *str,
537
537
  xmlXPathContextPtr ctx);
538
538
  XMLPUBFUN xmlXPathObjectPtr XMLCALL
539
- xmlXPathEvalExpression (const xmlChar *str,
539
+ nl_xmlXPathEvalExpression (const xmlChar *str,
540
540
  xmlXPathContextPtr ctxt);
541
541
  XMLPUBFUN int XMLCALL
542
- xmlXPathEvalPredicate (xmlXPathContextPtr ctxt,
542
+ nl_xmlXPathEvalPredicate (xmlXPathContextPtr ctxt,
543
543
  xmlXPathObjectPtr res);
544
544
  /**
545
545
  * Separate compilation/evaluation entry points.
546
546
  */
547
547
  XMLPUBFUN xmlXPathCompExprPtr XMLCALL
548
- xmlXPathCompile (const xmlChar *str);
548
+ nl_xmlXPathCompile (const xmlChar *str);
549
549
  XMLPUBFUN xmlXPathCompExprPtr XMLCALL
550
- xmlXPathCtxtCompile (xmlXPathContextPtr ctxt,
550
+ nl_xmlXPathCtxtCompile (xmlXPathContextPtr ctxt,
551
551
  const xmlChar *str);
552
552
  XMLPUBFUN xmlXPathObjectPtr XMLCALL
553
- xmlXPathCompiledEval (xmlXPathCompExprPtr comp,
553
+ nl_xmlXPathCompiledEval (xmlXPathCompExprPtr comp,
554
554
  xmlXPathContextPtr ctx);
555
555
  XMLPUBFUN int XMLCALL
556
- xmlXPathCompiledEvalToBoolean(xmlXPathCompExprPtr comp,
556
+ nl_xmlXPathCompiledEvalToBoolean(xmlXPathCompExprPtr comp,
557
557
  xmlXPathContextPtr ctxt);
558
558
  XMLPUBFUN void XMLCALL
559
- xmlXPathFreeCompExpr (xmlXPathCompExprPtr comp);
559
+ nl_xmlXPathFreeCompExpr (xmlXPathCompExprPtr comp);
560
560
  #endif /* LIBXML_XPATH_ENABLED */
561
561
  #if defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
562
562
  XML_DEPRECATED
563
563
  XMLPUBFUN void XMLCALL
564
- xmlXPathInit (void);
564
+ nl_xmlXPathInit (void);
565
565
  XMLPUBFUN int XMLCALL
566
- xmlXPathIsNaN (double val);
566
+ nl_xmlXPathIsNaN (double val);
567
567
  XMLPUBFUN int XMLCALL
568
- xmlXPathIsInf (double val);
568
+ nl_xmlXPathIsInf (double val);
569
569
 
570
570
  #ifdef __cplusplus
571
571
  }