William Langford
2e01ff1fb6
Release jq-1.6
2018-11-01 21:49:29 -04:00
William Langford
3daecb246a
Update website with details for jq-1.6
2018-11-01 21:48:34 -04:00
William Langford
cd4f61aee6
Fix website whitespace
2018-10-21 23:28:43 -04:00
William Langford
39a3e2c46f
Add documentation for destructuring alternation
2018-10-21 23:28:43 -04:00
William Langford
341a5fcab3
Fix osx travis build
2018-08-30 22:03:32 -04:00
William Langford
dd4cec664c
fix memory leak
2018-08-30 21:09:04 -04:00
William Langford
46d1ce2667
Restore JV_PRINT_COLOUR as an alias
...
JV_PRINT_COLOUR was part of the public libjq headers and was removed as
part of 2d05b54 . While JV_PRINT_COLOR is definitely the preferred
spelling this side of the pond, we shouldn't just remove otherwise
exposed enum values.
2018-08-17 23:23:10 -04:00
William Langford
0673dee1b3
Fix destructuring alternation
...
Attempting to use the existing FORK_OPT opcode resulted in difficulty
knowing when to pop an error message off the stack and when not to. This
commit makes DESTRUCTURE_ALT a real opcode that is identical to
FORK_OPT, except for never pushing the error message onto the stack when
continuing from an error backtrack.
Some small changes were necessary to the DUP/POP behavior surrounding
destructuring to accomodate this.
2018-08-17 23:15:48 -04:00
William Langford
3dc5f4e948
Create issue template
2018-08-17 09:15:08 -04:00
William Langford
79ece35981
Fix hang for slurped inputs with trailing newline
2017-12-04 20:10:56 -05:00
William Langford
f06deb828a
Fix #1534
2017-12-04 19:20:58 -05:00
William Langford
0c9eacedaa
Actually fix the strptime tests
...
This has been a complicated issue to fix for a number of reasons.
The core of it is that the behavior is different between different
versions of macOS, some of which set possible-but-incorrect values.
This commit addresses the issue by always using our computation for
tm_wday and tm_yday on macOS. As a side-effect, strptime format
strings that specify %u and %j will no longer work on macOS.
2017-11-29 20:47:56 -05:00
William Langford
98b36e74b8
Fix strptime tests on macOS 10.12
...
Dates in 1900 are before the Unix epoch. We shouldn't make any promises
about how well they are supported, especially given that our time
support is a thin wrapper over the libc functions.
This changes the test to use dates after the epoch, which should fit
within both a signed and an unsigned 32-bit time_t.
2017-11-27 22:57:50 -05:00
William Langford
c3cbbdd8a2
Fix memory leaks in various c-coded builtins
2017-11-27 20:37:14 -05:00
William Langford
7b81a836c3
Merge pull request #1403 from Argoday/master
...
Use unsorted keys in walk
2017-06-19 10:55:26 -04:00
William Langford
76b1fc18f1
Update oniguruma to fix #1370
2017-04-02 14:58:59 -04:00
William Langford
405071337d
Don't require java to build gh-pages
2017-03-31 18:48:28 -04:00
William Langford
151b494382
Add collect example with pipeline
2017-03-31 18:48:05 -04:00
William Langford
12f74b226e
Add missing close-backtick in docs
2017-03-30 22:23:47 -04:00
William Langford
94035be3fa
Add --debug-trace=all for detailed debug output
...
When tracing execution, print the whole stack, not just the items used by the
current opcode
2017-03-26 05:36:22 -05:00
William Langford
c8a2a0acc2
Fix a tripped assertion when generating reduces
...
A noop body, while useless, should still compile successfully
2017-03-26 05:36:22 -05:00
William Langford
3a8c8f4747
Add alternation destructuring operator ?//
...
This is a first pass to show the implementation.
It needs tests and evaluation, but doesn't break any existing tests.
NOT READY FOR MERGING
2017-03-26 05:36:22 -05:00
William Langford
63791b795a
Fix name of builtins in the builtins/0 output
2017-02-26 19:50:10 -05:00
William Langford
1c806b74ea
Add builtins builtin
2017-02-13 11:36:20 -05:00
William Langford
8001955fb7
Fix memory leak in libm cfunctions
2017-02-13 11:36:20 -05:00
William Langford
e6fa039f3f
Merge pull request #1089 from l8nite/base64_decode
2017-02-12 16:25:44 -05:00
William Langford
d2c3cf49e1
Merge pull request #1317 from wtlangford/dont-split-utf8-sequences
...
Handle cut-off UTF-8 sequences when reading files
2017-01-27 21:45:15 -05:00
William Langford
e84d17196c
Handle cut-off UTF-8 sequences when reading files
...
Read additional bytes from the file to complete the UTF-8 sequence so the bytes
in it don't get converted to U+FFFD replacement characters.
2017-01-27 21:04:26 -05:00
William Langford
0f7759f831
Fix #735
2015-03-23 22:11:55 -04:00
William Langford
2e92c3e568
Merge pull request #678 from isomorphisms/patch-1
...
readability
2015-01-27 14:15:07 -05:00
William Langford
30e00820a7
Fix #600 . Add regression test
2014-11-12 20:46:34 -05:00
William Langford
3411167c03
Properly call onig_error_code_to_str
...
Fix #585
2014-10-06 21:48:56 -04:00
William Langford
f7a2af7052
Properly handle when objects cannot be folded
...
Fix #579 .
2014-09-22 20:14:46 -04:00
William Langford
d177944b75
Properly handle incomplete json when input is file
...
Fix #562
2014-08-28 21:52:45 -04:00
William Langford
6744664ff4
Actually check version for bison.
...
Clean up oniguruma checks.
2014-08-06 12:26:34 -04:00
William Langford
ef5bd5a6de
Merge pull request #532 from wtlangford/top-removal
...
Remove duplicate TOP insertions, drop unused defs.
2014-08-05 13:41:59 -04:00
William Langford
c3d6d5fd37
Merge pull request #523 from eproxus/patch-1
...
Add example of selecting object with keys
2014-08-05 00:50:21 -04:00
William Langford
a25950a58c
Remove duplicate TOP insertions, drop unused defs.
2014-08-05 00:46:10 -04:00
William Langford
14bc1f6526
Fixing crash when a library's dependency could not be loaded.
...
Signed-off-by: Nicolas Williams <nico@cryptonector.com >
2014-07-27 17:51:48 -05:00
William Langford
0f89270d08
Changing color codes to fix #495
2014-07-22 23:05:43 -05:00
William Langford
38b939688a
Added library system with -l, -L, and JQ_LIBRARY_PATH
...
Created util.[ch] to hold common utilities.
2014-07-22 22:51:11 -05:00
William Langford
d0ca11d665
Add support for negative indices for .[]; fix #462
...
Signed-off-by: Nicolas Williams <nico@cryptonector.com >
2014-07-06 01:40:22 -05:00
William Langford
9f4d7e2fb8
Fixed base64 issue with UTF-8 strings
...
Signed-off-by: Nicolas Williams <nico@cryptonector.com >
2014-07-01 22:56:13 -05:00
William Langford
e1c5a2f575
Added cross-compilation script to build libjq for iOS.
...
Signed-off-by: Nicolas Williams <nico@cryptonector.com >
2014-06-30 20:02:19 -05:00
William Langford
8ff935c01a
Added regex support as per issue #164 .
...
jq now depends on oniguruma for regex support.
Modified configure.ac accordingly.
Added valgrind suppression file for oniguruma to prevent one-time and bounded
leaks from causing tests to fail.
Signed-off-by: Nicolas Williams <nico@cryptonector.com >
2014-06-18 21:02:47 -05:00