@port-labs/jq-node-bindings 0.0.14 → 0.0.15-dev2

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 (454) hide show
  1. package/README.md +6 -1
  2. package/binding.gyp +42 -20
  3. package/configure +1 -1
  4. package/deps/jq/.gitattributes +12 -0
  5. package/deps/jq/AUTHORS +149 -43
  6. package/deps/jq/COPYING +75 -1
  7. package/deps/jq/ChangeLog +2 -2
  8. package/deps/jq/Makefile.am +106 -65
  9. package/deps/jq/NEWS.md +391 -0
  10. package/deps/jq/README.md +54 -52
  11. package/deps/jq/SECURITY.md +7 -0
  12. package/deps/jq/compile-ios.sh +106 -102
  13. package/deps/jq/configure.ac +72 -59
  14. package/deps/jq/docs/Pipfile +14 -0
  15. package/deps/jq/docs/Pipfile.lock +415 -0
  16. package/deps/jq/docs/README.md +15 -14
  17. package/deps/jq/docs/build_manpage.py +251 -0
  18. package/deps/jq/docs/build_mantests.py +21 -0
  19. package/deps/jq/docs/build_website.py +95 -0
  20. package/deps/jq/docs/content/download/default.yml +249 -0
  21. package/deps/jq/docs/content/index.yml +83 -0
  22. package/deps/jq/docs/content/{3.manual/v1.6 → manual/dev}/manual.yml +992 -452
  23. package/deps/jq/docs/content/{3.manual → manual}/v1.3/manual.yml +105 -116
  24. package/deps/jq/docs/content/{3.manual → manual}/v1.4/manual.yml +122 -129
  25. package/deps/jq/docs/content/{3.manual → manual}/v1.5/manual.yml +313 -262
  26. package/deps/jq/docs/content/{3.manual → manual/v1.6}/manual.yml +407 -332
  27. package/deps/jq/docs/content/manual/v1.7/manual.yml +3697 -0
  28. package/deps/jq/docs/content/tutorial/default.yml +337 -0
  29. package/deps/jq/docs/manual_schema.yml +60 -0
  30. package/deps/jq/docs/public/css/style.css +99 -0
  31. package/deps/jq/docs/public/icon.png +0 -0
  32. package/deps/jq/docs/public/icon.svg +1 -0
  33. package/deps/jq/docs/public/jq.svg +1 -0
  34. package/deps/jq/docs/public/js/manual-search.js +31 -49
  35. package/deps/jq/docs/templates/default.html.j2 +31 -0
  36. package/deps/jq/docs/templates/index.html.j2 +58 -0
  37. package/deps/jq/docs/templates/manual.html.j2 +120 -0
  38. package/deps/jq/docs/templates/shared/_footer.html.j2 +14 -0
  39. package/deps/jq/docs/templates/shared/_head.html.j2 +23 -0
  40. package/deps/jq/docs/templates/shared/_navbar.html.j2 +40 -0
  41. package/deps/jq/docs/validate_manual_schema.py +19 -0
  42. package/deps/jq/jq.1.prebuilt +1102 -294
  43. package/deps/jq/jq.spec +2 -3
  44. package/deps/jq/libjq.pc.in +11 -0
  45. package/deps/jq/m4/ax_pthread.m4 +522 -0
  46. package/deps/jq/modules/oniguruma/.travis.yml +17 -0
  47. package/deps/jq/modules/oniguruma/CMakeLists.txt +206 -41
  48. package/deps/jq/modules/oniguruma/COPYING +23 -25
  49. package/deps/jq/modules/oniguruma/HISTORY +368 -23
  50. package/deps/jq/modules/oniguruma/Makefile.am +61 -7
  51. package/deps/jq/modules/oniguruma/README +34 -20
  52. package/deps/jq/modules/oniguruma/README.md +106 -33
  53. package/deps/jq/modules/oniguruma/README_japanese +183 -0
  54. package/deps/jq/modules/oniguruma/autogen.sh +9 -0
  55. package/deps/jq/modules/oniguruma/cmake/Config.cmake.in +4 -0
  56. package/deps/jq/modules/oniguruma/configure.ac +66 -55
  57. package/deps/jq/modules/oniguruma/doc/API +485 -42
  58. package/deps/jq/modules/oniguruma/doc/API.ja +732 -293
  59. package/deps/jq/modules/oniguruma/doc/CALLOUTS.API +397 -0
  60. package/deps/jq/modules/oniguruma/doc/CALLOUTS.API.ja +393 -0
  61. package/deps/jq/modules/oniguruma/doc/CALLOUTS.BUILTIN +95 -0
  62. package/deps/jq/modules/oniguruma/doc/CALLOUTS.BUILTIN.ja +93 -0
  63. package/deps/jq/modules/oniguruma/doc/FAQ +3 -3
  64. package/deps/jq/modules/oniguruma/doc/FAQ.ja +8 -8
  65. package/deps/jq/modules/oniguruma/doc/RE +223 -63
  66. package/deps/jq/modules/oniguruma/doc/RE.ja +420 -265
  67. package/deps/jq/modules/oniguruma/doc/SYNTAX.md +1091 -0
  68. package/deps/jq/modules/oniguruma/doc/UNICODE_PROPERTIES +840 -697
  69. package/deps/jq/modules/oniguruma/harnesses/ascii_compatible.dict +113 -0
  70. package/deps/jq/modules/oniguruma/harnesses/base.c +749 -0
  71. package/deps/jq/modules/oniguruma/harnesses/deluxe.c +206 -0
  72. package/deps/jq/modules/oniguruma/harnesses/dict_conv.py +72 -0
  73. package/deps/jq/modules/oniguruma/harnesses/fuzzer.options +2 -0
  74. package/deps/jq/modules/oniguruma/harnesses/libfuzzer-onig.cpp +45 -0
  75. package/deps/jq/modules/oniguruma/harnesses/regset.c +392 -0
  76. package/deps/jq/modules/oniguruma/index.html +16 -5
  77. package/deps/jq/modules/oniguruma/index_ja.html +16 -5
  78. package/deps/jq/modules/oniguruma/make_win.bat +5 -0
  79. package/deps/jq/modules/oniguruma/make_win32.bat +5 -3
  80. package/deps/jq/modules/oniguruma/make_win64.bat +5 -3
  81. package/deps/jq/modules/oniguruma/onig-config.cmake.in +80 -0
  82. package/deps/jq/modules/oniguruma/onig-config.in +1 -1
  83. package/deps/jq/modules/oniguruma/oniguruma.pc.cmake.in +1 -1
  84. package/deps/jq/modules/oniguruma/oniguruma.pc.in +0 -1
  85. package/deps/jq/modules/oniguruma/sample/CMakeLists.txt +9 -2
  86. package/deps/jq/modules/oniguruma/sample/Makefile.am +24 -5
  87. package/deps/jq/modules/oniguruma/sample/bug_fix.c +13 -51
  88. package/deps/jq/modules/oniguruma/sample/callback_each_match.c +168 -0
  89. package/deps/jq/modules/oniguruma/sample/callout.c +268 -0
  90. package/deps/jq/modules/oniguruma/sample/count.c +125 -0
  91. package/deps/jq/modules/oniguruma/sample/crnl.c +6 -4
  92. package/deps/jq/modules/oniguruma/sample/echo.c +136 -0
  93. package/deps/jq/modules/oniguruma/sample/encode.c +53 -146
  94. package/deps/jq/modules/oniguruma/sample/listcap.c +18 -10
  95. package/deps/jq/modules/oniguruma/sample/names.c +10 -6
  96. package/deps/jq/modules/oniguruma/sample/posix.c +13 -2
  97. package/deps/jq/modules/oniguruma/sample/regset.c +95 -0
  98. package/deps/jq/modules/oniguruma/sample/scan.c +20 -6
  99. package/deps/jq/modules/oniguruma/sample/simple.c +8 -4
  100. package/deps/jq/modules/oniguruma/sample/sql.c +13 -8
  101. package/deps/jq/modules/oniguruma/sample/syntax.c +11 -10
  102. package/deps/jq/modules/oniguruma/sample/user_property.c +12 -7
  103. package/deps/jq/modules/oniguruma/src/Makefile.am +41 -15
  104. package/deps/jq/modules/oniguruma/src/Makefile.windows +196 -183
  105. package/deps/jq/modules/oniguruma/src/ascii.c +64 -7
  106. package/deps/jq/modules/oniguruma/src/big5.c +25 -15
  107. package/deps/jq/modules/oniguruma/src/config.h.cmake.in +7 -22
  108. package/deps/jq/modules/oniguruma/src/config.h.win32 +56 -84
  109. package/deps/jq/modules/oniguruma/src/config.h.win64 +56 -84
  110. package/deps/jq/modules/oniguruma/src/config.h.windows.in +62 -0
  111. package/deps/jq/modules/oniguruma/src/cp1251.c +14 -8
  112. package/deps/jq/modules/oniguruma/src/euc_jp.c +28 -30
  113. package/deps/jq/modules/oniguruma/src/euc_jp_prop.c +25 -32
  114. package/deps/jq/modules/oniguruma/src/euc_jp_prop.gperf +1 -2
  115. package/deps/jq/modules/oniguruma/src/euc_kr.c +27 -15
  116. package/deps/jq/modules/oniguruma/src/euc_tw.c +40 -17
  117. package/deps/jq/modules/oniguruma/src/gb18030.c +177 -119
  118. package/deps/jq/modules/oniguruma/src/gperf_fold_key_conv.py +12 -8
  119. package/deps/jq/modules/oniguruma/src/gperf_unfold_key_conv.py +8 -6
  120. package/deps/jq/modules/oniguruma/src/iso8859_1.c +92 -91
  121. package/deps/jq/modules/oniguruma/src/iso8859_10.c +13 -29
  122. package/deps/jq/modules/oniguruma/src/iso8859_11.c +4 -2
  123. package/deps/jq/modules/oniguruma/src/iso8859_13.c +13 -33
  124. package/deps/jq/modules/oniguruma/src/iso8859_14.c +13 -30
  125. package/deps/jq/modules/oniguruma/src/iso8859_15.c +13 -34
  126. package/deps/jq/modules/oniguruma/src/iso8859_16.c +13 -29
  127. package/deps/jq/modules/oniguruma/src/iso8859_2.c +13 -29
  128. package/deps/jq/modules/oniguruma/src/iso8859_3.c +13 -33
  129. package/deps/jq/modules/oniguruma/src/iso8859_4.c +13 -32
  130. package/deps/jq/modules/oniguruma/src/iso8859_5.c +16 -23
  131. package/deps/jq/modules/oniguruma/src/iso8859_6.c +4 -2
  132. package/deps/jq/modules/oniguruma/src/iso8859_7.c +14 -29
  133. package/deps/jq/modules/oniguruma/src/iso8859_8.c +4 -2
  134. package/deps/jq/modules/oniguruma/src/iso8859_9.c +13 -33
  135. package/deps/jq/modules/oniguruma/src/koi8.c +14 -27
  136. package/deps/jq/modules/oniguruma/src/koi8_r.c +12 -19
  137. package/deps/jq/modules/oniguruma/src/make_property.sh +21 -0
  138. package/deps/jq/modules/oniguruma/src/make_unicode_egcb.sh +7 -0
  139. package/deps/jq/modules/oniguruma/src/make_unicode_egcb_data.py +267 -0
  140. package/deps/jq/modules/oniguruma/src/make_unicode_fold.sh +25 -11
  141. package/deps/jq/modules/oniguruma/src/make_unicode_fold_data.py +206 -26
  142. package/deps/jq/modules/oniguruma/src/make_unicode_property.sh +19 -10
  143. package/deps/jq/modules/oniguruma/src/make_unicode_property_data.py +474 -375
  144. package/deps/jq/modules/oniguruma/src/make_unicode_wb.sh +7 -0
  145. package/deps/jq/modules/oniguruma/src/make_unicode_wb_data.py +267 -0
  146. package/deps/jq/modules/oniguruma/src/mktable.c +28 -24
  147. package/deps/jq/modules/oniguruma/src/onig_init.c +2 -2
  148. package/deps/jq/modules/oniguruma/src/oniggnu.h +7 -5
  149. package/deps/jq/modules/oniguruma/src/onigposix.h +40 -16
  150. package/deps/jq/modules/oniguruma/src/oniguruma.h +357 -107
  151. package/deps/jq/modules/oniguruma/src/regcomp.c +6214 -3933
  152. package/deps/jq/modules/oniguruma/src/regenc.c +197 -120
  153. package/deps/jq/modules/oniguruma/src/regenc.h +106 -63
  154. package/deps/jq/modules/oniguruma/src/regerror.c +112 -91
  155. package/deps/jq/modules/oniguruma/src/regexec.c +4876 -2010
  156. package/deps/jq/modules/oniguruma/src/regext.c +8 -8
  157. package/deps/jq/modules/oniguruma/src/reggnu.c +13 -17
  158. package/deps/jq/modules/oniguruma/src/regint.h +757 -491
  159. package/deps/jq/modules/oniguruma/src/regparse.c +7204 -3240
  160. package/deps/jq/modules/oniguruma/src/regparse.h +361 -218
  161. package/deps/jq/modules/oniguruma/src/regposerr.c +49 -9
  162. package/deps/jq/modules/oniguruma/src/regposix.c +106 -24
  163. package/deps/jq/modules/oniguruma/src/regsyntax.c +66 -13
  164. package/deps/jq/modules/oniguruma/src/regtrav.c +1 -1
  165. package/deps/jq/modules/oniguruma/src/regversion.c +6 -4
  166. package/deps/jq/modules/oniguruma/src/sjis.c +23 -52
  167. package/deps/jq/modules/oniguruma/src/sjis_prop.c +25 -32
  168. package/deps/jq/modules/oniguruma/src/sjis_prop.gperf +1 -2
  169. package/deps/jq/modules/oniguruma/src/st.c +248 -249
  170. package/deps/jq/modules/oniguruma/src/st.h +4 -5
  171. package/deps/jq/modules/oniguruma/src/unicode.c +869 -294
  172. package/deps/jq/modules/oniguruma/src/unicode_egcb_data.c +1419 -0
  173. package/deps/jq/modules/oniguruma/src/unicode_fold1_key.c +1829 -1300
  174. package/deps/jq/modules/oniguruma/src/unicode_fold2_key.c +32 -9
  175. package/deps/jq/modules/oniguruma/src/unicode_fold3_key.c +32 -9
  176. package/deps/jq/modules/oniguruma/src/unicode_fold_data.c +1210 -984
  177. package/deps/jq/modules/oniguruma/src/unicode_property_data.c +22480 -15198
  178. package/deps/jq/modules/oniguruma/src/unicode_property_data_posix.c +1463 -591
  179. package/deps/jq/modules/oniguruma/src/unicode_unfold_key.c +1958 -1418
  180. package/deps/jq/modules/oniguruma/src/unicode_wb_data.c +1106 -0
  181. package/deps/jq/modules/oniguruma/src/utf16_be.c +90 -49
  182. package/deps/jq/modules/oniguruma/src/utf16_le.c +80 -49
  183. package/deps/jq/modules/oniguruma/src/utf32_be.c +14 -42
  184. package/deps/jq/modules/oniguruma/src/utf32_le.c +13 -40
  185. package/deps/jq/modules/oniguruma/src/utf8.c +33 -78
  186. package/deps/jq/modules/oniguruma/test/CMakeLists.txt +55 -0
  187. package/deps/jq/modules/oniguruma/test/Makefile.am +65 -10
  188. package/deps/jq/modules/oniguruma/test/test.sh +17 -0
  189. package/deps/jq/modules/oniguruma/test/test_back.c +1450 -0
  190. package/deps/jq/modules/oniguruma/test/test_options.c +228 -0
  191. package/deps/jq/modules/oniguruma/test/test_regset.c +466 -0
  192. package/deps/jq/modules/oniguruma/test/test_syntax.c +365 -0
  193. package/deps/jq/modules/oniguruma/test/test_utf8.c +1761 -0
  194. package/deps/jq/modules/oniguruma/test/testc.c +128 -88
  195. package/deps/jq/modules/oniguruma/test/testp.c +613 -0
  196. package/deps/jq/modules/oniguruma/test/testu.c +75 -28
  197. package/deps/jq/modules/oniguruma/tis-ci/stub.c +3 -0
  198. package/deps/jq/modules/oniguruma/tis-ci/test_back.config +26 -0
  199. package/deps/jq/modules/oniguruma/tis-ci/test_regset.config +20 -0
  200. package/deps/jq/modules/oniguruma/tis-ci/test_syntax.config +26 -0
  201. package/deps/jq/modules/oniguruma/tis-ci/test_utf8.config +25 -0
  202. package/deps/jq/modules/oniguruma/tis-ci/testc.config +26 -0
  203. package/deps/jq/modules/oniguruma/tis-ci/testu.config +24 -0
  204. package/deps/jq/modules/oniguruma/tis.config +1336 -0
  205. package/deps/jq/modules/oniguruma/windows/CMakeLists.txt +8 -0
  206. package/deps/jq/modules/oniguruma/windows/testc.c +865 -869
  207. package/deps/jq/scripts/update-website +6 -5
  208. package/deps/jq/scripts/version +10 -7
  209. package/deps/jq/sig/jq-release-new.key +29 -0
  210. package/deps/jq/sig/v1.4/sha256sum.txt +1 -0
  211. package/deps/jq/sig/v1.5/sha256sum.txt +2 -0
  212. package/deps/jq/sig/v1.5rc1/sha256sum.txt +1 -0
  213. package/deps/jq/sig/v1.5rc2/sha256sum.txt +2 -0
  214. package/deps/jq/sig/v1.6/sha256sum.txt +2 -0
  215. package/deps/jq/sig/v1.7/jq-1.7.tar.gz.asc +16 -0
  216. package/deps/jq/sig/v1.7/jq-1.7.zip.asc +16 -0
  217. package/deps/jq/sig/v1.7/jq-linux-amd64.asc +16 -0
  218. package/deps/jq/sig/v1.7/jq-linux-arm64.asc +16 -0
  219. package/deps/jq/sig/v1.7/jq-linux-armel.asc +16 -0
  220. package/deps/jq/sig/v1.7/jq-linux-armhf.asc +16 -0
  221. package/deps/jq/sig/v1.7/jq-linux-i386.asc +16 -0
  222. package/deps/jq/sig/v1.7/jq-linux-mips.asc +16 -0
  223. package/deps/jq/sig/v1.7/jq-linux-mips64.asc +16 -0
  224. package/deps/jq/sig/v1.7/jq-linux-mips64el.asc +16 -0
  225. package/deps/jq/sig/v1.7/jq-linux-mips64r6.asc +16 -0
  226. package/deps/jq/sig/v1.7/jq-linux-mips64r6el.asc +16 -0
  227. package/deps/jq/sig/v1.7/jq-linux-mipsel.asc +16 -0
  228. package/deps/jq/sig/v1.7/jq-linux-mipsr6.asc +16 -0
  229. package/deps/jq/sig/v1.7/jq-linux-mipsr6el.asc +16 -0
  230. package/deps/jq/sig/v1.7/jq-linux-powerpc.asc +16 -0
  231. package/deps/jq/sig/v1.7/jq-linux-ppc64el.asc +16 -0
  232. package/deps/jq/sig/v1.7/jq-linux-riscv64.asc +16 -0
  233. package/deps/jq/sig/v1.7/jq-linux-s390x.asc +16 -0
  234. package/deps/jq/sig/v1.7/jq-macos-amd64.asc +16 -0
  235. package/deps/jq/sig/v1.7/jq-macos-arm64.asc +16 -0
  236. package/deps/jq/sig/v1.7/jq-windows-amd64.exe.asc +16 -0
  237. package/deps/jq/sig/v1.7/jq-windows-i386.exe.asc +16 -0
  238. package/deps/jq/sig/v1.7/sha256sum.txt +23 -0
  239. package/deps/jq/sig/v1.7.1/jq-1.7.1.tar.gz.asc +16 -0
  240. package/deps/jq/sig/v1.7.1/jq-1.7.1.zip.asc +16 -0
  241. package/deps/jq/sig/v1.7.1/jq-linux-amd64.asc +16 -0
  242. package/deps/jq/sig/v1.7.1/jq-linux-arm64.asc +16 -0
  243. package/deps/jq/sig/v1.7.1/jq-linux-armel.asc +16 -0
  244. package/deps/jq/sig/v1.7.1/jq-linux-armhf.asc +16 -0
  245. package/deps/jq/sig/v1.7.1/jq-linux-i386.asc +16 -0
  246. package/deps/jq/sig/v1.7.1/jq-linux-mips.asc +16 -0
  247. package/deps/jq/sig/v1.7.1/jq-linux-mips64.asc +16 -0
  248. package/deps/jq/sig/v1.7.1/jq-linux-mips64el.asc +16 -0
  249. package/deps/jq/sig/v1.7.1/jq-linux-mips64r6.asc +16 -0
  250. package/deps/jq/sig/v1.7.1/jq-linux-mips64r6el.asc +16 -0
  251. package/deps/jq/sig/v1.7.1/jq-linux-mipsel.asc +16 -0
  252. package/deps/jq/sig/v1.7.1/jq-linux-mipsr6.asc +16 -0
  253. package/deps/jq/sig/v1.7.1/jq-linux-mipsr6el.asc +16 -0
  254. package/deps/jq/sig/v1.7.1/jq-linux-powerpc.asc +16 -0
  255. package/deps/jq/sig/v1.7.1/jq-linux-ppc64el.asc +16 -0
  256. package/deps/jq/sig/v1.7.1/jq-linux-riscv64.asc +16 -0
  257. package/deps/jq/sig/v1.7.1/jq-linux-s390x.asc +16 -0
  258. package/deps/jq/sig/v1.7.1/jq-linux64.asc +16 -0
  259. package/deps/jq/sig/v1.7.1/jq-macos-amd64.asc +16 -0
  260. package/deps/jq/sig/v1.7.1/jq-macos-arm64.asc +16 -0
  261. package/deps/jq/sig/v1.7.1/jq-osx-amd64.asc +16 -0
  262. package/deps/jq/sig/v1.7.1/jq-win64.exe.asc +16 -0
  263. package/deps/jq/sig/v1.7.1/jq-windows-amd64.exe.asc +16 -0
  264. package/deps/jq/sig/v1.7.1/jq-windows-i386.exe.asc +16 -0
  265. package/deps/jq/sig/v1.7.1/sha256sum.txt +26 -0
  266. package/deps/jq/sig/v1.7rc1/jq-1.7rc1.tar.gz.asc +16 -0
  267. package/deps/jq/sig/v1.7rc1/jq-1.7rc1.zip.asc +16 -0
  268. package/deps/jq/sig/v1.7rc1/jq-linux-amd64.asc +16 -0
  269. package/deps/jq/sig/v1.7rc1/jq-linux-arm64.asc +16 -0
  270. package/deps/jq/sig/v1.7rc1/jq-linux-armel.asc +16 -0
  271. package/deps/jq/sig/v1.7rc1/jq-linux-armhf.asc +16 -0
  272. package/deps/jq/sig/v1.7rc1/jq-linux-i386.asc +16 -0
  273. package/deps/jq/sig/v1.7rc1/jq-linux-mips.asc +16 -0
  274. package/deps/jq/sig/v1.7rc1/jq-linux-mips64.asc +16 -0
  275. package/deps/jq/sig/v1.7rc1/jq-linux-mips64el.asc +16 -0
  276. package/deps/jq/sig/v1.7rc1/jq-linux-mips64r6.asc +16 -0
  277. package/deps/jq/sig/v1.7rc1/jq-linux-mips64r6el.asc +16 -0
  278. package/deps/jq/sig/v1.7rc1/jq-linux-mipsel.asc +16 -0
  279. package/deps/jq/sig/v1.7rc1/jq-linux-mipsr6.asc +16 -0
  280. package/deps/jq/sig/v1.7rc1/jq-linux-mipsr6el.asc +16 -0
  281. package/deps/jq/sig/v1.7rc1/jq-linux-powerpc.asc +16 -0
  282. package/deps/jq/sig/v1.7rc1/jq-linux-ppc64el.asc +16 -0
  283. package/deps/jq/sig/v1.7rc1/jq-linux-riscv64.asc +16 -0
  284. package/deps/jq/sig/v1.7rc1/jq-linux-s390x.asc +16 -0
  285. package/deps/jq/sig/v1.7rc1/jq-macos-amd64.asc +16 -0
  286. package/deps/jq/sig/v1.7rc1/jq-macos-arm64.asc +16 -0
  287. package/deps/jq/sig/v1.7rc1/jq-windows-amd64.exe.asc +16 -0
  288. package/deps/jq/sig/v1.7rc1/jq-windows-i386.exe.asc +16 -0
  289. package/deps/jq/sig/v1.7rc1/sha256sum.txt +23 -0
  290. package/deps/jq/sig/v1.7rc2/jq-1.7rc2.tar.gz.asc +16 -0
  291. package/deps/jq/sig/v1.7rc2/jq-1.7rc2.zip.asc +16 -0
  292. package/deps/jq/sig/v1.7rc2/jq-linux-amd64.asc +16 -0
  293. package/deps/jq/sig/v1.7rc2/jq-linux-arm64.asc +16 -0
  294. package/deps/jq/sig/v1.7rc2/jq-linux-armel.asc +16 -0
  295. package/deps/jq/sig/v1.7rc2/jq-linux-armhf.asc +16 -0
  296. package/deps/jq/sig/v1.7rc2/jq-linux-i386.asc +16 -0
  297. package/deps/jq/sig/v1.7rc2/jq-linux-mips.asc +16 -0
  298. package/deps/jq/sig/v1.7rc2/jq-linux-mips64.asc +16 -0
  299. package/deps/jq/sig/v1.7rc2/jq-linux-mips64el.asc +16 -0
  300. package/deps/jq/sig/v1.7rc2/jq-linux-mips64r6.asc +16 -0
  301. package/deps/jq/sig/v1.7rc2/jq-linux-mips64r6el.asc +16 -0
  302. package/deps/jq/sig/v1.7rc2/jq-linux-mipsel.asc +16 -0
  303. package/deps/jq/sig/v1.7rc2/jq-linux-mipsr6.asc +16 -0
  304. package/deps/jq/sig/v1.7rc2/jq-linux-mipsr6el.asc +16 -0
  305. package/deps/jq/sig/v1.7rc2/jq-linux-powerpc.asc +16 -0
  306. package/deps/jq/sig/v1.7rc2/jq-linux-ppc64el.asc +16 -0
  307. package/deps/jq/sig/v1.7rc2/jq-linux-riscv64.asc +16 -0
  308. package/deps/jq/sig/v1.7rc2/jq-linux-s390x.asc +16 -0
  309. package/deps/jq/sig/v1.7rc2/jq-macos-amd64.asc +16 -0
  310. package/deps/jq/sig/v1.7rc2/jq-macos-arm64.asc +16 -0
  311. package/deps/jq/sig/v1.7rc2/jq-windows-amd64.exe.asc +16 -0
  312. package/deps/jq/sig/v1.7rc2/jq-windows-i386.exe.asc +16 -0
  313. package/deps/jq/sig/v1.7rc2/sha256sum.txt +23 -0
  314. package/deps/jq/src/builtin.c +537 -343
  315. package/deps/jq/src/builtin.h +18 -0
  316. package/deps/jq/src/builtin.jq +116 -143
  317. package/deps/jq/src/bytecode.h +8 -4
  318. package/deps/jq/src/compile.c +157 -143
  319. package/deps/jq/src/compile.h +3 -4
  320. package/deps/jq/src/decNumber/ICU-license.html +45 -0
  321. package/deps/jq/src/decNumber/decBasic.c +3908 -0
  322. package/deps/jq/src/decNumber/decCommon.c +1835 -0
  323. package/deps/jq/src/decNumber/decContext.c +437 -0
  324. package/deps/jq/src/decNumber/decContext.h +254 -0
  325. package/deps/jq/src/decNumber/decDPD.h +1185 -0
  326. package/deps/jq/src/decNumber/decDouble.c +140 -0
  327. package/deps/jq/src/decNumber/decDouble.h +155 -0
  328. package/deps/jq/src/decNumber/decNumber.c +8143 -0
  329. package/deps/jq/src/decNumber/decNumber.h +182 -0
  330. package/deps/jq/src/decNumber/decNumberLocal.h +757 -0
  331. package/deps/jq/src/decNumber/decPacked.c +220 -0
  332. package/deps/jq/src/decNumber/decPacked.h +52 -0
  333. package/deps/jq/src/decNumber/decQuad.c +135 -0
  334. package/deps/jq/src/decNumber/decQuad.h +177 -0
  335. package/deps/jq/src/decNumber/decSingle.c +71 -0
  336. package/deps/jq/src/decNumber/decSingle.h +86 -0
  337. package/deps/jq/src/decNumber/decimal128.c +553 -0
  338. package/deps/jq/src/decNumber/decimal128.h +81 -0
  339. package/deps/jq/src/decNumber/decimal32.c +476 -0
  340. package/deps/jq/src/decNumber/decimal32.h +81 -0
  341. package/deps/jq/src/decNumber/decimal64.c +839 -0
  342. package/deps/jq/src/decNumber/decimal64.h +83 -0
  343. package/deps/jq/src/decNumber/decnumber.pdf +0 -0
  344. package/deps/jq/src/decNumber/example1.c +38 -0
  345. package/deps/jq/src/decNumber/example2.c +52 -0
  346. package/deps/jq/src/decNumber/example3.c +64 -0
  347. package/deps/jq/src/decNumber/example4.c +61 -0
  348. package/deps/jq/src/decNumber/example5.c +36 -0
  349. package/deps/jq/src/decNumber/example6.c +61 -0
  350. package/deps/jq/src/decNumber/example7.c +35 -0
  351. package/deps/jq/src/decNumber/example8.c +39 -0
  352. package/deps/jq/src/decNumber/readme.txt +81 -0
  353. package/deps/jq/src/exec_stack.h +5 -3
  354. package/deps/jq/src/execute.c +126 -44
  355. package/deps/jq/src/inject_errors.c +0 -2
  356. package/deps/jq/src/jq.h +10 -1
  357. package/deps/jq/src/jq_test.c +222 -11
  358. package/deps/jq/src/jv.c +807 -176
  359. package/deps/jq/src/jv.h +22 -1
  360. package/deps/jq/src/jv_alloc.c +33 -26
  361. package/deps/jq/src/jv_alloc.h +0 -11
  362. package/deps/jq/src/jv_aux.c +153 -67
  363. package/deps/jq/src/jv_dtoa.c +12 -2
  364. package/deps/jq/src/jv_dtoa_tsd.c +51 -0
  365. package/deps/jq/src/jv_dtoa_tsd.h +4 -0
  366. package/deps/jq/src/jv_parse.c +70 -15
  367. package/deps/jq/src/jv_print.c +56 -60
  368. package/deps/jq/src/jv_private.h +7 -0
  369. package/deps/jq/src/jv_thread.h +76 -0
  370. package/deps/jq/src/jv_unicode.c +18 -0
  371. package/deps/jq/src/jv_unicode.h +2 -0
  372. package/deps/jq/src/lexer.c +782 -543
  373. package/deps/jq/src/lexer.h +438 -64
  374. package/deps/jq/src/lexer.l +10 -3
  375. package/deps/jq/src/libm.h +16 -6
  376. package/deps/jq/src/linker.c +97 -40
  377. package/deps/jq/src/locfile.c +2 -1
  378. package/deps/jq/src/main.c +384 -336
  379. package/deps/jq/src/opcode_list.h +5 -2
  380. package/deps/jq/src/parser.c +2260 -1898
  381. package/deps/jq/src/parser.h +115 -98
  382. package/deps/jq/src/parser.y +124 -89
  383. package/deps/jq/src/util.c +854 -55
  384. package/deps/jq/src/util.h +6 -4
  385. package/deps/jq/tests/jq.test +762 -26
  386. package/deps/jq/tests/jq_fuzz_compile.c +27 -0
  387. package/deps/jq/tests/jq_fuzz_execute.cpp +42 -0
  388. package/deps/jq/tests/jq_fuzz_fixed.cpp +297 -0
  389. package/deps/jq/tests/jq_fuzz_load_file.c +28 -0
  390. package/deps/jq/tests/jq_fuzz_parse.c +21 -0
  391. package/deps/jq/tests/jq_fuzz_parse_extended.c +36 -0
  392. package/deps/jq/tests/jq_fuzz_parse_stream.c +21 -0
  393. package/deps/jq/tests/local.supp +14 -0
  394. package/deps/jq/tests/man.test +979 -0
  395. package/deps/jq/tests/manonig.test +76 -0
  396. package/deps/jq/tests/manonigtest +5 -0
  397. package/deps/jq/tests/mantest +1 -2
  398. package/deps/jq/tests/modules/home2/.jq/g.jq +1 -0
  399. package/deps/jq/tests/modules/shadow1.jq +2 -0
  400. package/deps/jq/tests/modules/shadow2.jq +1 -0
  401. package/deps/jq/tests/modules/test_bind_order0.jq +1 -0
  402. package/deps/jq/tests/modules/test_bind_order1.jq +1 -1
  403. package/deps/jq/tests/modules/test_bind_order2.jq +0 -1
  404. package/deps/jq/tests/no-main-program.jq +1 -0
  405. package/deps/jq/tests/onig.test +77 -2
  406. package/deps/jq/tests/setup +7 -2
  407. package/deps/jq/tests/shtest +478 -59
  408. package/deps/jq/tests/uri.test +38 -0
  409. package/deps/jq/tests/uritest +5 -0
  410. package/deps/jq/tests/yes-main-program.jq +2 -0
  411. package/index.d.ts +2 -0
  412. package/lib/index.js +3 -0
  413. package/lib/jq.js +15 -1
  414. package/lib/templateAsync.js +137 -0
  415. package/package.json +3 -3
  416. package/src/binding.cc +623 -146
  417. package/src/binding.h +3 -4
  418. package/test/santiy-async.test.js +171 -0
  419. package/test/santiy.test.js +2 -2
  420. package/test/template-async.test.js +182 -0
  421. package/test/template.test.js +3 -3
  422. package/deps/jq/.travis.yml +0 -202
  423. package/deps/jq/NEWS +0 -89
  424. package/deps/jq/appveyor.yml +0 -53
  425. package/deps/jq/docs/Gemfile +0 -7
  426. package/deps/jq/docs/Gemfile.lock +0 -63
  427. package/deps/jq/docs/Rakefile +0 -24
  428. package/deps/jq/docs/Rakefile.manual +0 -49
  429. package/deps/jq/docs/Rakefile.website +0 -76
  430. package/deps/jq/docs/content/1.tutorial/default.yml +0 -327
  431. package/deps/jq/docs/content/2.download/default.yml +0 -193
  432. package/deps/jq/docs/content/index/index.yml +0 -73
  433. package/deps/jq/docs/public/css/base.scss +0 -181
  434. package/deps/jq/docs/public/jq.png +0 -0
  435. package/deps/jq/docs/site.yml +0 -9
  436. package/deps/jq/docs/templates/default.liquid +0 -34
  437. package/deps/jq/docs/templates/index.liquid +0 -73
  438. package/deps/jq/docs/templates/manual.liquid +0 -99
  439. package/deps/jq/docs/templates/shared/_footer.liquid +0 -10
  440. package/deps/jq/docs/templates/shared/_head.liquid +0 -17
  441. package/deps/jq/docs/templates/shared/_navbar.liquid +0 -27
  442. package/deps/jq/modules/oniguruma/README.ja +0 -195
  443. package/deps/jq/modules/oniguruma/cmake/dist.cmake +0 -321
  444. package/deps/jq/modules/oniguruma/contributed/libfuzzer-onig.cpp +0 -31
  445. package/deps/jq/modules/oniguruma/dist.info +0 -10
  446. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold1_key.c +0 -2250
  447. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold2_key.c +0 -203
  448. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold3_key.c +0 -113
  449. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold_data.c +0 -1225
  450. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_property_data.c +0 -24742
  451. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_property_data_posix.c +0 -4846
  452. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_unfold_key.c +0 -2571
  453. /package/deps/jq/sig/{jq-release.key → jq-release-old.key} +0 -0
  454. /package/deps/jq/tests/modules/{.jq → home1/.jq} +0 -0
