1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

888 Commits

Author SHA1 Message Date
f9f4d2d1e5 Dockerfile reorganized
* Remove excess layer creation
  This is an antipattern in Docker.
* Remove build tools once build is complete
  Leaving them around is not necessary and expands the image size 5x
* Make check works with libonig installed
* Compiles statically (needs libonig to be built rather than installed)
* Valgrind doesn't work with the use of TLS in jq so it's disabled -- this
  might be a FIXME situation; I'm not familiar enough with valgrind to
  say whether this is expected
* Make entrypoint be the jq binary so that the image can also be used
  to run jq in environments where you don't want to or can't install
  jq (such as CoreOS).
2015-07-10 07:15:44 -07:00
b74379532d Fixing missing D in LIBM_DDD_NO macro name 2015-07-09 14:59:37 -04:00
1e5e0c9fe2 Make jq.h usable from C++
Previously, with clang++:
jq.h:46:37: error: typedef redefinition with different
      types ('struct jq_util_input_state *' vs 'jq_util_input_state')

With g++:
jq.h:46:37: error: conflicting declaration
      ‘typedef struct jq_util_input_state* jq_util_input_state’

This typedef was added to libjq by commit 0d41447 which was
after the 1.4 release, so although it is a public API, this
is not a backcompat break because it has never been in a
release.

Specifying the "*" at all uses of jq_util_input_state is
slightly tedious, but jq_state already works that way, so at
least it will be consistent.
2015-07-04 15:08:01 -07:00
05899f8b3e Fix Windows build 2015-07-04 13:45:24 -05:00
a2a6f2d896 Document math support 2015-07-03 21:19:01 -05:00
1c350c67d7 Remove pow10 for now; CHECK_MATH_FUNC needs work
The CHECK_MATH_FUNC() m4 macro needs work.  It should use
AC_RUN_IFELSE(), not just AC_LINK_IFELSE(), and it should #define
_GNU_SOURCE and/or other such feature macros in the prologue to get
non-standard math functions (alternatvely jq should only support
standard math functions).
2015-07-03 21:13:13 -05:00
2348b7245e docs and diagram for exec_stack 2015-07-02 23:58:07 -07:00
6e27de4f74 strftime wrong day-of-week (fix #838) 2015-07-01 20:37:16 -07:00
e5dafaea44 Document --run-tests 2015-06-28 13:57:02 -05:00
fd4f4f2087 Make --run-tests' jv_test() quiet 2015-06-28 13:39:32 -05:00
6c89186437 Make --run-tests less verbose by default
Adding --debug-trace or --debug-dump-disasm before --run-tests now makes
it verbose.
2015-06-27 23:31:44 -05:00
32c4759e6b Add more basic number tests 2015-06-27 23:15:16 -05:00
6366cfd7a4 Add pow, better libm detection (fix #443) 2015-06-27 23:14:46 -05:00
9985c01975 gcov exclusions 2015-06-27 14:48:13 -07:00
e6371712ff flag to enable gcov and coveralls 2015-06-27 11:25:01 -07:00
d7e35101c5 add configure option to run tests without valgrind 2015-06-27 11:24:53 -07:00
1defaa7b00 Fix braino in merging the previous commit
There's a mantest that shows how to use `env`.  Well, we need to set the
env var as expected then, else it will fail.
2015-06-27 13:00:41 -05:00
815b4c9772 get Travis CI working 2015-06-27 12:40:01 -05:00
aaf305868c Restore import into caller's namespace 2015-06-26 23:40:37 -05:00
8cc31f0f49 Slight re-phrasing of module docs 2015-06-26 23:38:24 -05:00
a011ac6392 Use set -u in tests/setup 2015-06-26 23:36:34 -05:00
505e23124f Fix #830 2015-06-26 21:24:01 -05:00
e7f6d1e6d0 Update Adavanced section of manual 2015-06-26 21:19:29 -05:00
a220482de6 Document {$var} 2015-06-26 21:18:58 -05:00
e16bd17571 Add {$var} . as {$var} syntax (fix #831) 2015-06-26 20:45:14 -05:00
25d47ca08e Add streaming utilities (fix #827) 2015-06-26 20:45:06 -05:00
5108a451ca Alternative implementation of tovalues 2015-06-26 20:17:02 -05:00
ec7647c4ab Add combinations/0 and combinations/1 2015-06-23 10:59:58 -05:00
8aecf82bfe WriteFile() on WIN32 when stdout isatty (fix #824)
Use WriteFile() and bypass stdio IFF stdout isatty and we're on Windows.
2015-06-22 20:47:47 -05:00
10cbb9b580 Fix test failure introduced by previous commit 2015-06-22 18:32:28 -05:00
4a316fbb5a fix errors flagged by clang static analyzer
builtin.c: bug - free of uninitialized jv
compile.c: missing assertion
jq_test.c: buggy logic / unreachable code
jv.c: missing assertion
jv_alloc.c: false positive - intentional read of uninitialized memory
jv_file.c: dead code
2015-06-20 16:08:56 -05:00
7811ef1e17 Fix #811: use CommandLineToArgvW() and _wfopen() 2015-06-19 18:54:44 -05:00
b04cd6aada fix use after free in f_strptime 2015-06-19 00:34:27 -05:00
1146b8b84a separate jq, oniguruma, sh, and man tests 2015-06-18 23:55:43 -05:00
292f2d3208 argv[] may not be UTF-8 (fix #811) 2015-06-18 21:31:22 -05:00
3cbefde376 Add alloca() discovery to configure.ac
The build failed on FreeBSD as there is no alloca.h.  This patch is
lifted from the autoconf documentation.
2015-06-18 19:19:15 -05:00
0b42457929 Fix finites 2015-06-18 10:14:52 -05:00
51a81c96f1 fix broken tests in manual.yml 2015-06-18 00:06:52 -05:00
6083581fea Fix #802 2015-06-18 00:03:46 -05:00
164b877bfa Add isnormal and related, rename *inf 2015-06-17 23:14:26 -05:00
b9c2a326ba Fix #814: raise on div-0, add inf isinf nan isnan 2015-06-17 19:58:55 -05:00
bdc1feb50e Fix infinite loop on error in sequence parser 2015-06-17 19:58:49 -05:00
4ef04e5b5c Sequence parser: wait for RS on startup (fix #687)
Per-RFC7464.
2015-06-17 11:24:34 -05:00
0f5345e515 Fix infinite loop on EOF bug 2015-06-17 11:23:58 -05:00
c95b4a8ab4 Add Missing Makefile Dependency
main.c requires version.h, but there is no logic marking this dependency
in the Makefile. This commit adds the dependency to the Makefile
template.
2015-06-09 19:01:20 -05:00
520b429ca0 Clarify array destructuring docs 2015-06-09 17:29:48 -05:00
d3343d5113 array and object destructuring (fix #533)
`. as [$i, $j, $k] | ...`
`. as {a: $i, b: $j} | ...`
`. as [[[$i]], {a: $j}] | ...`
`foreach . as [$i, $j, $k] (...)`
`reduce . as {a: $i, b: $j} (...)`
2015-06-09 17:29:48 -05:00
2e96fb2c9b Remove extension from links
The downloads are available without an extension.
2015-06-08 21:30:40 -05:00
24a5e5b1b1 Add --tab and -indent n options 2015-06-03 20:20:11 -05:00
74ecb88935 Improve usage message 2015-05-29 15:35:30 -05:00