pocxxeci 0.30.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pocxxeci might be problematic. Click here for more details.

Files changed (160) hide show
  1. package/LICENSE +19 -0
  2. package/Makefile +18 -0
  3. package/README.md +52 -0
  4. package/binding.gyp +81 -0
  5. package/index.d.ts +273 -0
  6. package/index.js +45 -0
  7. package/lib/bindings.js +1 -0
  8. package/lib/document.js +122 -0
  9. package/lib/element.js +82 -0
  10. package/lib/sax_parser.js +38 -0
  11. package/package.json +70 -0
  12. package/src/html_document.cc +7 -0
  13. package/src/html_document.h +18 -0
  14. package/src/libxmljs.cc +252 -0
  15. package/src/libxmljs.h +53 -0
  16. package/src/xml_attribute.cc +173 -0
  17. package/src/xml_attribute.h +40 -0
  18. package/src/xml_comment.cc +117 -0
  19. package/src/xml_comment.h +30 -0
  20. package/src/xml_document.cc +810 -0
  21. package/src/xml_document.h +67 -0
  22. package/src/xml_element.cc +565 -0
  23. package/src/xml_element.h +61 -0
  24. package/src/xml_namespace.cc +158 -0
  25. package/src/xml_namespace.h +39 -0
  26. package/src/xml_node.cc +761 -0
  27. package/src/xml_node.h +73 -0
  28. package/src/xml_pi.cc +161 -0
  29. package/src/xml_pi.h +34 -0
  30. package/src/xml_sax_parser.cc +424 -0
  31. package/src/xml_sax_parser.h +73 -0
  32. package/src/xml_syntax_error.cc +66 -0
  33. package/src/xml_syntax_error.h +25 -0
  34. package/src/xml_text.cc +320 -0
  35. package/src/xml_text.h +48 -0
  36. package/src/xml_textwriter.cc +315 -0
  37. package/src/xml_textwriter.h +62 -0
  38. package/src/xml_xpath_context.cc +70 -0
  39. package/src/xml_xpath_context.h +23 -0
  40. package/vendor/libxml/Copyright +23 -0
  41. package/vendor/libxml/DOCBparser.c +305 -0
  42. package/vendor/libxml/HTMLparser.c +7287 -0
  43. package/vendor/libxml/HTMLtree.c +1200 -0
  44. package/vendor/libxml/Makefile +2983 -0
  45. package/vendor/libxml/SAX.c +180 -0
  46. package/vendor/libxml/SAX2.c +3036 -0
  47. package/vendor/libxml/buf.c +1351 -0
  48. package/vendor/libxml/buf.h +72 -0
  49. package/vendor/libxml/c14n.c +2234 -0
  50. package/vendor/libxml/catalog.c +3828 -0
  51. package/vendor/libxml/chvalid.c +336 -0
  52. package/vendor/libxml/config.h +294 -0
  53. package/vendor/libxml/config.h.gch +0 -0
  54. package/vendor/libxml/debugXML.c +3423 -0
  55. package/vendor/libxml/dict.c +1298 -0
  56. package/vendor/libxml/elfgcchack.h +17818 -0
  57. package/vendor/libxml/enc.h +32 -0
  58. package/vendor/libxml/encoding.c +3975 -0
  59. package/vendor/libxml/entities.c +1163 -0
  60. package/vendor/libxml/error.c +998 -0
  61. package/vendor/libxml/globals.c +1126 -0
  62. package/vendor/libxml/hash.c +1146 -0
  63. package/vendor/libxml/include/libxml/DOCBparser.h +96 -0
  64. package/vendor/libxml/include/libxml/HTMLparser.h +306 -0
  65. package/vendor/libxml/include/libxml/HTMLtree.h +147 -0
  66. package/vendor/libxml/include/libxml/Makefile +725 -0
  67. package/vendor/libxml/include/libxml/Makefile.am +54 -0
  68. package/vendor/libxml/include/libxml/Makefile.in +725 -0
  69. package/vendor/libxml/include/libxml/SAX.h +173 -0
  70. package/vendor/libxml/include/libxml/SAX2.h +178 -0
  71. package/vendor/libxml/include/libxml/c14n.h +128 -0
  72. package/vendor/libxml/include/libxml/catalog.h +182 -0
  73. package/vendor/libxml/include/libxml/chvalid.h +230 -0
  74. package/vendor/libxml/include/libxml/debugXML.h +217 -0
  75. package/vendor/libxml/include/libxml/dict.h +79 -0
  76. package/vendor/libxml/include/libxml/encoding.h +245 -0
  77. package/vendor/libxml/include/libxml/entities.h +151 -0
  78. package/vendor/libxml/include/libxml/globals.h +508 -0
  79. package/vendor/libxml/include/libxml/hash.h +236 -0
  80. package/vendor/libxml/include/libxml/list.h +137 -0
  81. package/vendor/libxml/include/libxml/nanoftp.h +163 -0
  82. package/vendor/libxml/include/libxml/nanohttp.h +81 -0
  83. package/vendor/libxml/include/libxml/parser.h +1243 -0
  84. package/vendor/libxml/include/libxml/parserInternals.h +644 -0
  85. package/vendor/libxml/include/libxml/pattern.h +100 -0
  86. package/vendor/libxml/include/libxml/relaxng.h +217 -0
  87. package/vendor/libxml/include/libxml/schemasInternals.h +958 -0
  88. package/vendor/libxml/include/libxml/schematron.h +142 -0
  89. package/vendor/libxml/include/libxml/threads.h +89 -0
  90. package/vendor/libxml/include/libxml/tree.h +1311 -0
  91. package/vendor/libxml/include/libxml/uri.h +94 -0
  92. package/vendor/libxml/include/libxml/valid.h +458 -0
  93. package/vendor/libxml/include/libxml/xinclude.h +129 -0
  94. package/vendor/libxml/include/libxml/xlink.h +189 -0
  95. package/vendor/libxml/include/libxml/xmlIO.h +368 -0
  96. package/vendor/libxml/include/libxml/xmlautomata.h +146 -0
  97. package/vendor/libxml/include/libxml/xmlerror.h +945 -0
  98. package/vendor/libxml/include/libxml/xmlexports.h +77 -0
  99. package/vendor/libxml/include/libxml/xmlmemory.h +224 -0
  100. package/vendor/libxml/include/libxml/xmlmodule.h +57 -0
  101. package/vendor/libxml/include/libxml/xmlreader.h +428 -0
  102. package/vendor/libxml/include/libxml/xmlregexp.h +222 -0
  103. package/vendor/libxml/include/libxml/xmlsave.h +88 -0
  104. package/vendor/libxml/include/libxml/xmlschemas.h +246 -0
  105. package/vendor/libxml/include/libxml/xmlschemastypes.h +151 -0
  106. package/vendor/libxml/include/libxml/xmlstring.h +140 -0
  107. package/vendor/libxml/include/libxml/xmlunicode.h +202 -0
  108. package/vendor/libxml/include/libxml/xmlversion.h +484 -0
  109. package/vendor/libxml/include/libxml/xmlwin32version.h +239 -0
  110. package/vendor/libxml/include/libxml/xmlwriter.h +488 -0
  111. package/vendor/libxml/include/libxml/xpath.h +564 -0
  112. package/vendor/libxml/include/libxml/xpathInternals.h +632 -0
  113. package/vendor/libxml/include/libxml/xpointer.h +114 -0
  114. package/vendor/libxml/include/win32config.h +122 -0
  115. package/vendor/libxml/include/wsockcompat.h +54 -0
  116. package/vendor/libxml/legacy.c +1343 -0
  117. package/vendor/libxml/libxml.h +134 -0
  118. package/vendor/libxml/list.c +779 -0
  119. package/vendor/libxml/nanoftp.c +2118 -0
  120. package/vendor/libxml/nanohttp.c +1899 -0
  121. package/vendor/libxml/parser.c +15553 -0
  122. package/vendor/libxml/parserInternals.c +2164 -0
  123. package/vendor/libxml/pattern.c +2621 -0
  124. package/vendor/libxml/relaxng.c +11101 -0
  125. package/vendor/libxml/rngparser.c +1595 -0
  126. package/vendor/libxml/runsuite.c +1157 -0
  127. package/vendor/libxml/save.h +36 -0
  128. package/vendor/libxml/schematron.c +1787 -0
  129. package/vendor/libxml/threads.c +1049 -0
  130. package/vendor/libxml/timsort.h +601 -0
  131. package/vendor/libxml/tree.c +10183 -0
  132. package/vendor/libxml/trio.c +6895 -0
  133. package/vendor/libxml/trio.h +230 -0
  134. package/vendor/libxml/triodef.h +228 -0
  135. package/vendor/libxml/trionan.c +914 -0
  136. package/vendor/libxml/trionan.h +84 -0
  137. package/vendor/libxml/triop.h +150 -0
  138. package/vendor/libxml/triostr.c +2112 -0
  139. package/vendor/libxml/triostr.h +144 -0
  140. package/vendor/libxml/uri.c +2561 -0
  141. package/vendor/libxml/valid.c +7138 -0
  142. package/vendor/libxml/xinclude.c +2657 -0
  143. package/vendor/libxml/xlink.c +183 -0
  144. package/vendor/libxml/xmlIO.c +4135 -0
  145. package/vendor/libxml/xmlcatalog.c +624 -0
  146. package/vendor/libxml/xmllint.c +3796 -0
  147. package/vendor/libxml/xmlmemory.c +1163 -0
  148. package/vendor/libxml/xmlmodule.c +468 -0
  149. package/vendor/libxml/xmlreader.c +6033 -0
  150. package/vendor/libxml/xmlregexp.c +8271 -0
  151. package/vendor/libxml/xmlsave.c +2735 -0
  152. package/vendor/libxml/xmlschemas.c +29173 -0
  153. package/vendor/libxml/xmlschemastypes.c +6276 -0
  154. package/vendor/libxml/xmlstring.c +1050 -0
  155. package/vendor/libxml/xmlunicode.c +3179 -0
  156. package/vendor/libxml/xmlwriter.c +4738 -0
  157. package/vendor/libxml/xpath.c +14734 -0
  158. package/vendor/libxml/xpointer.c +2969 -0
  159. package/vendor/libxml/xzlib.c +815 -0
  160. package/vendor/libxml/xzlib.h +19 -0
