@port-labs/jq-node-bindings 0.0.4 → 0.0.5
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/binding.gyp +3 -3
- package/configure +8 -6
- package/deps/jq/.travis.yml +184 -35
- package/deps/jq/AUTHORS +31 -30
- package/deps/jq/COPYING +2 -2
- package/deps/jq/KEYS +8 -0
- package/deps/jq/Makefile.am +85 -70
- package/deps/jq/NEWS +5 -4
- package/deps/jq/README.md +18 -9
- package/deps/jq/appveyor.yml +53 -0
- package/deps/jq/compile-ios.sh +5 -5
- package/deps/jq/config/m4/check-math-func.m4 +7 -2
- package/deps/jq/configure.ac +130 -68
- package/deps/jq/docs/Rakefile +14 -135
- package/deps/jq/docs/Rakefile.manual +49 -0
- package/deps/jq/docs/Rakefile.website +76 -0
- package/deps/jq/docs/content/2.download/default.yml +115 -39
- package/deps/jq/docs/content/3.manual/manual.yml +641 -231
- package/deps/jq/docs/content/3.manual/v1.3/manual.yml +130 -130
- package/deps/jq/docs/content/3.manual/v1.4/manual.yml +160 -160
- package/deps/jq/docs/content/3.manual/v1.5/manual.yml +2878 -0
- package/deps/jq/docs/content/3.manual/v1.6/manual.yml +3287 -0
- package/deps/jq/docs/content/index/index.yml +28 -6
- package/deps/jq/docs/public/.htaccess +2 -2
- package/deps/jq/docs/public/css/base.scss +141 -59
- package/deps/jq/docs/public/js/manual-search.js +52 -0
- package/deps/jq/docs/site.yml +1 -10
- package/deps/jq/docs/templates/default.liquid +10 -10
- package/deps/jq/docs/templates/index.liquid +45 -32
- package/deps/jq/docs/templates/manual.liquid +67 -90
- package/deps/jq/docs/templates/shared/_footer.liquid +10 -5
- package/deps/jq/docs/templates/shared/_head.liquid +17 -12
- package/deps/jq/docs/templates/shared/_navbar.liquid +27 -0
- package/deps/jq/jq.1.prebuilt +523 -139
- package/deps/jq/modules/oniguruma/AUTHORS +1 -0
- package/deps/jq/modules/oniguruma/CMakeLists.txt +86 -0
- package/deps/jq/modules/oniguruma/COPYING +28 -0
- package/deps/jq/modules/oniguruma/ChangeLog +0 -0
- package/deps/jq/modules/oniguruma/HISTORY +2138 -0
- package/deps/jq/modules/oniguruma/Makefile.am +33 -0
- package/deps/jq/modules/oniguruma/NEWS +0 -0
- package/deps/jq/modules/oniguruma/README +189 -0
- package/deps/jq/modules/oniguruma/README.ja +195 -0
- package/deps/jq/modules/oniguruma/README.md +203 -0
- package/deps/jq/modules/oniguruma/cmake/dist.cmake +321 -0
- package/deps/jq/modules/oniguruma/compile +348 -0
- package/deps/jq/modules/oniguruma/config.guess +1754 -0
- package/deps/jq/modules/oniguruma/config.sub +1890 -0
- package/deps/jq/modules/oniguruma/configure.ac +87 -0
- package/deps/jq/modules/oniguruma/contributed/libfuzzer-onig.cpp +31 -0
- package/deps/jq/modules/oniguruma/depcomp +791 -0
- package/deps/jq/modules/oniguruma/dist.info +10 -0
- package/deps/jq/modules/oniguruma/doc/API +660 -0
- package/deps/jq/modules/oniguruma/doc/API.ja +667 -0
- package/deps/jq/modules/oniguruma/doc/FAQ +12 -0
- package/deps/jq/modules/oniguruma/doc/FAQ.ja +22 -0
- package/deps/jq/modules/oniguruma/doc/RE +436 -0
- package/deps/jq/modules/oniguruma/doc/RE.ja +448 -0
- package/deps/jq/modules/oniguruma/doc/UNICODE_PROPERTIES +698 -0
- package/deps/jq/modules/oniguruma/index.html +181 -0
- package/deps/jq/modules/oniguruma/index_ja.html +184 -0
- package/deps/jq/modules/oniguruma/install-sh +541 -0
- package/deps/jq/modules/oniguruma/m4/.whatever +0 -0
- package/deps/jq/modules/oniguruma/make_win32.bat +3 -0
- package/deps/jq/modules/oniguruma/make_win64.bat +3 -0
- package/deps/jq/modules/oniguruma/missing +215 -0
- package/deps/jq/modules/oniguruma/onig-config.in +78 -0
- package/deps/jq/modules/oniguruma/oniguruma.pc.cmake.in +13 -0
- package/deps/jq/modules/oniguruma/oniguruma.pc.in +14 -0
- package/deps/jq/modules/oniguruma/sample/CMakeLists.txt +28 -0
- package/deps/jq/modules/oniguruma/sample/Makefile.am +34 -0
- package/deps/jq/modules/oniguruma/sample/bug_fix.c +131 -0
- package/deps/jq/modules/oniguruma/sample/crnl.c +127 -0
- package/deps/jq/modules/oniguruma/sample/encode.c +308 -0
- package/deps/jq/modules/oniguruma/sample/listcap.c +110 -0
- package/deps/jq/modules/oniguruma/sample/names.c +75 -0
- package/deps/jq/modules/oniguruma/sample/posix.c +96 -0
- package/deps/jq/modules/oniguruma/sample/scan.c +88 -0
- package/deps/jq/modules/oniguruma/sample/simple.c +59 -0
- package/deps/jq/modules/oniguruma/sample/sql.c +76 -0
- package/deps/jq/modules/oniguruma/sample/syntax.c +76 -0
- package/deps/jq/modules/oniguruma/sample/user_property.c +87 -0
- package/deps/jq/modules/oniguruma/src/Makefile.am +58 -0
- package/deps/jq/modules/oniguruma/src/Makefile.windows +183 -0
- package/deps/jq/modules/oniguruma/src/ascii.c +61 -0
- package/deps/jq/modules/oniguruma/src/big5.c +190 -0
- package/deps/jq/modules/oniguruma/src/config.h.cmake.in +71 -0
- package/deps/jq/modules/oniguruma/src/config.h.win32 +84 -0
- package/deps/jq/modules/oniguruma/src/config.h.win64 +84 -0
- package/deps/jq/modules/oniguruma/src/cp1251.c +203 -0
- package/deps/jq/modules/oniguruma/src/euc_jp.c +310 -0
- package/deps/jq/modules/oniguruma/src/euc_jp_prop.c +158 -0
- package/deps/jq/modules/oniguruma/src/euc_jp_prop.gperf +27 -0
- package/deps/jq/modules/oniguruma/src/euc_kr.c +188 -0
- package/deps/jq/modules/oniguruma/src/euc_tw.c +171 -0
- package/deps/jq/modules/oniguruma/src/gb18030.c +538 -0
- package/deps/jq/modules/oniguruma/src/gperf_fold_key_conv.py +67 -0
- package/deps/jq/modules/oniguruma/src/gperf_unfold_key_conv.py +55 -0
- package/deps/jq/modules/oniguruma/src/iso8859_1.c +275 -0
- package/deps/jq/modules/oniguruma/src/iso8859_10.c +242 -0
- package/deps/jq/modules/oniguruma/src/iso8859_11.c +99 -0
- package/deps/jq/modules/oniguruma/src/iso8859_13.c +231 -0
- package/deps/jq/modules/oniguruma/src/iso8859_14.c +244 -0
- package/deps/jq/modules/oniguruma/src/iso8859_15.c +238 -0
- package/deps/jq/modules/oniguruma/src/iso8859_16.c +240 -0
- package/deps/jq/modules/oniguruma/src/iso8859_2.c +238 -0
- package/deps/jq/modules/oniguruma/src/iso8859_3.c +238 -0
- package/deps/jq/modules/oniguruma/src/iso8859_4.c +240 -0
- package/deps/jq/modules/oniguruma/src/iso8859_5.c +229 -0
- package/deps/jq/modules/oniguruma/src/iso8859_6.c +99 -0
- package/deps/jq/modules/oniguruma/src/iso8859_7.c +225 -0
- package/deps/jq/modules/oniguruma/src/iso8859_8.c +99 -0
- package/deps/jq/modules/oniguruma/src/iso8859_9.c +231 -0
- package/deps/jq/modules/oniguruma/src/koi8.c +253 -0
- package/deps/jq/modules/oniguruma/src/koi8_r.c +215 -0
- package/deps/jq/modules/oniguruma/src/make_unicode_fold.sh +22 -0
- package/deps/jq/modules/oniguruma/src/make_unicode_fold_data.py +306 -0
- package/deps/jq/modules/oniguruma/src/make_unicode_property.sh +18 -0
- package/deps/jq/modules/oniguruma/src/make_unicode_property_data.py +545 -0
- package/deps/jq/modules/oniguruma/src/mktable.c +1184 -0
- package/deps/jq/modules/oniguruma/src/onig_init.c +45 -0
- package/deps/jq/modules/oniguruma/src/oniggnu.h +85 -0
- package/deps/jq/modules/oniguruma/src/onigposix.h +169 -0
- package/deps/jq/modules/oniguruma/src/oniguruma.h +841 -0
- package/deps/jq/modules/oniguruma/src/regcomp.c +6300 -0
- package/deps/jq/modules/oniguruma/src/regenc.c +917 -0
- package/deps/jq/modules/oniguruma/src/regenc.h +243 -0
- package/deps/jq/modules/oniguruma/src/regerror.c +393 -0
- package/deps/jq/modules/oniguruma/src/regexec.c +3856 -0
- package/deps/jq/modules/oniguruma/src/regext.c +202 -0
- package/deps/jq/modules/oniguruma/src/reggnu.c +147 -0
- package/deps/jq/modules/oniguruma/src/regint.h +779 -0
- package/deps/jq/modules/oniguruma/src/regparse.c +5403 -0
- package/deps/jq/modules/oniguruma/src/regparse.h +351 -0
- package/deps/jq/modules/oniguruma/src/regposerr.c +105 -0
- package/deps/jq/modules/oniguruma/src/regposix.c +306 -0
- package/deps/jq/modules/oniguruma/src/regsyntax.c +315 -0
- package/deps/jq/modules/oniguruma/src/regtrav.c +76 -0
- package/deps/jq/modules/oniguruma/src/regversion.c +57 -0
- package/deps/jq/modules/oniguruma/src/sjis.c +341 -0
- package/deps/jq/modules/oniguruma/src/sjis_prop.c +158 -0
- package/deps/jq/modules/oniguruma/src/sjis_prop.gperf +27 -0
- package/deps/jq/modules/oniguruma/src/st.c +589 -0
- package/deps/jq/modules/oniguruma/src/st.h +68 -0
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold1_key.c +2250 -0
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold2_key.c +203 -0
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold3_key.c +113 -0
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold_data.c +1225 -0
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_property_data.c +24742 -0
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_property_data_posix.c +4846 -0
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_unfold_key.c +2571 -0
- package/deps/jq/modules/oniguruma/src/unicode.c +664 -0
- package/deps/jq/modules/oniguruma/src/unicode_fold1_key.c +2548 -0
- package/deps/jq/modules/oniguruma/src/unicode_fold2_key.c +203 -0
- package/deps/jq/modules/oniguruma/src/unicode_fold3_key.c +113 -0
- package/deps/jq/modules/oniguruma/src/unicode_fold_data.c +1366 -0
- package/deps/jq/modules/oniguruma/src/unicode_property_data.c +25306 -0
- package/deps/jq/modules/oniguruma/src/unicode_property_data_posix.c +4940 -0
- package/deps/jq/modules/oniguruma/src/unicode_unfold_key.c +2854 -0
- package/deps/jq/modules/oniguruma/src/utf16_be.c +235 -0
- package/deps/jq/modules/oniguruma/src/utf16_le.c +245 -0
- package/deps/jq/modules/oniguruma/src/utf32_be.c +194 -0
- package/deps/jq/modules/oniguruma/src/utf32_le.c +194 -0
- package/deps/jq/modules/oniguruma/src/utf8.c +335 -0
- package/deps/jq/modules/oniguruma/test/Makefile.am +28 -0
- package/deps/jq/modules/oniguruma/test/testc.c +874 -0
- package/deps/jq/modules/oniguruma/test/testu.c +916 -0
- package/deps/jq/modules/oniguruma/test-driver +153 -0
- package/deps/jq/modules/oniguruma/windows/testc.c +869 -0
- package/deps/jq/scripts/crosscompile +2 -1
- package/deps/jq/scripts/gen_utf8_tables.py +2 -3
- package/deps/jq/scripts/update-website +29 -0
- package/deps/jq/scripts/version +7 -2
- package/deps/jq/sig/jq-release.key +41 -0
- package/deps/jq/sig/v1.3/jq-linux-x86.asc +17 -0
- package/deps/jq/sig/v1.3/jq-linux-x86_64.asc +17 -0
- package/deps/jq/sig/v1.3/jq-osx-x86.asc +17 -0
- package/deps/jq/sig/v1.3/jq-osx-x86_64.asc +17 -0
- package/deps/jq/sig/v1.3/jq-win32.exe.asc +17 -0
- package/deps/jq/sig/v1.3/jq-win64.exe.asc +17 -0
- package/deps/jq/sig/v1.3/sha256sum.txt +6 -0
- package/deps/jq/sig/v1.4/jq-linux-x86.asc +17 -0
- package/deps/jq/sig/v1.4/jq-linux-x86_64.asc +17 -0
- package/deps/jq/sig/v1.4/jq-osx-x86.asc +17 -0
- package/deps/jq/sig/v1.4/jq-osx-x86_64.asc +17 -0
- package/deps/jq/sig/v1.4/jq-solaris11-32.asc +17 -0
- package/deps/jq/sig/v1.4/jq-solaris11-64.asc +17 -0
- package/deps/jq/sig/v1.4/jq-win32.exe.asc +17 -0
- package/deps/jq/sig/v1.4/jq-win64.exe.asc +17 -0
- package/deps/jq/sig/v1.4/sha256sum.txt +8 -0
- package/deps/jq/sig/v1.5/jq-linux32-no-oniguruma.asc +17 -0
- package/deps/jq/sig/v1.5/jq-linux32.asc +17 -0
- package/deps/jq/sig/v1.5/jq-linux64.asc +17 -0
- package/deps/jq/sig/v1.5/jq-osx-amd64.asc +17 -0
- package/deps/jq/sig/v1.5/jq-win32.exe.asc +17 -0
- package/deps/jq/sig/v1.5/jq-win64.exe.asc +17 -0
- package/deps/jq/sig/v1.5/sha256sum.txt +5 -0
- package/deps/jq/sig/v1.5rc1/jq-linux-x86_64-static.asc +17 -0
- package/deps/jq/sig/v1.5rc1/jq-win32.exe.asc +17 -0
- package/deps/jq/sig/v1.5rc1/jq-win64.exe.asc +17 -0
- package/deps/jq/sig/v1.5rc1/sha256sum.txt +3 -0
- package/deps/jq/sig/v1.5rc2/jq-linux-x86.asc +17 -0
- package/deps/jq/sig/v1.5rc2/jq-linux-x86_64.asc +17 -0
- package/deps/jq/sig/v1.5rc2/jq-osx-x86_64.asc +17 -0
- package/deps/jq/sig/v1.5rc2/jq-win32.exe.asc +17 -0
- package/deps/jq/sig/v1.5rc2/jq-win64.exe.asc +17 -0
- package/deps/jq/sig/v1.5rc2/sha256sum.txt +5 -0
- package/deps/jq/sig/v1.6/jq-linux32.asc +16 -0
- package/deps/jq/sig/v1.6/jq-linux64.asc +16 -0
- package/deps/jq/sig/v1.6/jq-osx-amd64.asc +16 -0
- package/deps/jq/sig/v1.6/jq-win32.exe.asc +16 -0
- package/deps/jq/sig/v1.6/jq-win64.exe.asc +16 -0
- package/deps/jq/sig/v1.6/sha256sum.txt +5 -0
- package/deps/jq/{builtin.c → src/builtin.c} +449 -344
- package/deps/jq/{builtin.h → src/builtin.h} +0 -0
- package/deps/jq/src/builtin.jq +311 -0
- package/deps/jq/{bytecode.c → src/bytecode.c} +0 -0
- package/deps/jq/{bytecode.h → src/bytecode.h} +0 -0
- package/deps/jq/{compile.c → src/compile.c} +213 -37
- package/deps/jq/{compile.h → src/compile.h} +7 -2
- package/deps/jq/{exec_stack.h → src/exec_stack.h} +0 -0
- package/deps/jq/{execute.c → src/execute.c} +127 -24
- package/deps/jq/{inject_errors.c → src/inject_errors.c} +0 -0
- package/deps/jq/{jq.h → src/jq.h} +13 -2
- package/deps/jq/{jq_parser.h → src/jq_parser.h} +0 -0
- package/deps/jq/{jq_test.c → src/jq_test.c} +1 -1
- package/deps/jq/{jv.c → src/jv.c} +24 -5
- package/deps/jq/{jv.h → src/jv.h} +46 -11
- package/deps/jq/{jv_alloc.c → src/jv_alloc.c} +0 -0
- package/deps/jq/{jv_alloc.h → src/jv_alloc.h} +0 -0
- package/deps/jq/{jv_aux.c → src/jv_aux.c} +38 -14
- package/deps/jq/{jv_dtoa.c → src/jv_dtoa.c} +4 -5
- package/deps/jq/{jv_dtoa.h → src/jv_dtoa.h} +0 -0
- package/deps/jq/src/jv_file.c +81 -0
- package/deps/jq/{jv_parse.c → src/jv_parse.c} +8 -2
- package/deps/jq/{jv_print.c → src/jv_print.c} +80 -27
- package/deps/jq/{jv_unicode.c → src/jv_unicode.c} +28 -4
- package/deps/jq/{jv_unicode.h → src/jv_unicode.h} +1 -0
- package/deps/jq/{jv_utf8_tables.h → src/jv_utf8_tables.h} +0 -0
- package/deps/jq/{lexer.c → src/lexer.c} +317 -292
- package/deps/jq/{lexer.h → src/lexer.h} +16 -12
- package/deps/jq/{lexer.l → src/lexer.l} +5 -4
- package/deps/jq/src/libm.h +291 -0
- package/deps/jq/{linker.c → src/linker.c} +5 -3
- package/deps/jq/{linker.h → src/linker.h} +0 -0
- package/deps/jq/{locfile.c → src/locfile.c} +1 -1
- package/deps/jq/{locfile.h → src/locfile.h} +0 -0
- package/deps/jq/{main.c → src/main.c} +202 -100
- package/deps/jq/{opcode_list.h → src/opcode_list.h} +4 -0
- package/deps/jq/{parser.c → src/parser.c} +1149 -1069
- package/deps/jq/{parser.h → src/parser.h} +28 -24
- package/deps/jq/{parser.y → src/parser.y} +108 -52
- package/deps/jq/{util.c → src/util.c} +12 -9
- package/deps/jq/{util.h → src/util.h} +0 -0
- package/deps/jq/tests/base64.test +35 -0
- package/deps/jq/tests/base64test +5 -0
- package/deps/jq/tests/jq-f-test.sh +4 -0
- package/deps/jq/tests/jq.test +305 -21
- package/deps/jq/tests/jqtest +1 -1
- package/deps/jq/tests/mantest +1 -1
- package/deps/jq/tests/onig.test +13 -0
- package/deps/jq/tests/onigtest +1 -1
- package/deps/jq/tests/optional.test +20 -0
- package/deps/jq/tests/optionaltest +5 -0
- package/deps/jq/tests/setup +7 -1
- package/deps/jq/tests/shtest +133 -29
- package/deps/jq/tests/utf8-truncate.jq +3 -0
- package/deps/jq/tests/utf8test +10 -0
- package/lib/index.js +7 -1
- package/package.json +3 -3
- package/test/santiy.test.js +24 -0
- package/deps/jq/docs/default_manpage.md +0 -22
- package/deps/jq/docs/public/bootstrap/css/bootstrap-responsive.css +0 -1058
- package/deps/jq/docs/public/bootstrap/css/bootstrap-responsive.min.css +0 -9
- package/deps/jq/docs/public/bootstrap/css/bootstrap.css +0 -5224
- package/deps/jq/docs/public/bootstrap/css/bootstrap.min.css +0 -9
- package/deps/jq/docs/public/bootstrap/img/glyphicons-halflings-white.png +0 -0
- package/deps/jq/docs/public/bootstrap/img/glyphicons-halflings.png +0 -0
- package/deps/jq/docs/public/bootstrap/js/bootstrap.js +0 -2027
- package/deps/jq/docs/public/bootstrap/js/bootstrap.min.js +0 -6
- package/deps/jq/docs/templates/shared/_header.liquid +0 -26
- package/deps/jq/jq.1.default +0 -39
- package/deps/jq/jv_file.c +0 -49
- package/deps/jq/libm.h +0 -160
- package/deps/jq/setup.sh +0 -33
- package/reports/jest-port-api.xml +0 -35
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
#define jq_yyHEADER_H 1
|
|
3
3
|
#define jq_yyIN_HEADER 1
|
|
4
4
|
|
|
5
|
-
#line 6 "lexer.h"
|
|
5
|
+
#line 6 "src/lexer.h"
|
|
6
6
|
|
|
7
|
-
#line 8 "lexer.h"
|
|
7
|
+
#line 8 "src/lexer.h"
|
|
8
8
|
|
|
9
9
|
#define YY_INT_ALIGNED short int
|
|
10
10
|
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
|
|
13
13
|
#define FLEX_SCANNER
|
|
14
14
|
#define YY_FLEX_MAJOR_VERSION 2
|
|
15
|
-
#define YY_FLEX_MINOR_VERSION
|
|
16
|
-
#define YY_FLEX_SUBMINOR_VERSION
|
|
15
|
+
#define YY_FLEX_MINOR_VERSION 6
|
|
16
|
+
#define YY_FLEX_SUBMINOR_VERSION 0
|
|
17
17
|
#if YY_FLEX_SUBMINOR_VERSION > 0
|
|
18
18
|
#define FLEX_BETA
|
|
19
19
|
#endif
|
|
@@ -214,7 +214,7 @@ void jq_yypop_buffer_state (yyscan_t yyscanner );
|
|
|
214
214
|
|
|
215
215
|
YY_BUFFER_STATE jq_yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
|
|
216
216
|
YY_BUFFER_STATE jq_yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
|
|
217
|
-
YY_BUFFER_STATE jq_yy_scan_bytes (yyconst char *bytes,
|
|
217
|
+
YY_BUFFER_STATE jq_yy_scan_bytes (yyconst char *bytes,yy_size_t len ,yyscan_t yyscanner );
|
|
218
218
|
|
|
219
219
|
void *jq_yyalloc (yy_size_t ,yyscan_t yyscanner );
|
|
220
220
|
void *jq_yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
|
|
@@ -222,7 +222,7 @@ void jq_yyfree (void * ,yyscan_t yyscanner );
|
|
|
222
222
|
|
|
223
223
|
/* Begin user sect3 */
|
|
224
224
|
|
|
225
|
-
#define jq_yywrap(
|
|
225
|
+
#define jq_yywrap(yyscanner) (/*CONSTCOND*/1)
|
|
226
226
|
#define YY_SKIP_YYWRAP
|
|
227
227
|
|
|
228
228
|
#define yytext_ptr yytext_r
|
|
@@ -266,19 +266,23 @@ void jq_yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
|
|
|
266
266
|
|
|
267
267
|
FILE *jq_yyget_in (yyscan_t yyscanner );
|
|
268
268
|
|
|
269
|
-
void jq_yyset_in (FILE *
|
|
269
|
+
void jq_yyset_in (FILE * _in_str ,yyscan_t yyscanner );
|
|
270
270
|
|
|
271
271
|
FILE *jq_yyget_out (yyscan_t yyscanner );
|
|
272
272
|
|
|
273
|
-
void jq_yyset_out (FILE *
|
|
273
|
+
void jq_yyset_out (FILE * _out_str ,yyscan_t yyscanner );
|
|
274
274
|
|
|
275
|
-
|
|
275
|
+
yy_size_t jq_yyget_leng (yyscan_t yyscanner );
|
|
276
276
|
|
|
277
277
|
char *jq_yyget_text (yyscan_t yyscanner );
|
|
278
278
|
|
|
279
279
|
int jq_yyget_lineno (yyscan_t yyscanner );
|
|
280
280
|
|
|
281
|
-
void jq_yyset_lineno (int
|
|
281
|
+
void jq_yyset_lineno (int _line_number ,yyscan_t yyscanner );
|
|
282
|
+
|
|
283
|
+
int jq_yyget_column (yyscan_t yyscanner );
|
|
284
|
+
|
|
285
|
+
void jq_yyset_column (int _column_no ,yyscan_t yyscanner );
|
|
282
286
|
|
|
283
287
|
YYSTYPE * jq_yyget_lval (yyscan_t yyscanner );
|
|
284
288
|
|
|
@@ -354,9 +358,9 @@ extern int jq_yylex \
|
|
|
354
358
|
#undef YY_DECL
|
|
355
359
|
#endif
|
|
356
360
|
|
|
357
|
-
#line
|
|
361
|
+
#line 130 "src/lexer.l"
|
|
358
362
|
|
|
359
363
|
|
|
360
|
-
#line
|
|
364
|
+
#line 365 "src/lexer.h"
|
|
361
365
|
#undef jq_yyIN_HEADER
|
|
362
366
|
#endif /* jq_yyHEADER_H */
|
|
@@ -71,6 +71,7 @@ struct lexer_param;
|
|
|
71
71
|
"<=" { return LESSEQ; }
|
|
72
72
|
">=" { return GREATEREQ; }
|
|
73
73
|
".." { return REC; }
|
|
74
|
+
"?//" { return ALTERNATION; }
|
|
74
75
|
"."|"?"|"="|";"|","|":"|"|"|"+"|"-"|"*"|"/"|"%"|"\$"|"<"|">" { return yytext[0];}
|
|
75
76
|
|
|
76
77
|
"["|"{"|"(" {
|
|
@@ -85,8 +86,8 @@ struct lexer_param;
|
|
|
85
86
|
yylval->literal = jv_string_sized(yytext + 1, yyleng - 1); return FORMAT;
|
|
86
87
|
}
|
|
87
88
|
|
|
88
|
-
[0-9.]+([eE][+-]?[0-9]+)? {
|
|
89
|
-
yylval->literal = jv_parse_sized(yytext, yyleng); return LITERAL;
|
|
89
|
+
[0-9.]+([eE][+-]?[0-9]+)? {
|
|
90
|
+
yylval->literal = jv_parse_sized(yytext, yyleng); return LITERAL;
|
|
90
91
|
}
|
|
91
92
|
|
|
92
93
|
"\"" {
|
|
@@ -117,7 +118,7 @@ struct lexer_param;
|
|
|
117
118
|
return INVALID_CHARACTER;
|
|
118
119
|
}
|
|
119
120
|
}
|
|
120
|
-
|
|
121
|
+
|
|
121
122
|
|
|
122
123
|
([a-zA-Z_][a-zA-Z_0-9]*::)*[a-zA-Z_][a-zA-Z_0-9]* { yylval->literal = jv_string(yytext); return IDENT;}
|
|
123
124
|
\.[a-zA-Z_][a-zA-Z_0-9]* { yylval->literal = jv_string(yytext+1); return FIELD;}
|
|
@@ -142,7 +143,7 @@ static int try_exit(int c, int state, yyscan_t yyscanner) {
|
|
|
142
143
|
case IN_BRACE: match = ret = '}'; break;
|
|
143
144
|
|
|
144
145
|
case IN_QQINTERP:
|
|
145
|
-
match = ')';
|
|
146
|
+
match = ')';
|
|
146
147
|
ret = QQSTRING_INTERP_END;
|
|
147
148
|
break;
|
|
148
149
|
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
#ifdef HAVE_ACOS
|
|
2
|
+
LIBM_DD(acos)
|
|
3
|
+
#else
|
|
4
|
+
LIBM_DD_NO(acos)
|
|
5
|
+
#endif
|
|
6
|
+
#ifdef HAVE_ACOSH
|
|
7
|
+
LIBM_DD(acosh)
|
|
8
|
+
#else
|
|
9
|
+
LIBM_DD_NO(acosh)
|
|
10
|
+
#endif
|
|
11
|
+
#ifdef HAVE_ASIN
|
|
12
|
+
LIBM_DD(asin)
|
|
13
|
+
#else
|
|
14
|
+
LIBM_DD_NO(asin)
|
|
15
|
+
#endif
|
|
16
|
+
#ifdef HAVE_ASINH
|
|
17
|
+
LIBM_DD(asinh)
|
|
18
|
+
#else
|
|
19
|
+
LIBM_DD_NO(asinh)
|
|
20
|
+
#endif
|
|
21
|
+
#ifdef HAVE_ATAN
|
|
22
|
+
LIBM_DD(atan)
|
|
23
|
+
#else
|
|
24
|
+
LIBM_DD_NO(atan)
|
|
25
|
+
#endif
|
|
26
|
+
#ifdef HAVE_ATAN2
|
|
27
|
+
LIBM_DDD(atan2)
|
|
28
|
+
#else
|
|
29
|
+
LIBM_DDD_NO(atan2)
|
|
30
|
+
#endif
|
|
31
|
+
#ifdef HAVE_ATANH
|
|
32
|
+
LIBM_DD(atanh)
|
|
33
|
+
#else
|
|
34
|
+
LIBM_DD_NO(atanh)
|
|
35
|
+
#endif
|
|
36
|
+
#ifdef HAVE_CBRT
|
|
37
|
+
LIBM_DD(cbrt)
|
|
38
|
+
#else
|
|
39
|
+
LIBM_DD_NO(cbrt)
|
|
40
|
+
#endif
|
|
41
|
+
#ifdef HAVE_COS
|
|
42
|
+
LIBM_DD(cos)
|
|
43
|
+
#else
|
|
44
|
+
LIBM_DD_NO(cos)
|
|
45
|
+
#endif
|
|
46
|
+
#ifdef HAVE_COSH
|
|
47
|
+
LIBM_DD(cosh)
|
|
48
|
+
#else
|
|
49
|
+
LIBM_DD_NO(cosh)
|
|
50
|
+
#endif
|
|
51
|
+
#ifdef HAVE_EXP
|
|
52
|
+
LIBM_DD(exp)
|
|
53
|
+
#else
|
|
54
|
+
LIBM_DD_NO(exp)
|
|
55
|
+
#endif
|
|
56
|
+
#ifdef HAVE_EXP2
|
|
57
|
+
LIBM_DD(exp2)
|
|
58
|
+
#else
|
|
59
|
+
LIBM_DD_NO(exp2)
|
|
60
|
+
#endif
|
|
61
|
+
#ifdef HAVE_FLOOR
|
|
62
|
+
LIBM_DD(floor)
|
|
63
|
+
#else
|
|
64
|
+
LIBM_DD_NO(floor)
|
|
65
|
+
#endif
|
|
66
|
+
#ifdef HAVE_HYPOT
|
|
67
|
+
LIBM_DDD(hypot)
|
|
68
|
+
#else
|
|
69
|
+
LIBM_DDD_NO(hypot)
|
|
70
|
+
#endif
|
|
71
|
+
#ifdef HAVE_J0
|
|
72
|
+
LIBM_DD(j0)
|
|
73
|
+
#else
|
|
74
|
+
LIBM_DD_NO(j0)
|
|
75
|
+
#endif
|
|
76
|
+
#ifdef HAVE_J1
|
|
77
|
+
LIBM_DD(j1)
|
|
78
|
+
#else
|
|
79
|
+
LIBM_DD_NO(j1)
|
|
80
|
+
#endif
|
|
81
|
+
#ifdef HAVE_LOG
|
|
82
|
+
LIBM_DD(log)
|
|
83
|
+
#else
|
|
84
|
+
LIBM_DD_NO(log)
|
|
85
|
+
#endif
|
|
86
|
+
#ifdef HAVE_LOG10
|
|
87
|
+
LIBM_DD(log10)
|
|
88
|
+
#else
|
|
89
|
+
LIBM_DD_NO(log10)
|
|
90
|
+
#endif
|
|
91
|
+
#ifdef HAVE_LOG2
|
|
92
|
+
LIBM_DD(log2)
|
|
93
|
+
#else
|
|
94
|
+
LIBM_DD_NO(log2)
|
|
95
|
+
#endif
|
|
96
|
+
#ifdef HAVE_POW
|
|
97
|
+
LIBM_DDD(pow)
|
|
98
|
+
#else
|
|
99
|
+
LIBM_DDD_NO(pow)
|
|
100
|
+
#endif
|
|
101
|
+
#ifdef HAVE_REMAINDER
|
|
102
|
+
LIBM_DDD(remainder)
|
|
103
|
+
#else
|
|
104
|
+
LIBM_DDD_NO(remainder)
|
|
105
|
+
#endif
|
|
106
|
+
#ifdef HAVE_SIN
|
|
107
|
+
LIBM_DD(sin)
|
|
108
|
+
#else
|
|
109
|
+
LIBM_DD_NO(sin)
|
|
110
|
+
#endif
|
|
111
|
+
#ifdef HAVE_SINH
|
|
112
|
+
LIBM_DD(sinh)
|
|
113
|
+
#else
|
|
114
|
+
LIBM_DD_NO(sinh)
|
|
115
|
+
#endif
|
|
116
|
+
#ifdef HAVE_SQRT
|
|
117
|
+
LIBM_DD(sqrt)
|
|
118
|
+
#else
|
|
119
|
+
LIBM_DD_NO(sqrt)
|
|
120
|
+
#endif
|
|
121
|
+
#ifdef HAVE_TAN
|
|
122
|
+
LIBM_DD(tan)
|
|
123
|
+
#else
|
|
124
|
+
LIBM_DD_NO(tan)
|
|
125
|
+
#endif
|
|
126
|
+
#ifdef HAVE_TANH
|
|
127
|
+
LIBM_DD(tanh)
|
|
128
|
+
#else
|
|
129
|
+
LIBM_DD_NO(tanh)
|
|
130
|
+
#endif
|
|
131
|
+
#ifdef HAVE_TGAMMA
|
|
132
|
+
LIBM_DD(tgamma)
|
|
133
|
+
#else
|
|
134
|
+
LIBM_DD_NO(tgamma)
|
|
135
|
+
#endif
|
|
136
|
+
#ifdef HAVE_Y0
|
|
137
|
+
LIBM_DD(y0)
|
|
138
|
+
#else
|
|
139
|
+
LIBM_DD_NO(y0)
|
|
140
|
+
#endif
|
|
141
|
+
#ifdef HAVE_Y1
|
|
142
|
+
LIBM_DD(y1)
|
|
143
|
+
#else
|
|
144
|
+
LIBM_DD_NO(y1)
|
|
145
|
+
#endif
|
|
146
|
+
#ifdef HAVE_JN
|
|
147
|
+
LIBM_DDD(jn)
|
|
148
|
+
#endif
|
|
149
|
+
#ifdef HAVE_YN
|
|
150
|
+
LIBM_DDD(yn)
|
|
151
|
+
#endif
|
|
152
|
+
#ifdef HAVE_CEIL
|
|
153
|
+
LIBM_DD(ceil)
|
|
154
|
+
#else
|
|
155
|
+
LIBM_DD_NO(ceil)
|
|
156
|
+
#endif
|
|
157
|
+
#ifdef HAVE_COPYSIGN
|
|
158
|
+
LIBM_DDD(copysign)
|
|
159
|
+
#else
|
|
160
|
+
LIBM_DDD_NO(copysign)
|
|
161
|
+
#endif
|
|
162
|
+
#if defined(HAVE_DREM) && !defined(WIN32)
|
|
163
|
+
LIBM_DDD(drem)
|
|
164
|
+
#else
|
|
165
|
+
LIBM_DDD_NO(drem)
|
|
166
|
+
#endif
|
|
167
|
+
#ifdef HAVE_ERF
|
|
168
|
+
LIBM_DD(erf)
|
|
169
|
+
#else
|
|
170
|
+
LIBM_DD_NO(erf)
|
|
171
|
+
#endif
|
|
172
|
+
#ifdef HAVE_ERFC
|
|
173
|
+
LIBM_DD(erfc)
|
|
174
|
+
#else
|
|
175
|
+
LIBM_DD_NO(erfc)
|
|
176
|
+
#endif
|
|
177
|
+
#if defined(HAVE_EXP10) && !defined(WIN32)
|
|
178
|
+
LIBM_DD(exp10)
|
|
179
|
+
#else
|
|
180
|
+
LIBM_DD_NO(exp10)
|
|
181
|
+
#endif
|
|
182
|
+
#ifdef HAVE_EXPM1
|
|
183
|
+
LIBM_DD(expm1)
|
|
184
|
+
#else
|
|
185
|
+
LIBM_DD_NO(expm1)
|
|
186
|
+
#endif
|
|
187
|
+
#ifdef HAVE_FABS
|
|
188
|
+
LIBM_DD(fabs)
|
|
189
|
+
#else
|
|
190
|
+
LIBM_DD_NO(fabs)
|
|
191
|
+
#endif
|
|
192
|
+
#ifdef HAVE_FDIM
|
|
193
|
+
LIBM_DDD(fdim)
|
|
194
|
+
#else
|
|
195
|
+
LIBM_DDD_NO(fdim)
|
|
196
|
+
#endif
|
|
197
|
+
#ifdef HAVE_FMA
|
|
198
|
+
LIBM_DDDD(fma)
|
|
199
|
+
#else
|
|
200
|
+
LIBM_DDDD_NO(fma)
|
|
201
|
+
#endif
|
|
202
|
+
#ifdef HAVE_FMAX
|
|
203
|
+
LIBM_DDD(fmax)
|
|
204
|
+
#else
|
|
205
|
+
LIBM_DDD_NO(fmax)
|
|
206
|
+
#endif
|
|
207
|
+
#ifdef HAVE_FMIN
|
|
208
|
+
LIBM_DDD(fmin)
|
|
209
|
+
#else
|
|
210
|
+
LIBM_DDD_NO(fmin)
|
|
211
|
+
#endif
|
|
212
|
+
#ifdef HAVE_FMOD
|
|
213
|
+
LIBM_DDD(fmod)
|
|
214
|
+
#else
|
|
215
|
+
LIBM_DDD_NO(fmod)
|
|
216
|
+
#endif
|
|
217
|
+
#ifdef HAVE_GAMMA
|
|
218
|
+
LIBM_DD(gamma)
|
|
219
|
+
#else
|
|
220
|
+
LIBM_DD_NO(gamma)
|
|
221
|
+
#endif
|
|
222
|
+
#ifdef HAVE_LGAMMA
|
|
223
|
+
LIBM_DD(lgamma)
|
|
224
|
+
#else
|
|
225
|
+
LIBM_DD_NO(lgamma)
|
|
226
|
+
#endif
|
|
227
|
+
#ifdef HAVE_LOG1P
|
|
228
|
+
LIBM_DD(log1p)
|
|
229
|
+
#else
|
|
230
|
+
LIBM_DD_NO(log1p)
|
|
231
|
+
#endif
|
|
232
|
+
#ifdef HAVE_LOGB
|
|
233
|
+
LIBM_DD(logb)
|
|
234
|
+
#else
|
|
235
|
+
LIBM_DD_NO(logb)
|
|
236
|
+
#endif
|
|
237
|
+
#ifdef HAVE_NEARBYINT
|
|
238
|
+
LIBM_DD(nearbyint)
|
|
239
|
+
#else
|
|
240
|
+
LIBM_DD_NO(nearbyint)
|
|
241
|
+
#endif
|
|
242
|
+
#ifdef HAVE_NEXTAFTER
|
|
243
|
+
LIBM_DDD(nextafter)
|
|
244
|
+
#else
|
|
245
|
+
LIBM_DDD_NO(nextafter)
|
|
246
|
+
#endif
|
|
247
|
+
#ifdef HAVE_NEXTTOWARD
|
|
248
|
+
LIBM_DDD(nexttoward)
|
|
249
|
+
#else
|
|
250
|
+
LIBM_DDD_NO(nexttoward)
|
|
251
|
+
#endif
|
|
252
|
+
#if defined(HAVE_POW10) && !defined(WIN32)
|
|
253
|
+
LIBM_DD(pow10)
|
|
254
|
+
#else
|
|
255
|
+
LIBM_DD_NO(pow10)
|
|
256
|
+
#endif
|
|
257
|
+
#ifdef HAVE_RINT
|
|
258
|
+
LIBM_DD(rint)
|
|
259
|
+
#else
|
|
260
|
+
LIBM_DD_NO(rint)
|
|
261
|
+
#endif
|
|
262
|
+
#ifdef HAVE_ROUND
|
|
263
|
+
LIBM_DD(round)
|
|
264
|
+
#else
|
|
265
|
+
LIBM_DD_NO(round)
|
|
266
|
+
#endif
|
|
267
|
+
#ifdef HAVE_SCALB
|
|
268
|
+
LIBM_DDD(scalb)
|
|
269
|
+
#else
|
|
270
|
+
LIBM_DDD_NO(scalb)
|
|
271
|
+
#endif
|
|
272
|
+
#ifdef HAVE_SCALBLN
|
|
273
|
+
LIBM_DDD(scalbln)
|
|
274
|
+
#else
|
|
275
|
+
LIBM_DDD_NO(scalbln)
|
|
276
|
+
#endif
|
|
277
|
+
#if defined(HAVE_SIGNIFICAND) && !defined(WIN32)
|
|
278
|
+
LIBM_DD(significand)
|
|
279
|
+
#else
|
|
280
|
+
LIBM_DD_NO(significand)
|
|
281
|
+
#endif
|
|
282
|
+
#ifdef HAVE_TRUNC
|
|
283
|
+
LIBM_DD(trunc)
|
|
284
|
+
#else
|
|
285
|
+
LIBM_DD_NO(trunc)
|
|
286
|
+
#endif
|
|
287
|
+
#ifdef HAVE_LDEXP
|
|
288
|
+
LIBM_DDD(ldexp)
|
|
289
|
+
#else
|
|
290
|
+
LIBM_DDD_NO(ldexp)
|
|
291
|
+
#endif
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
#include <libgen.h>
|
|
10
10
|
|
|
11
11
|
#ifdef WIN32
|
|
12
|
-
#include <windows.h>
|
|
13
12
|
#include <shlwapi.h>
|
|
14
13
|
#endif
|
|
15
14
|
|
|
@@ -20,6 +19,7 @@
|
|
|
20
19
|
#include "parser.h"
|
|
21
20
|
#include "util.h"
|
|
22
21
|
#include "compile.h"
|
|
22
|
+
#include "jv_alloc.h"
|
|
23
23
|
|
|
24
24
|
struct lib_loading_state {
|
|
25
25
|
char **names;
|
|
@@ -279,6 +279,8 @@ static int process_dependencies(jq_state *jq, jv jq_origin, jv lib_origin, block
|
|
|
279
279
|
if (nerrors == 0) {
|
|
280
280
|
// Bind the library to the program
|
|
281
281
|
bk = block_bind_library(dep_def_block, bk, OP_IS_CALL_PSEUDO, as_str);
|
|
282
|
+
if (is_data)
|
|
283
|
+
bk = block_bind_library(dep_def_block, bk, OP_IS_CALL_PSEUDO, NULL);
|
|
282
284
|
}
|
|
283
285
|
}
|
|
284
286
|
jv_free(as);
|
|
@@ -325,8 +327,8 @@ static int load_library(jq_state *jq, jv lib_path, int is_data, int raw, const c
|
|
|
325
327
|
}
|
|
326
328
|
}
|
|
327
329
|
state_idx = lib_state->ct++;
|
|
328
|
-
lib_state->names =
|
|
329
|
-
lib_state->defs =
|
|
330
|
+
lib_state->names = jv_mem_realloc(lib_state->names, lib_state->ct * sizeof(const char *));
|
|
331
|
+
lib_state->defs = jv_mem_realloc(lib_state->defs, lib_state->ct * sizeof(block));
|
|
330
332
|
lib_state->names[state_idx] = strdup(jv_string_value(lib_path));
|
|
331
333
|
lib_state->defs[state_idx] = program;
|
|
332
334
|
*out_block = program;
|
|
File without changes
|
|
@@ -21,7 +21,7 @@ struct locfile* locfile_init(jq_state *jq, const char *fname, const char* data,
|
|
|
21
21
|
for (int i=0; i<length; i++) {
|
|
22
22
|
if (data[i] == '\n') l->nlines++;
|
|
23
23
|
}
|
|
24
|
-
l->linemap =
|
|
24
|
+
l->linemap = jv_mem_calloc(sizeof(int), (l->nlines + 1));
|
|
25
25
|
l->linemap[0] = 0;
|
|
26
26
|
int line = 1;
|
|
27
27
|
for (int i=0; i<length; i++) {
|
|
File without changes
|