package/deps/jq/jq.spec CHANGED
@@ -5,8 +5,8 @@ Name: jq
5
5
  Version: %{myver}
6
6
  Release: %{myrel}%{?dist}
7
7
  Source0: jq-%{myver}.tar.gz
8
- URL: https://stedolan.github.io/jq
9
- License: BSD
8
+ URL: https://jqlang.github.io/jq
9
+ License: MIT AND ICU AND CC-BY-3.0
10
10
  AutoReqProv: no
11
11
  #BuildPrereq: autoconf, libtool, automake, flex, bison, python
12
12
 
@@ -52,7 +52,6 @@ rm -rf %{buildroot}
52
52
  %endif
53
53
  %{_datadir}/doc/%{name}/AUTHORS
54
54
  %{_datadir}/doc/%{name}/COPYING
55
- %{_datadir}/doc/%{name}/README
56
55
  %{_datadir}/doc/%{name}/README.md
57
56
  %{_datadir}/man/man1/jq.1
58
57
  %{_includedir}/jq.h
@@ -0,0 +1,11 @@
1
+ prefix=@prefix@
2
+ exec_prefix=@exec_prefix@
3
+ libdir=@libdir@
4
+ includedir=@includedir@
5
+
6
+ Name: libjq
7
+ URL: https://jqlang.github.io/jq/
8
+ Description: Library to process JSON using a query language
9
+ Version: @VERSION@
10
+ Libs: -L${libdir} -ljq
11
+ Cflags: -I${includedir}
@@ -0,0 +1,522 @@
1
+ # ===========================================================================
2
+ # https://www.gnu.org/software/autoconf-archive/ax_pthread.html
3
+ # ===========================================================================
4
+ #
5
+ # SYNOPSIS
6
+ #
7
+ # AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
8
+ #
9
+ # DESCRIPTION
10
+ #
11
+ # This macro figures out how to build C programs using POSIX threads. It
12
+ # sets the PTHREAD_LIBS output variable to the threads library and linker
13
+ # flags, and the PTHREAD_CFLAGS output variable to any special C compiler
14
+ # flags that are needed. (The user can also force certain compiler
15
+ # flags/libs to be tested by setting these environment variables.)
16
+ #
17
+ # Also sets PTHREAD_CC and PTHREAD_CXX to any special C compiler that is
18
+ # needed for multi-threaded programs (defaults to the value of CC
19
+ # respectively CXX otherwise). (This is necessary on e.g. AIX to use the
20
+ # special cc_r/CC_r compiler alias.)
21
+ #
22
+ # NOTE: You are assumed to not only compile your program with these flags,
23
+ # but also to link with them as well. For example, you might link with
24
+ # $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS
25
+ # $PTHREAD_CXX $CXXFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS
26
+ #
27
+ # If you are only building threaded programs, you may wish to use these
28
+ # variables in your default LIBS, CFLAGS, and CC:
29
+ #
30
+ # LIBS="$PTHREAD_LIBS $LIBS"
31
+ # CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
32
+ # CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
33
+ # CC="$PTHREAD_CC"
34
+ # CXX="$PTHREAD_CXX"
35
+ #
36
+ # In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant
37
+ # has a nonstandard name, this macro defines PTHREAD_CREATE_JOINABLE to
38
+ # that name (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
39
+ #
40
+ # Also HAVE_PTHREAD_PRIO_INHERIT is defined if pthread is found and the
41
+ # PTHREAD_PRIO_INHERIT symbol is defined when compiling with
42
+ # PTHREAD_CFLAGS.
43
+ #
44
+ # ACTION-IF-FOUND is a list of shell commands to run if a threads library
45
+ # is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it
46
+ # is not found. If ACTION-IF-FOUND is not specified, the default action
47
+ # will define HAVE_PTHREAD.
48
+ #
49
+ # Please let the authors know if this macro fails on any platform, or if
50
+ # you have any other suggestions or comments. This macro was based on work
51
+ # by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help
52
+ # from M. Frigo), as well as ac_pthread and hb_pthread macros posted by
53
+ # Alejandro Forero Cuervo to the autoconf macro repository. We are also
54
+ # grateful for the helpful feedback of numerous users.
55
+ #
56
+ # Updated for Autoconf 2.68 by Daniel Richard G.
57
+ #
58
+ # LICENSE
59
+ #
60
+ # Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
61
+ # Copyright (c) 2011 Daniel Richard G. <skunk@iSKUNK.ORG>
62
+ # Copyright (c) 2019 Marc Stevens <marc.stevens@cwi.nl>
63
+ #
64
+ # This program is free software: you can redistribute it and/or modify it
65
+ # under the terms of the GNU General Public License as published by the
66
+ # Free Software Foundation, either version 3 of the License, or (at your
67
+ # option) any later version.
68
+ #
69
+ # This program is distributed in the hope that it will be useful, but
70
+ # WITHOUT ANY WARRANTY; without even the implied warranty of
71
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
72
+ # Public License for more details.
73
+ #
74
+ # You should have received a copy of the GNU General Public License along
75
+ # with this program. If not, see <https://www.gnu.org/licenses/>.
76
+ #
77
+ # As a special exception, the respective Autoconf Macro's copyright owner
78
+ # gives unlimited permission to copy, distribute and modify the configure
79
+ # scripts that are the output of Autoconf when processing the Macro. You
80
+ # need not follow the terms of the GNU General Public License when using
81
+ # or distributing such scripts, even though portions of the text of the
82
+ # Macro appear in them. The GNU General Public License (GPL) does govern
83
+ # all other use of the material that constitutes the Autoconf Macro.
84
+ #
85
+ # This special exception to the GPL applies to versions of the Autoconf
86
+ # Macro released by the Autoconf Archive. When you make and distribute a
87
+ # modified version of the Autoconf Macro, you may extend this special
88
+ # exception to the GPL to apply to your modified version as well.
89
+
90
+ #serial 31
91
+
92
+ AU_ALIAS([ACX_PTHREAD], [AX_PTHREAD])
93
+ AC_DEFUN([AX_PTHREAD], [
94
+ AC_REQUIRE([AC_CANONICAL_HOST])
95
+ AC_REQUIRE([AC_PROG_CC])
96
+ AC_REQUIRE([AC_PROG_SED])
97
+ AC_LANG_PUSH([C])
98
+ ax_pthread_ok=no
99
+
100
+ # We used to check for pthread.h first, but this fails if pthread.h
101
+ # requires special compiler flags (e.g. on Tru64 or Sequent).
102
+ # It gets checked for in the link test anyway.
103
+
104
+ # First of all, check if the user has set any of the PTHREAD_LIBS,
105
+ # etcetera environment variables, and if threads linking works using
106
+ # them:
107
+ if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
108
+ ax_pthread_save_CC="$CC"
109
+ ax_pthread_save_CFLAGS="$CFLAGS"
110
+ ax_pthread_save_LIBS="$LIBS"
111
+ AS_IF([test "x$PTHREAD_CC" != "x"], [CC="$PTHREAD_CC"])
112
+ AS_IF([test "x$PTHREAD_CXX" != "x"], [CXX="$PTHREAD_CXX"])
113
+ CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
114
+ LIBS="$PTHREAD_LIBS $LIBS"
115
+ AC_MSG_CHECKING([for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS])
116
+ AC_LINK_IFELSE([AC_LANG_CALL([], [pthread_join])], [ax_pthread_ok=yes])
117
+ AC_MSG_RESULT([$ax_pthread_ok])
118
+ if test "x$ax_pthread_ok" = "xno"; then
119
+ PTHREAD_LIBS=""
120
+ PTHREAD_CFLAGS=""
121
+ fi
122
+ CC="$ax_pthread_save_CC"
123
+ CFLAGS="$ax_pthread_save_CFLAGS"
124
+ LIBS="$ax_pthread_save_LIBS"
125
+ fi
126
+
127
+ # We must check for the threads library under a number of different
128
+ # names; the ordering is very important because some systems
129
+ # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
130
+ # libraries is broken (non-POSIX).
131
+
132
+ # Create a list of thread flags to try. Items with a "," contain both
133
+ # C compiler flags (before ",") and linker flags (after ","). Other items
134
+ # starting with a "-" are C compiler flags, and remaining items are
135
+ # library names, except for "none" which indicates that we try without
136
+ # any flags at all, and "pthread-config" which is a program returning
137
+ # the flags for the Pth emulation library.
138
+
139
+ ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
140
+
141
+ # The ordering *is* (sometimes) important. Some notes on the
142
+ # individual items follow:
143
+
144
+ # pthreads: AIX (must check this before -lpthread)
145
+ # none: in case threads are in libc; should be tried before -Kthread and
146
+ # other compiler flags to prevent continual compiler warnings
147
+ # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
148
+ # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
149
+ # (Note: HP C rejects this with "bad form for `-t' option")
150
+ # -pthreads: Solaris/gcc (Note: HP C also rejects)
151
+ # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
152
+ # doesn't hurt to check since this sometimes defines pthreads and
153
+ # -D_REENTRANT too), HP C (must be checked before -lpthread, which
154
+ # is present but should not be used directly; and before -mthreads,
155
+ # because the compiler interprets this as "-mt" + "-hreads")
156
+ # -mthreads: Mingw32/gcc, Lynx/gcc
157
+ # pthread: Linux, etcetera
158
+ # --thread-safe: KAI C++
159
+ # pthread-config: use pthread-config program (for GNU Pth library)
160
+
161
+ case $host_os in
162
+
163
+ freebsd*)
164
+
165
+ # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
166
+ # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
167
+
168
+ ax_pthread_flags="-kthread lthread $ax_pthread_flags"
169
+ ;;
170
+
171
+ hpux*)
172
+
173
+ # From the cc(1) man page: "[-mt] Sets various -D flags to enable
174
+ # multi-threading and also sets -lpthread."
175
+
176
+ ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
177
+ ;;
178
+
179
+ openedition*)
180
+
181
+ # IBM z/OS requires a feature-test macro to be defined in order to
182
+ # enable POSIX threads at all, so give the user a hint if this is
183
+ # not set. (We don't define these ourselves, as they can affect
184
+ # other portions of the system API in unpredictable ways.)
185
+
186
+ AC_EGREP_CPP([AX_PTHREAD_ZOS_MISSING],
187
+ [
188
+ # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
189
+ AX_PTHREAD_ZOS_MISSING
190
+ # endif
191
+ ],
192
+ [AC_MSG_WARN([IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support.])])
193
+ ;;
194
+
195
+ solaris*)
196
+
197
+ # On Solaris (at least, for some versions), libc contains stubbed
198
+ # (non-functional) versions of the pthreads routines, so link-based
199
+ # tests will erroneously succeed. (N.B.: The stubs are missing
200
+ # pthread_cleanup_push, or rather a function called by this macro,
201
+ # so we could check for that, but who knows whether they'll stub
202
+ # that too in a future libc.) So we'll check first for the
203
+ # standard Solaris way of linking pthreads (-mt -lpthread).
204
+
205
+ ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
206
+ ;;
207
+ esac
208
+
209
+ # Are we compiling with Clang?
210
+
211
+ AC_CACHE_CHECK([whether $CC is Clang],
212
+ [ax_cv_PTHREAD_CLANG],
213
+ [ax_cv_PTHREAD_CLANG=no
214
+ # Note that Autoconf sets GCC=yes for Clang as well as GCC
215
+ if test "x$GCC" = "xyes"; then
216
+ AC_EGREP_CPP([AX_PTHREAD_CC_IS_CLANG],
217
+ [/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
218
+ # if defined(__clang__) && defined(__llvm__)
219
+ AX_PTHREAD_CC_IS_CLANG
220
+ # endif
221
+ ],
222
+ [ax_cv_PTHREAD_CLANG=yes])
223
+ fi
224
+ ])
225
+ ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
226
+
227
+
228
+ # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
229
+
230
+ # Note that for GCC and Clang -pthread generally implies -lpthread,
231
+ # except when -nostdlib is passed.
232
+ # This is problematic using libtool to build C++ shared libraries with pthread:
233
+ # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
234
+ # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
235
+ # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
236
+ # To solve this, first try -pthread together with -lpthread for GCC
237
+
238
+ AS_IF([test "x$GCC" = "xyes"],
239
+ [ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"])
240
+
241
+ # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
242
+
243
+ AS_IF([test "x$ax_pthread_clang" = "xyes"],
244
+ [ax_pthread_flags="-pthread,-lpthread -pthread"])
245
+
246
+
247
+ # The presence of a feature test macro requesting re-entrant function
248
+ # definitions is, on some systems, a strong hint that pthreads support is
249
+ # correctly enabled
250
+
251
+ case $host_os in
252
+ darwin* | hpux* | linux* | osf* | solaris*)
253
+ ax_pthread_check_macro="_REENTRANT"
254
+ ;;
255
+
256
+ aix*)
257
+ ax_pthread_check_macro="_THREAD_SAFE"
258
+ ;;
259
+
260
+ *)
261
+ ax_pthread_check_macro="--"
262
+ ;;
263
+ esac
264
+ AS_IF([test "x$ax_pthread_check_macro" = "x--"],
265
+ [ax_pthread_check_cond=0],
266
+ [ax_pthread_check_cond="!defined($ax_pthread_check_macro)"])
267
+
268
+
269
+ if test "x$ax_pthread_ok" = "xno"; then
270
+ for ax_pthread_try_flag in $ax_pthread_flags; do
271
+
272
+ case $ax_pthread_try_flag in
273
+ none)
274
+ AC_MSG_CHECKING([whether pthreads work without any flags])
275
+ ;;
276
+
277
+ *,*)
278
+ PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
279
+ PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
280
+ AC_MSG_CHECKING([whether pthreads work with "$PTHREAD_CFLAGS" and "$PTHREAD_LIBS"])
281
+ ;;
282
+
283
+ -*)
284
+ AC_MSG_CHECKING([whether pthreads work with $ax_pthread_try_flag])
285
+ PTHREAD_CFLAGS="$ax_pthread_try_flag"
286
+ ;;
287
+
288
+ pthread-config)
289
+ AC_CHECK_PROG([ax_pthread_config], [pthread-config], [yes], [no])
290
+ AS_IF([test "x$ax_pthread_config" = "xno"], [continue])
291
+ PTHREAD_CFLAGS="`pthread-config --cflags`"
292
+ PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
293
+ ;;
294
+
295
+ *)
296
+ AC_MSG_CHECKING([for the pthreads library -l$ax_pthread_try_flag])
297
+ PTHREAD_LIBS="-l$ax_pthread_try_flag"
298
+ ;;
299
+ esac
300
+
301
+ ax_pthread_save_CFLAGS="$CFLAGS"
302
+ ax_pthread_save_LIBS="$LIBS"
303
+ CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
304
+ LIBS="$PTHREAD_LIBS $LIBS"
305
+
306
+ # Check for various functions. We must include pthread.h,
307
+ # since some functions may be macros. (On the Sequent, we
308
+ # need a special flag -Kthread to make this header compile.)
309
+ # We check for pthread_join because it is in -lpthread on IRIX
310
+ # while pthread_create is in libc. We check for pthread_attr_init
311
+ # due to DEC craziness with -lpthreads. We check for
312
+ # pthread_cleanup_push because it is one of the few pthread
313
+ # functions on Solaris that doesn't have a non-functional libc stub.
314
+ # We try pthread_create on general principles.
315
+
316
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>
317
+ # if $ax_pthread_check_cond
318
+ # error "$ax_pthread_check_macro must be defined"
319
+ # endif
320
+ static void *some_global = NULL;
321
+ static void routine(void *a)
322
+ {
323
+ /* To avoid any unused-parameter or
324
+ unused-but-set-parameter warning. */
325
+ some_global = a;
326
+ }
327
+ static void *start_routine(void *a) { return a; }],
328
+ [pthread_t th; pthread_attr_t attr;
329
+ pthread_create(&th, 0, start_routine, 0);
330
+ pthread_join(th, 0);
331
+ pthread_attr_init(&attr);
332
+ pthread_cleanup_push(routine, 0);
333
+ pthread_cleanup_pop(0) /* ; */])],
334
+ [ax_pthread_ok=yes],
335
+ [])
336
+
337
+ CFLAGS="$ax_pthread_save_CFLAGS"
338
+ LIBS="$ax_pthread_save_LIBS"
339
+
340
+ AC_MSG_RESULT([$ax_pthread_ok])
341
+ AS_IF([test "x$ax_pthread_ok" = "xyes"], [break])
342
+
343
+ PTHREAD_LIBS=""
344
+ PTHREAD_CFLAGS=""
345
+ done
346
+ fi
347
+
348
+
349
+ # Clang needs special handling, because older versions handle the -pthread
350
+ # option in a rather... idiosyncratic way
351
+
352
+ if test "x$ax_pthread_clang" = "xyes"; then
353
+
354
+ # Clang takes -pthread; it has never supported any other flag
355
+
356
+ # (Note 1: This will need to be revisited if a system that Clang
357
+ # supports has POSIX threads in a separate library. This tends not
358
+ # to be the way of modern systems, but it's conceivable.)
359
+
360
+ # (Note 2: On some systems, notably Darwin, -pthread is not needed
361
+ # to get POSIX threads support; the API is always present and
362
+ # active. We could reasonably leave PTHREAD_CFLAGS empty. But
363
+ # -pthread does define _REENTRANT, and while the Darwin headers
364
+ # ignore this macro, third-party headers might not.)
365
+
366
+ # However, older versions of Clang make a point of warning the user
367
+ # that, in an invocation where only linking and no compilation is
368
+ # taking place, the -pthread option has no effect ("argument unused
369
+ # during compilation"). They expect -pthread to be passed in only
370
+ # when source code is being compiled.
371
+ #
372
+ # Problem is, this is at odds with the way Automake and most other
373
+ # C build frameworks function, which is that the same flags used in
374
+ # compilation (CFLAGS) are also used in linking. Many systems
375
+ # supported by AX_PTHREAD require exactly this for POSIX threads
376
+ # support, and in fact it is often not straightforward to specify a
377
+ # flag that is used only in the compilation phase and not in
378
+ # linking. Such a scenario is extremely rare in practice.
379
+ #
380
+ # Even though use of the -pthread flag in linking would only print
381
+ # a warning, this can be a nuisance for well-run software projects
382
+ # that build with -Werror. So if the active version of Clang has
383
+ # this misfeature, we search for an option to squash it.
384
+
385
+ AC_CACHE_CHECK([whether Clang needs flag to prevent "argument unused" warning when linking with -pthread],
386
+ [ax_cv_PTHREAD_CLANG_NO_WARN_FLAG],
387
+ [ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
388
+ # Create an alternate version of $ac_link that compiles and
389
+ # links in two steps (.c -> .o, .o -> exe) instead of one
390
+ # (.c -> exe), because the warning occurs only in the second
391
+ # step
392
+ ax_pthread_save_ac_link="$ac_link"
393
+ ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
394
+ ax_pthread_link_step=`AS_ECHO(["$ac_link"]) | sed "$ax_pthread_sed"`
395
+ ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
396
+ ax_pthread_save_CFLAGS="$CFLAGS"
397
+ for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
398
+ AS_IF([test "x$ax_pthread_try" = "xunknown"], [break])
399
+ CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
400
+ ac_link="$ax_pthread_save_ac_link"
401
+ AC_LINK_IFELSE([AC_LANG_SOURCE([[int main(void){return 0;}]])],
402
+ [ac_link="$ax_pthread_2step_ac_link"
403
+ AC_LINK_IFELSE([AC_LANG_SOURCE([[int main(void){return 0;}]])],
404
+ [break])
405
+ ])
406
+ done
407
+ ac_link="$ax_pthread_save_ac_link"
408
+ CFLAGS="$ax_pthread_save_CFLAGS"
409
+ AS_IF([test "x$ax_pthread_try" = "x"], [ax_pthread_try=no])
410
+ ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
411
+ ])
412
+
413
+ case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
414
+ no | unknown) ;;
415
+ *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
416
+ esac
417
+
418
+ fi # $ax_pthread_clang = yes
419
+
420
+
421
+
422
+ # Various other checks:
423
+ if test "x$ax_pthread_ok" = "xyes"; then
424
+ ax_pthread_save_CFLAGS="$CFLAGS"
425
+ ax_pthread_save_LIBS="$LIBS"
426
+ CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
427
+ LIBS="$PTHREAD_LIBS $LIBS"
428
+
429
+ # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
430
+ AC_CACHE_CHECK([for joinable pthread attribute],
431
+ [ax_cv_PTHREAD_JOINABLE_ATTR],
432
+ [ax_cv_PTHREAD_JOINABLE_ATTR=unknown
433
+ for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
434
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>],
435
+ [int attr = $ax_pthread_attr; return attr /* ; */])],
436
+ [ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break],
437
+ [])
438
+ done
439
+ ])
440
+ AS_IF([test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
441
+ test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
442
+ test "x$ax_pthread_joinable_attr_defined" != "xyes"],
443
+ [AC_DEFINE_UNQUOTED([PTHREAD_CREATE_JOINABLE],
444
+ [$ax_cv_PTHREAD_JOINABLE_ATTR],
445
+ [Define to necessary symbol if this constant
446
+ uses a non-standard name on your system.])
447
+ ax_pthread_joinable_attr_defined=yes
448
+ ])
449
+
450
+ AC_CACHE_CHECK([whether more special flags are required for pthreads],
451
+ [ax_cv_PTHREAD_SPECIAL_FLAGS],
452
+ [ax_cv_PTHREAD_SPECIAL_FLAGS=no
453
+ case $host_os in
454
+ solaris*)
455
+ ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
456
+ ;;
457
+ esac
458
+ ])
459
+ AS_IF([test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
460
+ test "x$ax_pthread_special_flags_added" != "xyes"],
461
+ [PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
462
+ ax_pthread_special_flags_added=yes])
463
+
464
+ AC_CACHE_CHECK([for PTHREAD_PRIO_INHERIT],
465
+ [ax_cv_PTHREAD_PRIO_INHERIT],
466
+ [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h>]],
467
+ [[int i = PTHREAD_PRIO_INHERIT;
468
+ return i;]])],
469
+ [ax_cv_PTHREAD_PRIO_INHERIT=yes],
470
+ [ax_cv_PTHREAD_PRIO_INHERIT=no])
471
+ ])
472
+ AS_IF([test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
473
+ test "x$ax_pthread_prio_inherit_defined" != "xyes"],
474
+ [AC_DEFINE([HAVE_PTHREAD_PRIO_INHERIT], [1], [Have PTHREAD_PRIO_INHERIT.])
475
+ ax_pthread_prio_inherit_defined=yes
476
+ ])
477
+
478
+ CFLAGS="$ax_pthread_save_CFLAGS"
479
+ LIBS="$ax_pthread_save_LIBS"
480
+
481
+ # More AIX lossage: compile with *_r variant
482
+ if test "x$GCC" != "xyes"; then
483
+ case $host_os in
484
+ aix*)
485
+ AS_CASE(["x/$CC"],
486
+ [x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6],
487
+ [#handle absolute path differently from PATH based program lookup
488
+ AS_CASE(["x$CC"],
489
+ [x/*],
490
+ [
491
+ AS_IF([AS_EXECUTABLE_P([${CC}_r])],[PTHREAD_CC="${CC}_r"])
492
+ AS_IF([test "x${CXX}" != "x"], [AS_IF([AS_EXECUTABLE_P([${CXX}_r])],[PTHREAD_CXX="${CXX}_r"])])
493
+ ],
494
+ [
495
+ AC_CHECK_PROGS([PTHREAD_CC],[${CC}_r],[$CC])
496
+ AS_IF([test "x${CXX}" != "x"], [AC_CHECK_PROGS([PTHREAD_CXX],[${CXX}_r],[$CXX])])
497
+ ]
498
+ )
499
+ ])
500
+ ;;
501
+ esac
502
+ fi
503
+ fi
504
+
505
+ test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
506
+ test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
507
+
508
+ AC_SUBST([PTHREAD_LIBS])
509
+ AC_SUBST([PTHREAD_CFLAGS])
510
+ AC_SUBST([PTHREAD_CC])
511
+ AC_SUBST([PTHREAD_CXX])
512
+
513
+ # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
514
+ if test "x$ax_pthread_ok" = "xyes"; then
515
+ ifelse([$1],,[AC_DEFINE([HAVE_PTHREAD],[1],[Define if you have POSIX threads libraries and header files.])],[$1])
516
+ :
517
+ else
518
+ ax_pthread_ok=no
519
+ $2
520
+ fi
521
+ AC_LANG_POP
522
+ ])dnl AX_PTHREAD
@@ -0,0 +1,17 @@
1
+ language: c
2
+
3
+ compiler:
4
+ - gcc
5
+ - clang
6
+
7
+ install: true
8
+
9
+ branches:
10
+ except:
11
+ - 5.9.6
12
+
13
+ before_script:
14
+ - autoreconf -fi
15
+
16
+ script:
17
+ - ./configure && make && make all-test