@port-labs/jq-node-bindings 0.0.13 → 0.0.15-dev1
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.
- package/README.md +6 -1
- package/binding.gyp +41 -19
- package/configure +1 -1
- package/deps/jq/.gitattributes +12 -0
- package/deps/jq/AUTHORS +149 -43
- package/deps/jq/COPYING +75 -1
- package/deps/jq/ChangeLog +2 -2
- package/deps/jq/Makefile.am +106 -65
- package/deps/jq/NEWS.md +391 -0
- package/deps/jq/README.md +54 -52
- package/deps/jq/SECURITY.md +7 -0
- package/deps/jq/compile-ios.sh +106 -102
- package/deps/jq/configure.ac +72 -59
- package/deps/jq/docs/Pipfile +14 -0
- package/deps/jq/docs/Pipfile.lock +415 -0
- package/deps/jq/docs/README.md +15 -14
- package/deps/jq/docs/build_manpage.py +251 -0
- package/deps/jq/docs/build_mantests.py +21 -0
- package/deps/jq/docs/build_website.py +95 -0
- package/deps/jq/docs/content/download/default.yml +249 -0
- package/deps/jq/docs/content/index.yml +83 -0
- package/deps/jq/docs/content/{3.manual/v1.6 → manual/dev}/manual.yml +992 -452
- package/deps/jq/docs/content/{3.manual → manual}/v1.3/manual.yml +105 -116
- package/deps/jq/docs/content/{3.manual → manual}/v1.4/manual.yml +122 -129
- package/deps/jq/docs/content/{3.manual → manual}/v1.5/manual.yml +313 -262
- package/deps/jq/docs/content/{3.manual → manual/v1.6}/manual.yml +407 -332
- package/deps/jq/docs/content/manual/v1.7/manual.yml +3697 -0
- package/deps/jq/docs/content/tutorial/default.yml +337 -0
- package/deps/jq/docs/manual_schema.yml +60 -0
- package/deps/jq/docs/public/css/style.css +99 -0
- package/deps/jq/docs/public/icon.png +0 -0
- package/deps/jq/docs/public/icon.svg +1 -0
- package/deps/jq/docs/public/jq.svg +1 -0
- package/deps/jq/docs/public/js/manual-search.js +31 -49
- package/deps/jq/docs/templates/default.html.j2 +31 -0
- package/deps/jq/docs/templates/index.html.j2 +58 -0
- package/deps/jq/docs/templates/manual.html.j2 +120 -0
- package/deps/jq/docs/templates/shared/_footer.html.j2 +14 -0
- package/deps/jq/docs/templates/shared/_head.html.j2 +23 -0
- package/deps/jq/docs/templates/shared/_navbar.html.j2 +40 -0
- package/deps/jq/docs/validate_manual_schema.py +19 -0
- package/deps/jq/jq.1.prebuilt +1102 -294
- package/deps/jq/jq.spec +2 -3
- package/deps/jq/libjq.pc.in +11 -0
- package/deps/jq/m4/ax_pthread.m4 +522 -0
- package/deps/jq/modules/oniguruma/.travis.yml +17 -0
- package/deps/jq/modules/oniguruma/CMakeLists.txt +206 -41
- package/deps/jq/modules/oniguruma/COPYING +23 -25
- package/deps/jq/modules/oniguruma/HISTORY +368 -23
- package/deps/jq/modules/oniguruma/Makefile.am +61 -7
- package/deps/jq/modules/oniguruma/README +34 -20
- package/deps/jq/modules/oniguruma/README.md +106 -33
- package/deps/jq/modules/oniguruma/README_japanese +183 -0
- package/deps/jq/modules/oniguruma/autogen.sh +9 -0
- package/deps/jq/modules/oniguruma/cmake/Config.cmake.in +4 -0
- package/deps/jq/modules/oniguruma/configure.ac +66 -55
- package/deps/jq/modules/oniguruma/doc/API +485 -42
- package/deps/jq/modules/oniguruma/doc/API.ja +732 -293
- package/deps/jq/modules/oniguruma/doc/CALLOUTS.API +397 -0
- package/deps/jq/modules/oniguruma/doc/CALLOUTS.API.ja +393 -0
- package/deps/jq/modules/oniguruma/doc/CALLOUTS.BUILTIN +95 -0
- package/deps/jq/modules/oniguruma/doc/CALLOUTS.BUILTIN.ja +93 -0
- package/deps/jq/modules/oniguruma/doc/FAQ +3 -3
- package/deps/jq/modules/oniguruma/doc/FAQ.ja +8 -8
- package/deps/jq/modules/oniguruma/doc/RE +223 -63
- package/deps/jq/modules/oniguruma/doc/RE.ja +420 -265
- package/deps/jq/modules/oniguruma/doc/SYNTAX.md +1091 -0
- package/deps/jq/modules/oniguruma/doc/UNICODE_PROPERTIES +840 -697
- package/deps/jq/modules/oniguruma/harnesses/ascii_compatible.dict +113 -0
- package/deps/jq/modules/oniguruma/harnesses/base.c +749 -0
- package/deps/jq/modules/oniguruma/harnesses/deluxe.c +206 -0
- package/deps/jq/modules/oniguruma/harnesses/dict_conv.py +72 -0
- package/deps/jq/modules/oniguruma/harnesses/fuzzer.options +2 -0
- package/deps/jq/modules/oniguruma/harnesses/libfuzzer-onig.cpp +45 -0
- package/deps/jq/modules/oniguruma/harnesses/regset.c +392 -0
- package/deps/jq/modules/oniguruma/index.html +16 -5
- package/deps/jq/modules/oniguruma/index_ja.html +16 -5
- package/deps/jq/modules/oniguruma/make_win.bat +5 -0
- package/deps/jq/modules/oniguruma/make_win32.bat +5 -3
- package/deps/jq/modules/oniguruma/make_win64.bat +5 -3
- package/deps/jq/modules/oniguruma/onig-config.cmake.in +80 -0
- package/deps/jq/modules/oniguruma/onig-config.in +1 -1
- package/deps/jq/modules/oniguruma/oniguruma.pc.cmake.in +1 -1
- package/deps/jq/modules/oniguruma/oniguruma.pc.in +0 -1
- package/deps/jq/modules/oniguruma/sample/CMakeLists.txt +9 -2
- package/deps/jq/modules/oniguruma/sample/Makefile.am +24 -5
- package/deps/jq/modules/oniguruma/sample/bug_fix.c +13 -51
- package/deps/jq/modules/oniguruma/sample/callback_each_match.c +168 -0
- package/deps/jq/modules/oniguruma/sample/callout.c +268 -0
- package/deps/jq/modules/oniguruma/sample/count.c +125 -0
- package/deps/jq/modules/oniguruma/sample/crnl.c +6 -4
- package/deps/jq/modules/oniguruma/sample/echo.c +136 -0
- package/deps/jq/modules/oniguruma/sample/encode.c +53 -146
- package/deps/jq/modules/oniguruma/sample/listcap.c +18 -10
- package/deps/jq/modules/oniguruma/sample/names.c +10 -6
- package/deps/jq/modules/oniguruma/sample/posix.c +13 -2
- package/deps/jq/modules/oniguruma/sample/regset.c +95 -0
- package/deps/jq/modules/oniguruma/sample/scan.c +20 -6
- package/deps/jq/modules/oniguruma/sample/simple.c +8 -4
- package/deps/jq/modules/oniguruma/sample/sql.c +13 -8
- package/deps/jq/modules/oniguruma/sample/syntax.c +11 -10
- package/deps/jq/modules/oniguruma/sample/user_property.c +12 -7
- package/deps/jq/modules/oniguruma/src/Makefile.am +41 -15
- package/deps/jq/modules/oniguruma/src/Makefile.windows +196 -183
- package/deps/jq/modules/oniguruma/src/ascii.c +64 -7
- package/deps/jq/modules/oniguruma/src/big5.c +25 -15
- package/deps/jq/modules/oniguruma/src/config.h.cmake.in +7 -22
- package/deps/jq/modules/oniguruma/src/config.h.win32 +56 -84
- package/deps/jq/modules/oniguruma/src/config.h.win64 +56 -84
- package/deps/jq/modules/oniguruma/src/config.h.windows.in +62 -0
- package/deps/jq/modules/oniguruma/src/cp1251.c +14 -8
- package/deps/jq/modules/oniguruma/src/euc_jp.c +28 -30
- package/deps/jq/modules/oniguruma/src/euc_jp_prop.c +25 -32
- package/deps/jq/modules/oniguruma/src/euc_jp_prop.gperf +1 -2
- package/deps/jq/modules/oniguruma/src/euc_kr.c +27 -15
- package/deps/jq/modules/oniguruma/src/euc_tw.c +40 -17
- package/deps/jq/modules/oniguruma/src/gb18030.c +177 -119
- package/deps/jq/modules/oniguruma/src/gperf_fold_key_conv.py +12 -8
- package/deps/jq/modules/oniguruma/src/gperf_unfold_key_conv.py +8 -6
- package/deps/jq/modules/oniguruma/src/iso8859_1.c +92 -91
- package/deps/jq/modules/oniguruma/src/iso8859_10.c +13 -29
- package/deps/jq/modules/oniguruma/src/iso8859_11.c +4 -2
- package/deps/jq/modules/oniguruma/src/iso8859_13.c +13 -33
- package/deps/jq/modules/oniguruma/src/iso8859_14.c +13 -30
- package/deps/jq/modules/oniguruma/src/iso8859_15.c +13 -34
- package/deps/jq/modules/oniguruma/src/iso8859_16.c +13 -29
- package/deps/jq/modules/oniguruma/src/iso8859_2.c +13 -29
- package/deps/jq/modules/oniguruma/src/iso8859_3.c +13 -33
- package/deps/jq/modules/oniguruma/src/iso8859_4.c +13 -32
- package/deps/jq/modules/oniguruma/src/iso8859_5.c +16 -23
- package/deps/jq/modules/oniguruma/src/iso8859_6.c +4 -2
- package/deps/jq/modules/oniguruma/src/iso8859_7.c +14 -29
- package/deps/jq/modules/oniguruma/src/iso8859_8.c +4 -2
- package/deps/jq/modules/oniguruma/src/iso8859_9.c +13 -33
- package/deps/jq/modules/oniguruma/src/koi8.c +14 -27
- package/deps/jq/modules/oniguruma/src/koi8_r.c +12 -19
- package/deps/jq/modules/oniguruma/src/make_property.sh +21 -0
- package/deps/jq/modules/oniguruma/src/make_unicode_egcb.sh +7 -0
- package/deps/jq/modules/oniguruma/src/make_unicode_egcb_data.py +267 -0
- package/deps/jq/modules/oniguruma/src/make_unicode_fold.sh +25 -11
- package/deps/jq/modules/oniguruma/src/make_unicode_fold_data.py +206 -26
- package/deps/jq/modules/oniguruma/src/make_unicode_property.sh +19 -10
- package/deps/jq/modules/oniguruma/src/make_unicode_property_data.py +474 -375
- package/deps/jq/modules/oniguruma/src/make_unicode_wb.sh +7 -0
- package/deps/jq/modules/oniguruma/src/make_unicode_wb_data.py +267 -0
- package/deps/jq/modules/oniguruma/src/mktable.c +28 -24
- package/deps/jq/modules/oniguruma/src/onig_init.c +2 -2
- package/deps/jq/modules/oniguruma/src/oniggnu.h +7 -5
- package/deps/jq/modules/oniguruma/src/onigposix.h +40 -16
- package/deps/jq/modules/oniguruma/src/oniguruma.h +357 -107
- package/deps/jq/modules/oniguruma/src/regcomp.c +6214 -3933
- package/deps/jq/modules/oniguruma/src/regenc.c +197 -120
- package/deps/jq/modules/oniguruma/src/regenc.h +106 -63
- package/deps/jq/modules/oniguruma/src/regerror.c +112 -91
- package/deps/jq/modules/oniguruma/src/regexec.c +4876 -2010
- package/deps/jq/modules/oniguruma/src/regext.c +8 -8
- package/deps/jq/modules/oniguruma/src/reggnu.c +13 -17
- package/deps/jq/modules/oniguruma/src/regint.h +757 -491
- package/deps/jq/modules/oniguruma/src/regparse.c +7204 -3240
- package/deps/jq/modules/oniguruma/src/regparse.h +361 -218
- package/deps/jq/modules/oniguruma/src/regposerr.c +49 -9
- package/deps/jq/modules/oniguruma/src/regposix.c +106 -24
- package/deps/jq/modules/oniguruma/src/regsyntax.c +66 -13
- package/deps/jq/modules/oniguruma/src/regtrav.c +1 -1
- package/deps/jq/modules/oniguruma/src/regversion.c +6 -4
- package/deps/jq/modules/oniguruma/src/sjis.c +23 -52
- package/deps/jq/modules/oniguruma/src/sjis_prop.c +25 -32
- package/deps/jq/modules/oniguruma/src/sjis_prop.gperf +1 -2
- package/deps/jq/modules/oniguruma/src/st.c +248 -249
- package/deps/jq/modules/oniguruma/src/st.h +4 -5
- package/deps/jq/modules/oniguruma/src/unicode.c +869 -294
- package/deps/jq/modules/oniguruma/src/unicode_egcb_data.c +1419 -0
- package/deps/jq/modules/oniguruma/src/unicode_fold1_key.c +1829 -1300
- package/deps/jq/modules/oniguruma/src/unicode_fold2_key.c +32 -9
- package/deps/jq/modules/oniguruma/src/unicode_fold3_key.c +32 -9
- package/deps/jq/modules/oniguruma/src/unicode_fold_data.c +1210 -984
- package/deps/jq/modules/oniguruma/src/unicode_property_data.c +22480 -15198
- package/deps/jq/modules/oniguruma/src/unicode_property_data_posix.c +1463 -591
- package/deps/jq/modules/oniguruma/src/unicode_unfold_key.c +1958 -1418
- package/deps/jq/modules/oniguruma/src/unicode_wb_data.c +1106 -0
- package/deps/jq/modules/oniguruma/src/utf16_be.c +90 -49
- package/deps/jq/modules/oniguruma/src/utf16_le.c +80 -49
- package/deps/jq/modules/oniguruma/src/utf32_be.c +14 -42
- package/deps/jq/modules/oniguruma/src/utf32_le.c +13 -40
- package/deps/jq/modules/oniguruma/src/utf8.c +33 -78
- package/deps/jq/modules/oniguruma/test/CMakeLists.txt +55 -0
- package/deps/jq/modules/oniguruma/test/Makefile.am +65 -10
- package/deps/jq/modules/oniguruma/test/test.sh +17 -0
- package/deps/jq/modules/oniguruma/test/test_back.c +1450 -0
- package/deps/jq/modules/oniguruma/test/test_options.c +228 -0
- package/deps/jq/modules/oniguruma/test/test_regset.c +466 -0
- package/deps/jq/modules/oniguruma/test/test_syntax.c +365 -0
- package/deps/jq/modules/oniguruma/test/test_utf8.c +1761 -0
- package/deps/jq/modules/oniguruma/test/testc.c +128 -88
- package/deps/jq/modules/oniguruma/test/testp.c +613 -0
- package/deps/jq/modules/oniguruma/test/testu.c +75 -28
- package/deps/jq/modules/oniguruma/tis-ci/stub.c +3 -0
- package/deps/jq/modules/oniguruma/tis-ci/test_back.config +26 -0
- package/deps/jq/modules/oniguruma/tis-ci/test_regset.config +20 -0
- package/deps/jq/modules/oniguruma/tis-ci/test_syntax.config +26 -0
- package/deps/jq/modules/oniguruma/tis-ci/test_utf8.config +25 -0
- package/deps/jq/modules/oniguruma/tis-ci/testc.config +26 -0
- package/deps/jq/modules/oniguruma/tis-ci/testu.config +24 -0
- package/deps/jq/modules/oniguruma/tis.config +1336 -0
- package/deps/jq/modules/oniguruma/windows/CMakeLists.txt +8 -0
- package/deps/jq/modules/oniguruma/windows/testc.c +865 -869
- package/deps/jq/scripts/update-website +6 -5
- package/deps/jq/scripts/version +10 -7
- package/deps/jq/sig/jq-release-new.key +29 -0
- package/deps/jq/sig/v1.4/sha256sum.txt +1 -0
- package/deps/jq/sig/v1.5/sha256sum.txt +2 -0
- package/deps/jq/sig/v1.5rc1/sha256sum.txt +1 -0
- package/deps/jq/sig/v1.5rc2/sha256sum.txt +2 -0
- package/deps/jq/sig/v1.6/sha256sum.txt +2 -0
- package/deps/jq/sig/v1.7/jq-1.7.tar.gz.asc +16 -0
- package/deps/jq/sig/v1.7/jq-1.7.zip.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-amd64.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-arm64.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-armel.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-armhf.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-i386.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-mips.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-mips64.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-mips64el.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-mips64r6.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-mips64r6el.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-mipsel.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-mipsr6.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-mipsr6el.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-powerpc.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-ppc64el.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-riscv64.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-s390x.asc +16 -0
- package/deps/jq/sig/v1.7/jq-macos-amd64.asc +16 -0
- package/deps/jq/sig/v1.7/jq-macos-arm64.asc +16 -0
- package/deps/jq/sig/v1.7/jq-windows-amd64.exe.asc +16 -0
- package/deps/jq/sig/v1.7/jq-windows-i386.exe.asc +16 -0
- package/deps/jq/sig/v1.7/sha256sum.txt +23 -0
- package/deps/jq/sig/v1.7.1/jq-1.7.1.tar.gz.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-1.7.1.zip.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-amd64.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-arm64.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-armel.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-armhf.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-i386.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-mips.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-mips64.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-mips64el.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-mips64r6.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-mips64r6el.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-mipsel.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-mipsr6.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-mipsr6el.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-powerpc.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-ppc64el.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-riscv64.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-s390x.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux64.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-macos-amd64.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-macos-arm64.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-osx-amd64.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-win64.exe.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-windows-amd64.exe.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-windows-i386.exe.asc +16 -0
- package/deps/jq/sig/v1.7.1/sha256sum.txt +26 -0
- package/deps/jq/sig/v1.7rc1/jq-1.7rc1.tar.gz.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-1.7rc1.zip.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-amd64.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-arm64.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-armel.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-armhf.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-i386.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-mips.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-mips64.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-mips64el.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-mips64r6.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-mips64r6el.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-mipsel.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-mipsr6.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-mipsr6el.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-powerpc.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-ppc64el.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-riscv64.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-s390x.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-macos-amd64.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-macos-arm64.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-windows-amd64.exe.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-windows-i386.exe.asc +16 -0
- package/deps/jq/sig/v1.7rc1/sha256sum.txt +23 -0
- package/deps/jq/sig/v1.7rc2/jq-1.7rc2.tar.gz.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-1.7rc2.zip.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-amd64.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-arm64.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-armel.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-armhf.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-i386.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-mips.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-mips64.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-mips64el.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-mips64r6.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-mips64r6el.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-mipsel.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-mipsr6.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-mipsr6el.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-powerpc.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-ppc64el.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-riscv64.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-s390x.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-macos-amd64.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-macos-arm64.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-windows-amd64.exe.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-windows-i386.exe.asc +16 -0
- package/deps/jq/sig/v1.7rc2/sha256sum.txt +23 -0
- package/deps/jq/src/builtin.c +537 -343
- package/deps/jq/src/builtin.h +18 -0
- package/deps/jq/src/builtin.jq +116 -143
- package/deps/jq/src/bytecode.h +8 -4
- package/deps/jq/src/compile.c +157 -143
- package/deps/jq/src/compile.h +3 -4
- package/deps/jq/src/decNumber/ICU-license.html +45 -0
- package/deps/jq/src/decNumber/decBasic.c +3908 -0
- package/deps/jq/src/decNumber/decCommon.c +1835 -0
- package/deps/jq/src/decNumber/decContext.c +437 -0
- package/deps/jq/src/decNumber/decContext.h +254 -0
- package/deps/jq/src/decNumber/decDPD.h +1185 -0
- package/deps/jq/src/decNumber/decDouble.c +140 -0
- package/deps/jq/src/decNumber/decDouble.h +155 -0
- package/deps/jq/src/decNumber/decNumber.c +8143 -0
- package/deps/jq/src/decNumber/decNumber.h +182 -0
- package/deps/jq/src/decNumber/decNumberLocal.h +757 -0
- package/deps/jq/src/decNumber/decPacked.c +220 -0
- package/deps/jq/src/decNumber/decPacked.h +52 -0
- package/deps/jq/src/decNumber/decQuad.c +135 -0
- package/deps/jq/src/decNumber/decQuad.h +177 -0
- package/deps/jq/src/decNumber/decSingle.c +71 -0
- package/deps/jq/src/decNumber/decSingle.h +86 -0
- package/deps/jq/src/decNumber/decimal128.c +553 -0
- package/deps/jq/src/decNumber/decimal128.h +81 -0
- package/deps/jq/src/decNumber/decimal32.c +476 -0
- package/deps/jq/src/decNumber/decimal32.h +81 -0
- package/deps/jq/src/decNumber/decimal64.c +839 -0
- package/deps/jq/src/decNumber/decimal64.h +83 -0
- package/deps/jq/src/decNumber/decnumber.pdf +0 -0
- package/deps/jq/src/decNumber/example1.c +38 -0
- package/deps/jq/src/decNumber/example2.c +52 -0
- package/deps/jq/src/decNumber/example3.c +64 -0
- package/deps/jq/src/decNumber/example4.c +61 -0
- package/deps/jq/src/decNumber/example5.c +36 -0
- package/deps/jq/src/decNumber/example6.c +61 -0
- package/deps/jq/src/decNumber/example7.c +35 -0
- package/deps/jq/src/decNumber/example8.c +39 -0
- package/deps/jq/src/decNumber/readme.txt +81 -0
- package/deps/jq/src/exec_stack.h +5 -3
- package/deps/jq/src/execute.c +126 -44
- package/deps/jq/src/inject_errors.c +0 -2
- package/deps/jq/src/jq.h +10 -1
- package/deps/jq/src/jq_test.c +222 -11
- package/deps/jq/src/jv.c +807 -176
- package/deps/jq/src/jv.h +22 -1
- package/deps/jq/src/jv_alloc.c +33 -26
- package/deps/jq/src/jv_alloc.h +0 -11
- package/deps/jq/src/jv_aux.c +153 -67
- package/deps/jq/src/jv_dtoa.c +12 -2
- package/deps/jq/src/jv_dtoa_tsd.c +51 -0
- package/deps/jq/src/jv_dtoa_tsd.h +4 -0
- package/deps/jq/src/jv_parse.c +70 -15
- package/deps/jq/src/jv_print.c +56 -60
- package/deps/jq/src/jv_private.h +7 -0
- package/deps/jq/src/jv_thread.h +76 -0
- package/deps/jq/src/jv_unicode.c +18 -0
- package/deps/jq/src/jv_unicode.h +2 -0
- package/deps/jq/src/lexer.c +782 -543
- package/deps/jq/src/lexer.h +438 -64
- package/deps/jq/src/lexer.l +10 -3
- package/deps/jq/src/libm.h +16 -6
- package/deps/jq/src/linker.c +97 -40
- package/deps/jq/src/locfile.c +2 -1
- package/deps/jq/src/main.c +384 -336
- package/deps/jq/src/opcode_list.h +5 -2
- package/deps/jq/src/parser.c +2260 -1898
- package/deps/jq/src/parser.h +115 -98
- package/deps/jq/src/parser.y +124 -89
- package/deps/jq/src/util.c +854 -55
- package/deps/jq/src/util.h +6 -4
- package/deps/jq/tests/jq.test +762 -26
- package/deps/jq/tests/jq_fuzz_compile.c +27 -0
- package/deps/jq/tests/jq_fuzz_execute.cpp +42 -0
- package/deps/jq/tests/jq_fuzz_fixed.cpp +297 -0
- package/deps/jq/tests/jq_fuzz_load_file.c +28 -0
- package/deps/jq/tests/jq_fuzz_parse.c +21 -0
- package/deps/jq/tests/jq_fuzz_parse_extended.c +36 -0
- package/deps/jq/tests/jq_fuzz_parse_stream.c +21 -0
- package/deps/jq/tests/local.supp +14 -0
- package/deps/jq/tests/man.test +979 -0
- package/deps/jq/tests/manonig.test +76 -0
- package/deps/jq/tests/manonigtest +5 -0
- package/deps/jq/tests/mantest +1 -2
- package/deps/jq/tests/modules/home2/.jq/g.jq +1 -0
- package/deps/jq/tests/modules/shadow1.jq +2 -0
- package/deps/jq/tests/modules/shadow2.jq +1 -0
- package/deps/jq/tests/modules/test_bind_order0.jq +1 -0
- package/deps/jq/tests/modules/test_bind_order1.jq +1 -1
- package/deps/jq/tests/modules/test_bind_order2.jq +0 -1
- package/deps/jq/tests/no-main-program.jq +1 -0
- package/deps/jq/tests/onig.test +77 -2
- package/deps/jq/tests/setup +7 -2
- package/deps/jq/tests/shtest +478 -59
- package/deps/jq/tests/uri.test +38 -0
- package/deps/jq/tests/uritest +5 -0
- package/deps/jq/tests/yes-main-program.jq +2 -0
- package/lib/index.js +3 -0
- package/lib/jq.js +15 -1
- package/lib/templateAsync.js +137 -0
- package/package.json +7 -7
- package/src/binding.cc +623 -146
- package/src/binding.h +3 -4
- package/test/santiy-async.test.js +171 -0
- package/test/santiy.test.js +2 -2
- package/test/template-async.test.js +182 -0
- package/test/template.test.js +3 -3
- package/deps/jq/.travis.yml +0 -202
- package/deps/jq/NEWS +0 -89
- package/deps/jq/appveyor.yml +0 -53
- package/deps/jq/docs/Gemfile +0 -7
- package/deps/jq/docs/Gemfile.lock +0 -63
- package/deps/jq/docs/Rakefile +0 -24
- package/deps/jq/docs/Rakefile.manual +0 -49
- package/deps/jq/docs/Rakefile.website +0 -76
- package/deps/jq/docs/content/1.tutorial/default.yml +0 -327
- package/deps/jq/docs/content/2.download/default.yml +0 -193
- package/deps/jq/docs/content/index/index.yml +0 -73
- package/deps/jq/docs/public/css/base.scss +0 -181
- package/deps/jq/docs/public/jq.png +0 -0
- package/deps/jq/docs/site.yml +0 -9
- package/deps/jq/docs/templates/default.liquid +0 -34
- package/deps/jq/docs/templates/index.liquid +0 -73
- package/deps/jq/docs/templates/manual.liquid +0 -99
- package/deps/jq/docs/templates/shared/_footer.liquid +0 -10
- package/deps/jq/docs/templates/shared/_head.liquid +0 -17
- package/deps/jq/docs/templates/shared/_navbar.liquid +0 -27
- package/deps/jq/modules/oniguruma/README.ja +0 -195
- package/deps/jq/modules/oniguruma/cmake/dist.cmake +0 -321
- package/deps/jq/modules/oniguruma/contributed/libfuzzer-onig.cpp +0 -31
- package/deps/jq/modules/oniguruma/dist.info +0 -10
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold1_key.c +0 -2250
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold2_key.c +0 -203
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold3_key.c +0 -113
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold_data.c +0 -1225
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_property_data.c +0 -24742
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_property_data_posix.c +0 -4846
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_unfold_key.c +0 -2571
- /package/deps/jq/sig/{jq-release.key → jq-release-old.key} +0 -0
- /package/deps/jq/tests/modules/{.jq → home1/.jq} +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
regposerr.c - Oniguruma (regular expression library)
|
|
3
3
|
**********************************************************************/
|
|
4
4
|
/*-
|
|
5
|
-
* Copyright (c) 2002-
|
|
5
|
+
* Copyright (c) 2002-2020 K.Kosako
|
|
6
6
|
* All rights reserved.
|
|
7
7
|
*
|
|
8
8
|
* Redistribution and use in source and binary forms, with or without
|
|
@@ -27,13 +27,31 @@
|
|
|
27
27
|
* SUCH DAMAGE.
|
|
28
28
|
*/
|
|
29
29
|
|
|
30
|
+
/* Can't include regint.h etc.. for conflict of regex_t.
|
|
31
|
+
Define ONIGURUMA_EXPORT here for onigposix.h.
|
|
32
|
+
*/
|
|
33
|
+
#ifndef ONIGURUMA_EXPORT
|
|
34
|
+
#define ONIGURUMA_EXPORT
|
|
35
|
+
#endif
|
|
36
|
+
|
|
30
37
|
#include "config.h"
|
|
31
38
|
#include "onigposix.h"
|
|
32
39
|
|
|
33
|
-
#
|
|
34
|
-
#
|
|
35
|
-
#
|
|
36
|
-
#
|
|
40
|
+
#undef regex_t
|
|
41
|
+
#undef regmatch_t
|
|
42
|
+
#undef regoff_t
|
|
43
|
+
#undef regcomp
|
|
44
|
+
#undef regexec
|
|
45
|
+
#undef regfree
|
|
46
|
+
#undef regerror
|
|
47
|
+
#undef reg_set_encoding
|
|
48
|
+
#undef reg_name_to_group_numbers
|
|
49
|
+
#undef reg_foreach_name
|
|
50
|
+
#undef reg_number_of_names
|
|
51
|
+
|
|
52
|
+
#ifndef ONIG_NO_STANDARD_C_HEADERS
|
|
53
|
+
#include <string.h>
|
|
54
|
+
#include <stdio.h>
|
|
37
55
|
#endif
|
|
38
56
|
|
|
39
57
|
#if defined(__GNUC__)
|
|
@@ -43,13 +61,26 @@
|
|
|
43
61
|
#endif
|
|
44
62
|
|
|
45
63
|
#if defined(_WIN32) && !defined(__GNUC__)
|
|
64
|
+
|
|
65
|
+
#ifndef xsnprintf
|
|
46
66
|
#define xsnprintf sprintf_s
|
|
67
|
+
#endif
|
|
68
|
+
#ifndef xstrncpy
|
|
47
69
|
#define xstrncpy(dest,src,size) strncpy_s(dest,size,src,_TRUNCATE)
|
|
70
|
+
#endif
|
|
71
|
+
|
|
48
72
|
#else
|
|
73
|
+
|
|
74
|
+
#ifndef xsnprintf
|
|
49
75
|
#define xsnprintf snprintf
|
|
76
|
+
#endif
|
|
77
|
+
#ifndef xstrncpy
|
|
50
78
|
#define xstrncpy strncpy
|
|
51
79
|
#endif
|
|
52
80
|
|
|
81
|
+
#endif
|
|
82
|
+
|
|
83
|
+
|
|
53
84
|
static char* ESTRING[] = {
|
|
54
85
|
NULL,
|
|
55
86
|
"failed to match", /* REG_NOMATCH */
|
|
@@ -72,12 +103,10 @@ static char* ESTRING[] = {
|
|
|
72
103
|
"invalid argument" /* REG_EONIG_BADARG */
|
|
73
104
|
};
|
|
74
105
|
|
|
75
|
-
#include <stdio.h>
|
|
76
|
-
|
|
77
106
|
|
|
78
107
|
extern size_t
|
|
79
|
-
|
|
80
|
-
|
|
108
|
+
onig_posix_regerror(int posix_ecode, const onig_posix_regex_t* reg ARG_UNUSED,
|
|
109
|
+
char* buf, size_t size)
|
|
81
110
|
{
|
|
82
111
|
char* s;
|
|
83
112
|
char tbuf[35];
|
|
@@ -103,3 +132,14 @@ regerror(int posix_ecode, const regex_t* reg ARG_UNUSED, char* buf,
|
|
|
103
132
|
}
|
|
104
133
|
return len;
|
|
105
134
|
}
|
|
135
|
+
|
|
136
|
+
#ifdef USE_BINARY_COMPATIBLE_POSIX_API
|
|
137
|
+
|
|
138
|
+
extern size_t
|
|
139
|
+
regerror(int posix_ecode, const onig_posix_regex_t* reg ARG_UNUSED,
|
|
140
|
+
char* buf, size_t size)
|
|
141
|
+
{
|
|
142
|
+
return onig_posix_regerror(posix_ecode, reg, buf, size);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
#endif
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
regposix.c - Oniguruma (regular expression library)
|
|
3
3
|
**********************************************************************/
|
|
4
4
|
/*-
|
|
5
|
-
* Copyright (c) 2002-
|
|
5
|
+
* Copyright (c) 2002-2022 K.Kosako
|
|
6
6
|
* All rights reserved.
|
|
7
7
|
*
|
|
8
8
|
* Redistribution and use in source and binary forms, with or without
|
|
@@ -30,8 +30,21 @@
|
|
|
30
30
|
#define regex_t onig_regex_t
|
|
31
31
|
#include "regint.h"
|
|
32
32
|
#undef regex_t
|
|
33
|
+
|
|
33
34
|
#include "onigposix.h"
|
|
34
35
|
|
|
36
|
+
#undef regex_t
|
|
37
|
+
#undef regmatch_t
|
|
38
|
+
#undef regoff_t
|
|
39
|
+
#undef regcomp
|
|
40
|
+
#undef regexec
|
|
41
|
+
#undef regfree
|
|
42
|
+
#undef regerror
|
|
43
|
+
#undef reg_set_encoding
|
|
44
|
+
#undef reg_name_to_group_numbers
|
|
45
|
+
#undef reg_foreach_name
|
|
46
|
+
#undef reg_number_of_names
|
|
47
|
+
|
|
35
48
|
#define ONIG_C(reg) ((onig_regex_t* )((reg)->onig))
|
|
36
49
|
#define PONIG_C(reg) ((onig_regex_t** )(&(reg)->onig))
|
|
37
50
|
|
|
@@ -40,7 +53,7 @@
|
|
|
40
53
|
if (ONIGENC_MBC_MINLEN(enc) == 1) { \
|
|
41
54
|
UChar* tmps = (UChar* )(s); \
|
|
42
55
|
while (*tmps != 0) tmps++; \
|
|
43
|
-
len = tmps - (UChar* )(s)
|
|
56
|
+
len = (int )(tmps - (UChar* )(s));\
|
|
44
57
|
} \
|
|
45
58
|
else { \
|
|
46
59
|
len = onigenc_str_bytelen_null(enc, (UChar* )s); \
|
|
@@ -58,14 +71,18 @@ onig2posix_error_code(int code)
|
|
|
58
71
|
static const O2PERR o2p[] = {
|
|
59
72
|
{ ONIG_MISMATCH, REG_NOMATCH },
|
|
60
73
|
{ ONIG_NO_SUPPORT_CONFIG, REG_EONIG_INTERNAL },
|
|
74
|
+
{ ONIG_ABORT, REG_EONIG_INTERNAL },
|
|
61
75
|
{ ONIGERR_MEMORY, REG_ESPACE },
|
|
62
76
|
{ ONIGERR_MATCH_STACK_LIMIT_OVER, REG_EONIG_INTERNAL },
|
|
77
|
+
{ ONIGERR_RETRY_LIMIT_IN_MATCH_OVER, REG_EONIG_INTERNAL },
|
|
78
|
+
{ ONIGERR_RETRY_LIMIT_IN_SEARCH_OVER, REG_EONIG_INTERNAL },
|
|
79
|
+
{ ONIGERR_SUBEXP_CALL_LIMIT_IN_SEARCH_OVER, REG_EONIG_INTERNAL },
|
|
63
80
|
{ ONIGERR_TYPE_BUG, REG_EONIG_INTERNAL },
|
|
64
81
|
{ ONIGERR_PARSER_BUG, REG_EONIG_INTERNAL },
|
|
65
82
|
{ ONIGERR_STACK_BUG, REG_EONIG_INTERNAL },
|
|
66
83
|
{ ONIGERR_UNDEFINED_BYTECODE, REG_EONIG_INTERNAL },
|
|
67
84
|
{ ONIGERR_UNEXPECTED_BYTECODE, REG_EONIG_INTERNAL },
|
|
68
|
-
{
|
|
85
|
+
{ ONIGERR_DEFAULT_ENCODING_IS_NOT_SET, REG_EONIG_BADARG },
|
|
69
86
|
{ ONIGERR_SPECIFIED_ENCODING_CANT_CONVERT_TO_WIDE_CHAR, REG_EONIG_BADARG },
|
|
70
87
|
{ ONIGERR_FAIL_TO_INITIALIZE, REG_EONIG_INTERNAL },
|
|
71
88
|
{ ONIGERR_INVALID_ARGUMENT, REG_EONIG_BADARG },
|
|
@@ -88,6 +105,7 @@ onig2posix_error_code(int code)
|
|
|
88
105
|
{ ONIGERR_END_PATTERN_WITH_UNMATCHED_PARENTHESIS, REG_EPAREN },
|
|
89
106
|
{ ONIGERR_END_PATTERN_IN_GROUP, REG_BADPAT },
|
|
90
107
|
{ ONIGERR_UNDEFINED_GROUP_OPTION, REG_BADPAT },
|
|
108
|
+
{ ONIGERR_INVALID_GROUP_OPTION, REG_BADPAT },
|
|
91
109
|
{ ONIGERR_INVALID_POSIX_BRACKET_TYPE, REG_BADPAT },
|
|
92
110
|
{ ONIGERR_INVALID_LOOK_BEHIND_PATTERN, REG_BADPAT },
|
|
93
111
|
{ ONIGERR_INVALID_REPEAT_RANGE_PATTERN, REG_BADPAT },
|
|
@@ -103,6 +121,7 @@ onig2posix_error_code(int code)
|
|
|
103
121
|
{ ONIGERR_NUMBERED_BACKREF_OR_CALL_NOT_ALLOWED, REG_BADPAT },
|
|
104
122
|
{ ONIGERR_TOO_BIG_WIDE_CHAR_VALUE, REG_EONIG_BADWC },
|
|
105
123
|
{ ONIGERR_TOO_LONG_WIDE_CHAR_VALUE, REG_EONIG_BADWC },
|
|
124
|
+
{ ONIGERR_UNDEFINED_OPERATOR, REG_BADPAT },
|
|
106
125
|
{ ONIGERR_INVALID_CODE_POINT_VALUE, REG_EONIG_BADWC },
|
|
107
126
|
{ ONIGERR_EMPTY_GROUP_NAME, REG_BADPAT },
|
|
108
127
|
{ ONIGERR_INVALID_GROUP_NAME, REG_BADPAT },
|
|
@@ -114,7 +133,17 @@ onig2posix_error_code(int code)
|
|
|
114
133
|
{ ONIGERR_NEVER_ENDING_RECURSION, REG_BADPAT },
|
|
115
134
|
{ ONIGERR_GROUP_NUMBER_OVER_FOR_CAPTURE_HISTORY, REG_BADPAT },
|
|
116
135
|
{ ONIGERR_INVALID_CHAR_PROPERTY_NAME, REG_BADPAT },
|
|
136
|
+
{ ONIGERR_INVALID_IF_ELSE_SYNTAX, REG_BADPAT },
|
|
137
|
+
{ ONIGERR_INVALID_ABSENT_GROUP_PATTERN, REG_BADPAT },
|
|
138
|
+
{ ONIGERR_INVALID_ABSENT_GROUP_GENERATOR_PATTERN, REG_BADPAT },
|
|
139
|
+
{ ONIGERR_INVALID_CALLOUT_PATTERN, REG_BADPAT },
|
|
140
|
+
{ ONIGERR_INVALID_CALLOUT_NAME, REG_BADPAT },
|
|
141
|
+
{ ONIGERR_UNDEFINED_CALLOUT_NAME, REG_BADPAT },
|
|
142
|
+
{ ONIGERR_INVALID_CALLOUT_BODY, REG_BADPAT },
|
|
143
|
+
{ ONIGERR_INVALID_CALLOUT_TAG_NAME, REG_BADPAT },
|
|
144
|
+
{ ONIGERR_INVALID_CALLOUT_ARG, REG_BADPAT },
|
|
117
145
|
{ ONIGERR_NOT_SUPPORTED_ENCODING_COMBINATION, REG_EONIG_BADARG },
|
|
146
|
+
{ ONIGERR_VERY_INEFFICIENT_PATTERN, REG_BADPAT },
|
|
118
147
|
{ ONIGERR_LIBRARY_IS_NOT_INITIALIZED, REG_EONIG_INTERNAL }
|
|
119
148
|
};
|
|
120
149
|
|
|
@@ -131,12 +160,14 @@ onig2posix_error_code(int code)
|
|
|
131
160
|
}
|
|
132
161
|
|
|
133
162
|
extern int
|
|
134
|
-
|
|
163
|
+
onig_posix_regcomp(onig_posix_regex_t* reg, const char* pattern, int posix_options)
|
|
135
164
|
{
|
|
136
165
|
int r, len;
|
|
137
166
|
OnigSyntaxType* syntax = OnigDefaultSyntax;
|
|
138
167
|
OnigOptionType options;
|
|
139
168
|
|
|
169
|
+
reg->onig = (void* )0;
|
|
170
|
+
|
|
140
171
|
if ((posix_options & REG_EXTENDED) == 0)
|
|
141
172
|
syntax = ONIG_SYNTAX_POSIX_BASIC;
|
|
142
173
|
|
|
@@ -152,8 +183,8 @@ regcomp(regex_t* reg, const char* pattern, int posix_options)
|
|
|
152
183
|
|
|
153
184
|
ENC_STRING_LEN(OnigEncDefaultCharEncoding, pattern, len);
|
|
154
185
|
r = onig_new(PONIG_C(reg), (UChar* )pattern, (UChar* )(pattern + len),
|
|
155
|
-
|
|
156
|
-
|
|
186
|
+
options, OnigEncDefaultCharEncoding, syntax,
|
|
187
|
+
(OnigErrorInfo* )NULL);
|
|
157
188
|
if (r != ONIG_NORMAL) {
|
|
158
189
|
return onig2posix_error_code(r);
|
|
159
190
|
}
|
|
@@ -163,12 +194,12 @@ regcomp(regex_t* reg, const char* pattern, int posix_options)
|
|
|
163
194
|
}
|
|
164
195
|
|
|
165
196
|
extern int
|
|
166
|
-
|
|
167
|
-
|
|
197
|
+
onig_posix_regexec(onig_posix_regex_t* reg, const char* str, size_t nmatch,
|
|
198
|
+
onig_posix_regmatch_t pmatch[], int posix_options)
|
|
168
199
|
{
|
|
169
200
|
int r, i, len;
|
|
170
201
|
UChar* end;
|
|
171
|
-
|
|
202
|
+
onig_posix_regmatch_t* pm;
|
|
172
203
|
OnigOptionType options;
|
|
173
204
|
|
|
174
205
|
options = ONIG_OPTION_POSIX_REGION;
|
|
@@ -176,11 +207,11 @@ regexec(regex_t* reg, const char* str, size_t nmatch,
|
|
|
176
207
|
if ((posix_options & REG_NOTEOL) != 0) options |= ONIG_OPTION_NOTEOL;
|
|
177
208
|
|
|
178
209
|
if (nmatch == 0 || (reg->comp_options & REG_NOSUB) != 0) {
|
|
179
|
-
pm = (
|
|
210
|
+
pm = (onig_posix_regmatch_t* )NULL;
|
|
180
211
|
nmatch = 0;
|
|
181
212
|
}
|
|
182
213
|
else if ((int )nmatch < ONIG_C(reg)->num_mem + 1) {
|
|
183
|
-
pm = (
|
|
214
|
+
pm = (onig_posix_regmatch_t* )xmalloc(sizeof(onig_posix_regmatch_t)
|
|
184
215
|
* (ONIG_C(reg)->num_mem + 1));
|
|
185
216
|
if (pm == NULL)
|
|
186
217
|
return REG_ESPACE;
|
|
@@ -192,12 +223,12 @@ regexec(regex_t* reg, const char* str, size_t nmatch,
|
|
|
192
223
|
ENC_STRING_LEN(ONIG_C(reg)->enc, str, len);
|
|
193
224
|
end = (UChar* )(str + len);
|
|
194
225
|
r = onig_search(ONIG_C(reg), (UChar* )str, end, (UChar* )str, end,
|
|
195
|
-
|
|
226
|
+
(OnigRegion* )pm, options);
|
|
196
227
|
|
|
197
228
|
if (r >= 0) {
|
|
198
229
|
r = 0; /* Match */
|
|
199
230
|
if (pm != pmatch && pm != NULL) {
|
|
200
|
-
xmemcpy(pmatch, pm, sizeof(
|
|
231
|
+
xmemcpy(pmatch, pm, sizeof(onig_posix_regmatch_t) * nmatch);
|
|
201
232
|
}
|
|
202
233
|
}
|
|
203
234
|
else if (r == ONIG_MISMATCH) {
|
|
@@ -221,14 +252,15 @@ regexec(regex_t* reg, const char* str, size_t nmatch,
|
|
|
221
252
|
}
|
|
222
253
|
|
|
223
254
|
extern void
|
|
224
|
-
|
|
255
|
+
onig_posix_regfree(onig_posix_regex_t* reg)
|
|
225
256
|
{
|
|
226
257
|
onig_free(ONIG_C(reg));
|
|
258
|
+
reg->onig = (void* )0;
|
|
227
259
|
}
|
|
228
260
|
|
|
229
261
|
|
|
230
262
|
extern void
|
|
231
|
-
|
|
263
|
+
onig_posix_reg_set_encoding(int mb_code)
|
|
232
264
|
{
|
|
233
265
|
OnigEncoding enc;
|
|
234
266
|
|
|
@@ -257,28 +289,27 @@ reg_set_encoding(int mb_code)
|
|
|
257
289
|
break;
|
|
258
290
|
}
|
|
259
291
|
|
|
260
|
-
onig_initialize(
|
|
261
|
-
onig_initialize_encoding(enc);
|
|
292
|
+
onig_initialize(&enc, 1);
|
|
262
293
|
|
|
263
294
|
onigenc_set_default_encoding(enc);
|
|
264
295
|
}
|
|
265
296
|
|
|
266
297
|
extern int
|
|
267
|
-
|
|
298
|
+
onig_posix_reg_name_to_group_numbers(onig_posix_regex_t* reg,
|
|
268
299
|
const unsigned char* name, const unsigned char* name_end, int** nums)
|
|
269
300
|
{
|
|
270
301
|
return onig_name_to_group_numbers(ONIG_C(reg), name, name_end, nums);
|
|
271
302
|
}
|
|
272
303
|
|
|
273
304
|
typedef struct {
|
|
274
|
-
int (*func)(const unsigned char*, const unsigned char*,int,int*,
|
|
275
|
-
|
|
305
|
+
int (*func)(const unsigned char*, const unsigned char*,int,int*,onig_posix_regex_t*,void*);
|
|
306
|
+
onig_posix_regex_t* reg;
|
|
276
307
|
void* arg;
|
|
277
308
|
} i_wrap;
|
|
278
309
|
|
|
279
310
|
static int
|
|
280
311
|
i_wrapper(const UChar* name, const UChar* name_end, int ng, int* gs,
|
|
281
|
-
|
|
312
|
+
onig_regex_t* reg ARG_UNUSED, void* arg)
|
|
282
313
|
{
|
|
283
314
|
i_wrap* warg = (i_wrap* )arg;
|
|
284
315
|
|
|
@@ -286,8 +317,8 @@ i_wrapper(const UChar* name, const UChar* name_end, int ng, int* gs,
|
|
|
286
317
|
}
|
|
287
318
|
|
|
288
319
|
extern int
|
|
289
|
-
|
|
290
|
-
int (*func)(const unsigned char*, const unsigned char*,int,int*,
|
|
320
|
+
onig_posix_reg_foreach_name(onig_posix_regex_t* reg,
|
|
321
|
+
int (*func)(const unsigned char*, const unsigned char*,int,int*,onig_posix_regex_t*,void*),
|
|
291
322
|
void* arg)
|
|
292
323
|
{
|
|
293
324
|
i_wrap warg;
|
|
@@ -300,7 +331,58 @@ reg_foreach_name(regex_t* reg,
|
|
|
300
331
|
}
|
|
301
332
|
|
|
302
333
|
extern int
|
|
303
|
-
|
|
334
|
+
onig_posix_reg_number_of_names(onig_posix_regex_t* reg)
|
|
304
335
|
{
|
|
305
336
|
return onig_number_of_names(ONIG_C(reg));
|
|
306
337
|
}
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
#ifdef USE_BINARY_COMPATIBLE_POSIX_API
|
|
341
|
+
|
|
342
|
+
extern int
|
|
343
|
+
regcomp(onig_posix_regex_t* reg, const char* pattern, int posix_options)
|
|
344
|
+
{
|
|
345
|
+
return onig_posix_regcomp(reg, pattern, posix_options);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
extern int
|
|
349
|
+
regexec(onig_posix_regex_t* reg, const char* str, size_t nmatch,
|
|
350
|
+
onig_posix_regmatch_t pmatch[], int posix_options)
|
|
351
|
+
{
|
|
352
|
+
return onig_posix_regexec(reg, str, nmatch, pmatch, posix_options);
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
extern void
|
|
356
|
+
regfree(onig_posix_regex_t* reg)
|
|
357
|
+
{
|
|
358
|
+
onig_posix_regfree(reg);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
extern void
|
|
362
|
+
reg_set_encoding(int mb_code)
|
|
363
|
+
{
|
|
364
|
+
onig_posix_reg_set_encoding(mb_code);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
extern int
|
|
368
|
+
reg_name_to_group_numbers(onig_posix_regex_t* reg,
|
|
369
|
+
const unsigned char* name, const unsigned char* name_end, int** nums)
|
|
370
|
+
{
|
|
371
|
+
return onig_posix_reg_name_to_group_numbers(reg, name, name_end, nums);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
extern int
|
|
375
|
+
reg_foreach_name(onig_posix_regex_t* reg,
|
|
376
|
+
int (*func)(const unsigned char*, const unsigned char*,int,int*,onig_posix_regex_t*,void*),
|
|
377
|
+
void* arg)
|
|
378
|
+
{
|
|
379
|
+
return onig_posix_reg_foreach_name(reg, func, arg);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
extern int
|
|
383
|
+
reg_number_of_names(onig_posix_regex_t* reg)
|
|
384
|
+
{
|
|
385
|
+
return onig_posix_reg_number_of_names(reg);
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
#endif /* USE_BINARY_COMPATIBLE_POSIX_API */
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
regsyntax.c - Oniguruma (regular expression library)
|
|
3
3
|
**********************************************************************/
|
|
4
4
|
/*-
|
|
5
|
-
* Copyright (c) 2002-
|
|
5
|
+
* Copyright (c) 2002-2021 K.Kosako
|
|
6
6
|
* All rights reserved.
|
|
7
7
|
*
|
|
8
8
|
* Redistribution and use in source and binary forms, with or without
|
|
@@ -49,7 +49,7 @@ OnigSyntaxType OnigSyntaxPosixBasic = {
|
|
|
49
49
|
( SYN_POSIX_COMMON_OP | ONIG_SYN_OP_ESC_LPAREN_SUBEXP |
|
|
50
50
|
ONIG_SYN_OP_ESC_BRACE_INTERVAL )
|
|
51
51
|
, 0
|
|
52
|
-
,
|
|
52
|
+
, ( ONIG_SYN_BRE_ANCHOR_AT_EDGE_OF_SUBEXP )
|
|
53
53
|
, ( ONIG_OPTION_SINGLELINE | ONIG_OPTION_MULTILINE )
|
|
54
54
|
,
|
|
55
55
|
{
|
|
@@ -67,8 +67,8 @@ OnigSyntaxType OnigSyntaxPosixExtended = {
|
|
|
67
67
|
ONIG_SYN_OP_BRACE_INTERVAL |
|
|
68
68
|
ONIG_SYN_OP_PLUS_ONE_INF | ONIG_SYN_OP_QMARK_ZERO_ONE | ONIG_SYN_OP_VBAR_ALT )
|
|
69
69
|
, 0
|
|
70
|
-
, ( ONIG_SYN_CONTEXT_INDEP_ANCHORS |
|
|
71
|
-
ONIG_SYN_CONTEXT_INDEP_REPEAT_OPS | ONIG_SYN_CONTEXT_INVALID_REPEAT_OPS |
|
|
70
|
+
, ( ONIG_SYN_CONTEXT_INDEP_ANCHORS |
|
|
71
|
+
ONIG_SYN_CONTEXT_INDEP_REPEAT_OPS | ONIG_SYN_CONTEXT_INVALID_REPEAT_OPS |
|
|
72
72
|
ONIG_SYN_ALLOW_UNMATCHED_CLOSE_SUBEXP |
|
|
73
73
|
ONIG_SYN_ALLOW_DOUBLE_RANGE_OP_IN_CC )
|
|
74
74
|
, ( ONIG_OPTION_SINGLELINE | ONIG_OPTION_MULTILINE )
|
|
@@ -113,7 +113,8 @@ OnigSyntaxType OnigSyntaxGrep = {
|
|
|
113
113
|
ONIG_SYN_OP_ESC_W_WORD | ONIG_SYN_OP_ESC_B_WORD_BOUND |
|
|
114
114
|
ONIG_SYN_OP_ESC_LTGT_WORD_BEGIN_END | ONIG_SYN_OP_DECIMAL_BACKREF )
|
|
115
115
|
, 0
|
|
116
|
-
, ( ONIG_SYN_ALLOW_EMPTY_RANGE_IN_CC | ONIG_SYN_NOT_NEWLINE_IN_NEGATIVE_CC
|
|
116
|
+
, ( ONIG_SYN_ALLOW_EMPTY_RANGE_IN_CC | ONIG_SYN_NOT_NEWLINE_IN_NEGATIVE_CC |
|
|
117
|
+
ONIG_SYN_BRE_ANCHOR_AT_EDGE_OF_SUBEXP )
|
|
117
118
|
, ONIG_OPTION_NONE
|
|
118
119
|
,
|
|
119
120
|
{
|
|
@@ -152,7 +153,9 @@ OnigSyntaxType OnigSyntaxJava = {
|
|
|
152
153
|
ONIG_SYN_OP2_PLUS_POSSESSIVE_INTERVAL | ONIG_SYN_OP2_CCLASS_SET_OP |
|
|
153
154
|
ONIG_SYN_OP2_ESC_V_VTAB | ONIG_SYN_OP2_ESC_U_HEX4 |
|
|
154
155
|
ONIG_SYN_OP2_ESC_P_BRACE_CHAR_PROPERTY )
|
|
155
|
-
, ( SYN_GNU_REGEX_BV |
|
|
156
|
+
, ( SYN_GNU_REGEX_BV | ONIG_SYN_ISOLATED_OPTION_CONTINUE_BRANCH |
|
|
157
|
+
ONIG_SYN_DIFFERENT_LEN_ALT_LOOK_BEHIND |
|
|
158
|
+
ONIG_SYN_VARIABLE_LEN_LOOK_BEHIND )
|
|
156
159
|
, ONIG_OPTION_SINGLELINE
|
|
157
160
|
,
|
|
158
161
|
{
|
|
@@ -168,14 +171,24 @@ OnigSyntaxType OnigSyntaxJava = {
|
|
|
168
171
|
OnigSyntaxType OnigSyntaxPerl = {
|
|
169
172
|
(( SYN_GNU_REGEX_OP | ONIG_SYN_OP_QMARK_NON_GREEDY |
|
|
170
173
|
ONIG_SYN_OP_ESC_OCTAL3 | ONIG_SYN_OP_ESC_X_HEX2 |
|
|
171
|
-
ONIG_SYN_OP_ESC_X_BRACE_HEX8 |
|
|
174
|
+
ONIG_SYN_OP_ESC_X_BRACE_HEX8 | ONIG_SYN_OP_ESC_O_BRACE_OCTAL |
|
|
175
|
+
ONIG_SYN_OP_ESC_CONTROL_CHARS |
|
|
172
176
|
ONIG_SYN_OP_ESC_C_CONTROL )
|
|
173
177
|
& ~ONIG_SYN_OP_ESC_LTGT_WORD_BEGIN_END )
|
|
174
178
|
, ( ONIG_SYN_OP2_ESC_CAPITAL_Q_QUOTE |
|
|
175
179
|
ONIG_SYN_OP2_QMARK_GROUP_EFFECT | ONIG_SYN_OP2_OPTION_PERL |
|
|
180
|
+
ONIG_SYN_OP2_PLUS_POSSESSIVE_REPEAT | ONIG_SYN_OP2_PLUS_POSSESSIVE_INTERVAL |
|
|
181
|
+
ONIG_SYN_OP2_QMARK_LPAREN_IF_ELSE |
|
|
182
|
+
ONIG_SYN_OP2_QMARK_TILDE_ABSENT_GROUP |
|
|
183
|
+
ONIG_SYN_OP2_QMARK_BRACE_CALLOUT_CONTENTS |
|
|
184
|
+
ONIG_SYN_OP2_ASTERISK_CALLOUT_NAME |
|
|
185
|
+
ONIG_SYN_OP2_ESC_X_Y_TEXT_SEGMENT |
|
|
176
186
|
ONIG_SYN_OP2_ESC_P_BRACE_CHAR_PROPERTY |
|
|
177
|
-
ONIG_SYN_OP2_ESC_P_BRACE_CIRCUMFLEX_NOT
|
|
178
|
-
|
|
187
|
+
ONIG_SYN_OP2_ESC_P_BRACE_CIRCUMFLEX_NOT |
|
|
188
|
+
ONIG_SYN_OP2_ESC_CAPITAL_K_KEEP |
|
|
189
|
+
ONIG_SYN_OP2_ESC_CAPITAL_R_GENERAL_NEWLINE |
|
|
190
|
+
ONIG_SYN_OP2_ESC_CAPITAL_N_O_SUPER_DOT )
|
|
191
|
+
, SYN_GNU_REGEX_BV | ONIG_SYN_ISOLATED_OPTION_CONTINUE_BRANCH
|
|
179
192
|
, ONIG_OPTION_SINGLELINE
|
|
180
193
|
,
|
|
181
194
|
{
|
|
@@ -192,17 +205,28 @@ OnigSyntaxType OnigSyntaxPerl = {
|
|
|
192
205
|
OnigSyntaxType OnigSyntaxPerl_NG = {
|
|
193
206
|
(( SYN_GNU_REGEX_OP | ONIG_SYN_OP_QMARK_NON_GREEDY |
|
|
194
207
|
ONIG_SYN_OP_ESC_OCTAL3 | ONIG_SYN_OP_ESC_X_HEX2 |
|
|
195
|
-
ONIG_SYN_OP_ESC_X_BRACE_HEX8 |
|
|
208
|
+
ONIG_SYN_OP_ESC_X_BRACE_HEX8 | ONIG_SYN_OP_ESC_O_BRACE_OCTAL |
|
|
209
|
+
ONIG_SYN_OP_ESC_CONTROL_CHARS |
|
|
196
210
|
ONIG_SYN_OP_ESC_C_CONTROL )
|
|
197
211
|
& ~ONIG_SYN_OP_ESC_LTGT_WORD_BEGIN_END )
|
|
198
212
|
, ( ONIG_SYN_OP2_ESC_CAPITAL_Q_QUOTE |
|
|
199
213
|
ONIG_SYN_OP2_QMARK_GROUP_EFFECT | ONIG_SYN_OP2_OPTION_PERL |
|
|
214
|
+
ONIG_SYN_OP2_PLUS_POSSESSIVE_REPEAT | ONIG_SYN_OP2_PLUS_POSSESSIVE_INTERVAL |
|
|
215
|
+
ONIG_SYN_OP2_QMARK_LPAREN_IF_ELSE |
|
|
216
|
+
ONIG_SYN_OP2_QMARK_TILDE_ABSENT_GROUP |
|
|
217
|
+
ONIG_SYN_OP2_QMARK_BRACE_CALLOUT_CONTENTS |
|
|
218
|
+
ONIG_SYN_OP2_ASTERISK_CALLOUT_NAME |
|
|
219
|
+
ONIG_SYN_OP2_ESC_X_Y_TEXT_SEGMENT |
|
|
200
220
|
ONIG_SYN_OP2_ESC_P_BRACE_CHAR_PROPERTY |
|
|
201
221
|
ONIG_SYN_OP2_ESC_P_BRACE_CIRCUMFLEX_NOT |
|
|
202
222
|
ONIG_SYN_OP2_QMARK_LT_NAMED_GROUP |
|
|
203
223
|
ONIG_SYN_OP2_ESC_K_NAMED_BACKREF |
|
|
204
|
-
ONIG_SYN_OP2_ESC_G_SUBEXP_CALL
|
|
205
|
-
|
|
224
|
+
ONIG_SYN_OP2_ESC_G_SUBEXP_CALL |
|
|
225
|
+
ONIG_SYN_OP2_ESC_CAPITAL_K_KEEP |
|
|
226
|
+
ONIG_SYN_OP2_ESC_CAPITAL_R_GENERAL_NEWLINE |
|
|
227
|
+
ONIG_SYN_OP2_ESC_CAPITAL_N_O_SUPER_DOT |
|
|
228
|
+
ONIG_SYN_OP2_QMARK_PERL_SUBEXP_CALL )
|
|
229
|
+
, ( SYN_GNU_REGEX_BV | ONIG_SYN_ISOLATED_OPTION_CONTINUE_BRANCH |
|
|
206
230
|
ONIG_SYN_CAPTURE_ONLY_NAMED_GROUP |
|
|
207
231
|
ONIG_SYN_ALLOW_MULTIPLEX_DEFINITION_NAME )
|
|
208
232
|
, ONIG_OPTION_SINGLELINE
|
|
@@ -217,13 +241,42 @@ OnigSyntaxType OnigSyntaxPerl_NG = {
|
|
|
217
241
|
}
|
|
218
242
|
};
|
|
219
243
|
|
|
244
|
+
/* Python 3.9 */
|
|
245
|
+
OnigSyntaxType OnigSyntaxPython = {
|
|
246
|
+
(( SYN_GNU_REGEX_OP | ONIG_SYN_OP_QMARK_NON_GREEDY |
|
|
247
|
+
ONIG_SYN_OP_ESC_OCTAL3 | ONIG_SYN_OP_ESC_X_HEX2 |
|
|
248
|
+
ONIG_SYN_OP_ESC_CONTROL_CHARS |
|
|
249
|
+
ONIG_SYN_OP_ESC_C_CONTROL )
|
|
250
|
+
& ~ONIG_SYN_OP_ESC_LTGT_WORD_BEGIN_END )
|
|
251
|
+
, ( ONIG_SYN_OP2_QMARK_GROUP_EFFECT | ONIG_SYN_OP2_OPTION_PERL |
|
|
252
|
+
ONIG_SYN_OP2_QMARK_LPAREN_IF_ELSE |
|
|
253
|
+
ONIG_SYN_OP2_ASTERISK_CALLOUT_NAME |
|
|
254
|
+
ONIG_SYN_OP2_ESC_P_BRACE_CHAR_PROPERTY |
|
|
255
|
+
ONIG_SYN_OP2_ESC_P_BRACE_CIRCUMFLEX_NOT |
|
|
256
|
+
ONIG_SYN_OP2_QMARK_CAPITAL_P_NAME |
|
|
257
|
+
ONIG_SYN_OP2_ESC_CAPITAL_K_KEEP |
|
|
258
|
+
ONIG_SYN_OP2_ESC_V_VTAB | ONIG_SYN_OP2_ESC_U_HEX4 )
|
|
259
|
+
, ( SYN_GNU_REGEX_BV | ONIG_SYN_ISOLATED_OPTION_CONTINUE_BRANCH |
|
|
260
|
+
ONIG_SYN_ALLOW_INTERVAL_LOW_ABBREV | ONIG_SYN_PYTHON )
|
|
261
|
+
, ONIG_OPTION_SINGLELINE
|
|
262
|
+
,
|
|
263
|
+
{
|
|
264
|
+
(OnigCodePoint )'\\' /* esc */
|
|
265
|
+
, (OnigCodePoint )ONIG_INEFFECTIVE_META_CHAR /* anychar '.' */
|
|
266
|
+
, (OnigCodePoint )ONIG_INEFFECTIVE_META_CHAR /* anytime '*' */
|
|
267
|
+
, (OnigCodePoint )ONIG_INEFFECTIVE_META_CHAR /* zero or one time '?' */
|
|
268
|
+
, (OnigCodePoint )ONIG_INEFFECTIVE_META_CHAR /* one or more time '+' */
|
|
269
|
+
, (OnigCodePoint )ONIG_INEFFECTIVE_META_CHAR /* anychar anytime */
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
|
|
220
273
|
|
|
221
274
|
|
|
222
275
|
extern int
|
|
223
276
|
onig_set_default_syntax(OnigSyntaxType* syntax)
|
|
224
277
|
{
|
|
225
278
|
if (IS_NULL(syntax))
|
|
226
|
-
syntax =
|
|
279
|
+
syntax = ONIG_SYNTAX_ONIGURUMA;
|
|
227
280
|
|
|
228
281
|
OnigDefaultSyntax = syntax;
|
|
229
282
|
return 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
regtrav.c - Oniguruma (regular expression library)
|
|
3
3
|
**********************************************************************/
|
|
4
4
|
/*-
|
|
5
|
-
* Copyright (c) 2002-
|
|
5
|
+
* Copyright (c) 2002-2019 K.Kosako
|
|
6
6
|
* All rights reserved.
|
|
7
7
|
*
|
|
8
8
|
* Redistribution and use in source and binary forms, with or without
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
regversion.c - Oniguruma (regular expression library)
|
|
3
3
|
**********************************************************************/
|
|
4
4
|
/*-
|
|
5
|
-
* Copyright (c) 2002-
|
|
5
|
+
* Copyright (c) 2002-2020 K.Kosako
|
|
6
6
|
* All rights reserved.
|
|
7
7
|
*
|
|
8
8
|
* Redistribution and use in source and binary forms, with or without
|
|
@@ -27,9 +27,11 @@
|
|
|
27
27
|
* SUCH DAMAGE.
|
|
28
28
|
*/
|
|
29
29
|
|
|
30
|
-
#
|
|
30
|
+
#ifndef NEED_TO_INCLUDE_STDIO
|
|
31
|
+
#define NEED_TO_INCLUDE_STDIO
|
|
32
|
+
#endif
|
|
33
|
+
|
|
31
34
|
#include "regint.h"
|
|
32
|
-
#include <stdio.h>
|
|
33
35
|
|
|
34
36
|
extern const char*
|
|
35
37
|
onig_version(void)
|
|
@@ -49,7 +51,7 @@ onig_copyright(void)
|
|
|
49
51
|
static char s[58];
|
|
50
52
|
|
|
51
53
|
xsnprintf(s, sizeof(s),
|
|
52
|
-
"Oniguruma %d.%d.%d : Copyright (C) 2002-
|
|
54
|
+
"Oniguruma %d.%d.%d : Copyright (C) 2002-2018 K.Kosako",
|
|
53
55
|
ONIGURUMA_VERSION_MAJOR,
|
|
54
56
|
ONIGURUMA_VERSION_MINOR,
|
|
55
57
|
ONIGURUMA_VERSION_TEENY);
|