@@ -0,0 +1,84 @@
1
+ /*************************************************************************
2
+ *
3
+ * $Id$
4
+ *
5
+ * Copyright (C) 2001 Bjorn Reese <breese@users.sourceforge.net>
6
+ *
7
+ * Permission to use, copy, modify, and distribute this software for any
8
+ * purpose with or without fee is hereby granted, provided that the above
9
+ * copyright notice and this permission notice appear in all copies.
10
+ *
11
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
12
+ * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
13
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE AUTHORS AND
14
+ * CONTRIBUTORS ACCEPT NO RESPONSIBILITY IN ANY CONCEIVABLE MANNER.
15
+ *
16
+ ************************************************************************/
17
+
18
+ #ifndef TRIO_NAN_H
19
+ #define TRIO_NAN_H
20
+
21
+ #include "triodef.h"
22
+
23
+ #ifdef __cplusplus
24
+ extern "C" {
25
+ #endif
26
+
27
+ enum {
28
+ TRIO_FP_INFINITE,
29
+ TRIO_FP_NAN,
30
+ TRIO_FP_NORMAL,
31
+ TRIO_FP_SUBNORMAL,
32
+ TRIO_FP_ZERO
33
+ };
34
+
35
+ /*
36
+ * Return NaN (Not-a-Number).
37
+ */
38
+ TRIO_PUBLIC double trio_nan TRIO_PROTO((void));
39
+
40
+ /*
41
+ * Return positive infinity.
42
+ */
43
+ TRIO_PUBLIC double trio_pinf TRIO_PROTO((void));
44
+
45
+ /*
46
+ * Return negative infinity.
47
+ */
48
+ TRIO_PUBLIC double trio_ninf TRIO_PROTO((void));
49
+
50
+ /*
51
+ * Return negative zero.
52
+ */
53
+ TRIO_PUBLIC double trio_nzero TRIO_PROTO((TRIO_NOARGS));
54
+
55
+ /*
56
+ * If number is a NaN return non-zero, otherwise return zero.
57
+ */
58
+ TRIO_PUBLIC int trio_isnan TRIO_PROTO((double number));
59
+
60
+ /*
61
+ * If number is positive infinity return 1, if number is negative
62
+ * infinity return -1, otherwise return 0.
63
+ */
64
+ TRIO_PUBLIC int trio_isinf TRIO_PROTO((double number));
65
+
66
+ /*
67
+ * If number is finite return non-zero, otherwise return zero.
68
+ */
69
+ #if 0
70
+ /* Temporary fix - these 2 routines not used in libxml */
71
+ TRIO_PUBLIC int trio_isfinite TRIO_PROTO((double number));
72
+
73
+ TRIO_PUBLIC int trio_fpclassify TRIO_PROTO((double number));
74
+ #endif
75
+
76
+ TRIO_PUBLIC int trio_signbit TRIO_PROTO((double number));
77
+
78
+ TRIO_PUBLIC int trio_fpclassify_and_signbit TRIO_PROTO((double number, int *is_negative));
79
+
80
+ #ifdef __cplusplus
81
+ }
82
+ #endif
83
+
84
+ #endif /* TRIO_NAN_H */
@@ -0,0 +1,150 @@
1
+ /*************************************************************************
2
+ *
3
+ * $Id$
4
+ *
5
+ * Copyright (C) 2000 Bjorn Reese and Daniel Stenberg.
6
+ *
7
+ * Permission to use, copy, modify, and distribute this software for any
8
+ * purpose with or without fee is hereby granted, provided that the above
9
+ * copyright notice and this permission notice appear in all copies.
10
+ *
11
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
12
+ * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
13
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE AUTHORS AND
14
+ * CONTRIBUTORS ACCEPT NO RESPONSIBILITY IN ANY CONCEIVABLE MANNER.
15
+ *
16
+ ************************************************************************
17
+ *
18
+ * Private functions, types, etc. used for callback functions.
19
+ *
20
+ * The ref pointer is an opaque type and should remain as such.
21
+ * Private data must only be accessible through the getter and
22
+ * setter functions.
23
+ *
24
+ ************************************************************************/
25
+
26
+ #ifndef TRIO_TRIOP_H
27
+ #define TRIO_TRIOP_H
28
+
29
+ #include "triodef.h"
30
+
31
+ #include <stdlib.h>
32
+ #if defined(TRIO_COMPILER_ANCIENT)
33
+ # include <varargs.h>
34
+ #else
35
+ # include <stdarg.h>
36
+ #endif
37
+
38
+ #ifdef __cplusplus
39
+ extern "C" {
40
+ #endif
41
+
42
+ #ifndef TRIO_C99
43
+ # define TRIO_C99 1
44
+ #endif
45
+ #ifndef TRIO_BSD
46
+ # define TRIO_BSD 1
47
+ #endif
48
+ #ifndef TRIO_GNU
49
+ # define TRIO_GNU 1
50
+ #endif
51
+ #ifndef TRIO_MISC
52
+ # define TRIO_MISC 1
53
+ #endif
54
+ #ifndef TRIO_UNIX98
55
+ # define TRIO_UNIX98 1
56
+ #endif
57
+ #ifndef TRIO_MICROSOFT
58
+ # define TRIO_MICROSOFT 1
59
+ #endif
60
+ #ifndef TRIO_EXTENSION
61
+ # define TRIO_EXTENSION 1
62
+ #endif
63
+ #ifndef TRIO_WIDECHAR /* Does not work yet. Do not enable */
64
+ # define TRIO_WIDECHAR 0
65
+ #endif
66
+ #ifndef TRIO_ERRORS
67
+ # define TRIO_ERRORS 1
68
+ #endif
69
+
70
+ #ifndef TRIO_MALLOC
71
+ # define TRIO_MALLOC(n) malloc(n)
72
+ #endif
73
+ #ifndef TRIO_REALLOC
74
+ # define TRIO_REALLOC(x,n) realloc((x),(n))
75
+ #endif
76
+ #ifndef TRIO_FREE
77
+ # define TRIO_FREE(x) free(x)
78
+ #endif
79
+
80
+
81
+ /*************************************************************************
82
+ * User-defined specifiers
83
+ */
84
+
85
+ typedef int (*trio_callback_t) TRIO_PROTO((trio_pointer_t));
86
+
87
+ trio_pointer_t trio_register TRIO_PROTO((trio_callback_t callback, const char *name));
88
+ void trio_unregister TRIO_PROTO((trio_pointer_t handle));
89
+
90
+ TRIO_CONST char *trio_get_format TRIO_PROTO((trio_pointer_t ref));
91
+ trio_pointer_t trio_get_argument TRIO_PROTO((trio_pointer_t ref));
92
+
93
+ /* Modifiers */
94
+ int trio_get_width TRIO_PROTO((trio_pointer_t ref));
95
+ void trio_set_width TRIO_PROTO((trio_pointer_t ref, int width));
96
+ int trio_get_precision TRIO_PROTO((trio_pointer_t ref));
97
+ void trio_set_precision TRIO_PROTO((trio_pointer_t ref, int precision));
98
+ int trio_get_base TRIO_PROTO((trio_pointer_t ref));
99
+ void trio_set_base TRIO_PROTO((trio_pointer_t ref, int base));
100
+ int trio_get_padding TRIO_PROTO((trio_pointer_t ref));
101
+ void trio_set_padding TRIO_PROTO((trio_pointer_t ref, int is_padding));
102
+ int trio_get_short TRIO_PROTO((trio_pointer_t ref)); /* h */
103
+ void trio_set_shortshort TRIO_PROTO((trio_pointer_t ref, int is_shortshort));
104
+ int trio_get_shortshort TRIO_PROTO((trio_pointer_t ref)); /* hh */
105
+ void trio_set_short TRIO_PROTO((trio_pointer_t ref, int is_short));
106
+ int trio_get_long TRIO_PROTO((trio_pointer_t ref)); /* l */
107
+ void trio_set_long TRIO_PROTO((trio_pointer_t ref, int is_long));
108
+ int trio_get_longlong TRIO_PROTO((trio_pointer_t ref)); /* ll */
109
+ void trio_set_longlong TRIO_PROTO((trio_pointer_t ref, int is_longlong));
110
+ int trio_get_longdouble TRIO_PROTO((trio_pointer_t ref)); /* L */
111
+ void trio_set_longdouble TRIO_PROTO((trio_pointer_t ref, int is_longdouble));
112
+ int trio_get_alternative TRIO_PROTO((trio_pointer_t ref)); /* # */
113
+ void trio_set_alternative TRIO_PROTO((trio_pointer_t ref, int is_alternative));
114
+ int trio_get_alignment TRIO_PROTO((trio_pointer_t ref)); /* - */
115
+ void trio_set_alignment TRIO_PROTO((trio_pointer_t ref, int is_leftaligned));
116
+ int trio_get_spacing TRIO_PROTO((trio_pointer_t ref)); /* TRIO_PROTO((space) */
117
+ void trio_set_spacing TRIO_PROTO((trio_pointer_t ref, int is_space));
118
+ int trio_get_sign TRIO_PROTO((trio_pointer_t ref)); /* + */
119
+ void trio_set_sign TRIO_PROTO((trio_pointer_t ref, int is_showsign));
120
+ int trio_get_quote TRIO_PROTO((trio_pointer_t ref)); /* ' */
121
+ void trio_set_quote TRIO_PROTO((trio_pointer_t ref, int is_quote));
122
+ int trio_get_upper TRIO_PROTO((trio_pointer_t ref));
123
+ void trio_set_upper TRIO_PROTO((trio_pointer_t ref, int is_upper));
124
+ #if TRIO_C99
125
+ int trio_get_largest TRIO_PROTO((trio_pointer_t ref)); /* j */
126
+ void trio_set_largest TRIO_PROTO((trio_pointer_t ref, int is_largest));
127
+ int trio_get_ptrdiff TRIO_PROTO((trio_pointer_t ref)); /* t */
128
+ void trio_set_ptrdiff TRIO_PROTO((trio_pointer_t ref, int is_ptrdiff));
129
+ int trio_get_size TRIO_PROTO((trio_pointer_t ref)); /* z / Z */
130
+ void trio_set_size TRIO_PROTO((trio_pointer_t ref, int is_size));
131
+ #endif
132
+
133
+ /* Printing */
134
+ int trio_print_ref TRIO_PROTO((trio_pointer_t ref, const char *format, ...));
135
+ int trio_vprint_ref TRIO_PROTO((trio_pointer_t ref, const char *format, va_list args));
136
+ int trio_printv_ref TRIO_PROTO((trio_pointer_t ref, const char *format, trio_pointer_t *args));
137
+
138
+ void trio_print_int TRIO_PROTO((trio_pointer_t ref, int number));
139
+ void trio_print_uint TRIO_PROTO((trio_pointer_t ref, unsigned int number));
140
+ /* void trio_print_long TRIO_PROTO((trio_pointer_t ref, long number)); */
141
+ /* void trio_print_ulong TRIO_PROTO((trio_pointer_t ref, unsigned long number)); */
142
+ void trio_print_double TRIO_PROTO((trio_pointer_t ref, double number));
143
+ void trio_print_string TRIO_PROTO((trio_pointer_t ref, char *string));
144
+ void trio_print_pointer TRIO_PROTO((trio_pointer_t ref, trio_pointer_t pointer));
145
+
146
+ #ifdef __cplusplus
147
+ } /* extern "C" */
148
+ #endif
149
+
150
+ #endif /* TRIO_TRIOP_H */