Nicolas Williams [Sun, 16 Aug 2015 05:03:10 +0000 (00:03 -0500)]
Fix linker.c includes for win32 (fix #911)
David Tolnay [Sat, 15 Aug 2015 20:12:58 +0000 (13:12 -0700)]
Update gems
I updated some of these gems for a different project, and
suddenly `rake build` was giving very different output
compared to the current gh-pages. This commit makes sure
everyone updating gh-pages is using reasonably similar
versions, so we avoid spurious diffs.
David Tolnay [Sat, 15 Aug 2015 19:07:00 +0000 (12:07 -0700)]
Use https where possible
Conflicts:
docs/content/2.download/default.yml
docs/content/index/index.yml
docs/default_manpage.md
docs/templates/index.liquid
docs/templates/shared/_header.liquid
Nicolas Williams [Fri, 14 Aug 2015 04:38:14 +0000 (23:38 -0500)]
Fix streaming docs errors (fix #904)
David Tolnay [Wed, 12 Aug 2015 05:02:53 +0000 (22:02 -0700)]
Update wording and json bodies in tutorial
pkoppstein [Tue, 11 Aug 2015 17:37:07 +0000 (13:37 -0400)]
spelling corrections; untabify
Conflicts:
docs/content/3.manual/manual.yml
Nicolas Williams [Tue, 11 Aug 2015 23:04:39 +0000 (18:04 -0500)]
Improve assignment docs (see #897)
Nicolas Williams [Tue, 11 Aug 2015 22:40:39 +0000 (17:40 -0500)]
Test main.c fix for #817
Nicolas Williams [Tue, 11 Aug 2015 05:45:22 +0000 (00:45 -0500)]
Make search path expansion portable (fix #817)
This is part 2 of the fix to #817. Part 1 is the previous commit.
Nicolas Williams [Tue, 11 Aug 2015 05:33:21 +0000 (00:33 -0500)]
Make all global module paths absolute (fix #817)
This is part 1 of the fix for #817. The next commit is part 2.
Nicolas Williams [Tue, 11 Aug 2015 22:41:25 +0000 (17:41 -0500)]
Fix #896, double-free in `setpath`
pkoppstein [Wed, 5 Aug 2015 01:40:16 +0000 (21:40 -0400)]
Clarify documentation of STRING * INTEGER
Nicolas Williams [Tue, 28 Jul 2015 05:28:54 +0000 (00:28 -0500)]
OS X's mktemp -d requires template (fix #876)
Nicolas Williams [Tue, 28 Jul 2015 05:09:46 +0000 (00:09 -0500)]
Add missing files (fix #875)
Nicolas Williams [Mon, 27 Jul 2015 04:26:30 +0000 (23:26 -0500)]
Fix make dist (fix #870)
David Tolnay [Sat, 25 Jul 2015 15:53:28 +0000 (08:53 -0700)]
Error on bytecodes longer than 0xFFFF (fix #269)
This lets us use uint16_t for the program counter. JVM
languages have the same limit on method size so it is a
reasonable limit.
David Tolnay [Sun, 26 Jul 2015 16:37:32 +0000 (09:37 -0700)]
Drop plus from "jq 1.5+" on download page
See https://github.com/stedolan/jq/issues/488#issuecomment-
124998113
David Tolnay [Sun, 26 Jul 2015 08:27:14 +0000 (01:27 -0700)]
News is not THIS important
David Tolnay [Sun, 26 Jul 2015 08:26:13 +0000 (01:26 -0700)]
Add 1.4 and 1.3 manuals to website (fix #866)
David Tolnay [Sun, 26 Jul 2015 06:44:52 +0000 (23:44 -0700)]
Suggest --disable-maintainer-mode on download page
David Tolnay [Sat, 25 Jul 2015 06:25:55 +0000 (23:25 -0700)]
Update setup.sh script
Adjust what gets cleaned up now that ChangeLog and
config/.gitignore are checked into the repo, and skip
install and distcheck steps.
David Tolnay [Sat, 25 Jul 2015 05:52:04 +0000 (22:52 -0700)]
Change homepage .com -> .io
The .com redirects to .io, but might as well have the
correct one to begin with.
David Tolnay [Sat, 25 Jul 2015 05:47:05 +0000 (22:47 -0700)]
Change AC bug-report parameter to point to GitHub
This affects where `make check` tells you to report failures.
Santiago Lapresta [Sun, 28 Jun 2015 21:11:09 +0000 (23:11 +0200)]
Implement flatten/0 in terms of flatten/1
David Tolnay [Thu, 23 Jul 2015 03:48:26 +0000 (20:48 -0700)]
detect invalid path expression (fix #862)
pkoppstein [Sat, 3 Jan 2015 06:05:04 +0000 (01:05 -0500)]
simplify implementation of bsearch to use "until" and avoid "last"; tested
David Tolnay [Fri, 24 Jul 2015 16:01:21 +0000 (09:01 -0700)]
Rebuild jq.1.prebuilt
Evan Zacks [Fri, 24 Jul 2015 14:18:12 +0000 (10:18 -0400)]
fix references to --color-output
Thomas R. Hall [Fri, 17 Oct 2014 09:45:24 +0000 (16:45 +0700)]
Updated v1.3 filenames
The jq 1.3 filenames for Windows are jq-1.3.exe instead of jq.exe. Updated these so they no longer return a 404.
David Tolnay [Fri, 24 Jul 2015 04:26:18 +0000 (21:26 -0700)]
Copy over changes made to gh-pages directly
This includes the following commits from the gh-pages branch:
-
63e80b8
-
d24a397
-
9796cd6
-
ee21707
-
ccb0f1d
-
200e6b3
-
64134c0
-
57152d2
-
8ffbfa3
David Tolnay [Sun, 19 Jul 2015 06:44:06 +0000 (23:44 -0700)]
Resolve remaining shift/reduce conflicts involving '?'
By lowering the precedence of rules that should never use
the generic Exp '?' rule.
David Tolnay [Sun, 19 Jul 2015 04:57:20 +0000 (21:57 -0700)]
Resolve shift/reduce conflict of 'def' vs '|'
This was an important conflict. In the following expression:
def a: 0; . | a
Bison needs to decide between these two equally valid
parses:
(def a: 0; .) | a
def a: 0; (. | a)
For jq we want the second one, because the first results in
"a/0 is not defined". In the current parser the first parse
is a reduce and the second parse is a shift. Since Bison
prefers to shift in shift/reduce conflicts, we accidentally
got the correct behavior.
This commit adds a precedence level FUNCDEF which is lower
precedence than '|', meaning we explicitly choose the
correct parse.
Of course many unit tests already cover this case, but I
added one specifically for it.
David Tolnay [Sun, 19 Jul 2015 16:36:16 +0000 (09:36 -0700)]
Clean up trailing whitespace
Nicolas Williams [Sun, 19 Jul 2015 02:12:08 +0000 (21:12 -0500)]
Use =, not ==, for shell tests
David Tolnay [Fri, 10 Jul 2015 20:10:06 +0000 (13:10 -0700)]
travis has whitelisted libonig-dev
https://github.com/travis-ci/travis-ci/issues/4123
Nicolas Williams [Fri, 10 Jul 2015 17:32:11 +0000 (12:32 -0500)]
input_filename should never empty
Nicolas Williams [Fri, 10 Jul 2015 17:28:21 +0000 (12:28 -0500)]
Update AUTHORS
Nicolas Williams [Fri, 10 Jul 2015 16:26:29 +0000 (11:26 -0500)]
Update NEWS
Nicolas Williams [Fri, 10 Jul 2015 16:12:24 +0000 (11:12 -0500)]
Update ChangeLog
Nicolas Williams [Fri, 10 Jul 2015 15:11:51 +0000 (10:11 -0500)]
Use `include` for import into namespace
Nicolas Williams [Fri, 10 Jul 2015 15:11:30 +0000 (10:11 -0500)]
Simplify import docs
Nicolas Williams [Fri, 10 Jul 2015 15:10:28 +0000 (10:10 -0500)]
Fix typo in docs
James Andariese [Tue, 7 Jul 2015 01:55:44 +0000 (18:55 -0700)]
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).
Mike Fletcher [Thu, 9 Jul 2015 18:59:37 +0000 (14:59 -0400)]
Fixing missing D in LIBM_DDD_NO macro name
David Tolnay [Sat, 4 Jul 2015 21:56:07 +0000 (14:56 -0700)]
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.
Nicolas Williams [Sat, 4 Jul 2015 18:45:24 +0000 (13:45 -0500)]
Fix Windows build
Nicolas Williams [Sat, 4 Jul 2015 02:19:01 +0000 (21:19 -0500)]
Document math support
Nicolas Williams [Sat, 4 Jul 2015 02:13:13 +0000 (21:13 -0500)]
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).
David Tolnay [Fri, 3 Jul 2015 06:46:31 +0000 (23:46 -0700)]
docs and diagram for exec_stack
David Tolnay [Tue, 30 Jun 2015 15:24:26 +0000 (08:24 -0700)]
strftime wrong day-of-week (fix #838)
Nicolas Williams [Sun, 28 Jun 2015 18:57:02 +0000 (13:57 -0500)]
Document --run-tests
Nicolas Williams [Sun, 28 Jun 2015 18:39:32 +0000 (13:39 -0500)]
Make --run-tests' jv_test() quiet
Nicolas Williams [Sun, 28 Jun 2015 04:31:44 +0000 (23:31 -0500)]
Make --run-tests less verbose by default
Adding --debug-trace or --debug-dump-disasm before --run-tests now makes
it verbose.
Nicolas Williams [Sun, 28 Jun 2015 04:15:16 +0000 (23:15 -0500)]
Add more basic number tests
Nicolas Williams [Sun, 28 Jun 2015 04:14:46 +0000 (23:14 -0500)]
Add `pow`, better libm detection (fix #443)
David Tolnay [Sat, 27 Jun 2015 20:48:54 +0000 (13:48 -0700)]
gcov exclusions
David Tolnay [Sat, 27 Jun 2015 17:16:13 +0000 (10:16 -0700)]
flag to enable gcov and coveralls
David Tolnay [Sat, 27 Jun 2015 16:52:12 +0000 (09:52 -0700)]
add configure option to run tests without valgrind
Nicolas Williams [Sat, 27 Jun 2015 18:00:41 +0000 (13:00 -0500)]
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.
David Tolnay [Sun, 21 Jun 2015 05:44:09 +0000 (22:44 -0700)]
get Travis CI working
Nicolas Williams [Sat, 27 Jun 2015 04:40:37 +0000 (23:40 -0500)]
Restore import into caller's namespace
Nicolas Williams [Sat, 27 Jun 2015 04:38:24 +0000 (23:38 -0500)]
Slight re-phrasing of module docs
Nicolas Williams [Sat, 27 Jun 2015 04:36:34 +0000 (23:36 -0500)]
Use set -u in tests/setup
Nicolas Williams [Sat, 27 Jun 2015 02:24:01 +0000 (21:24 -0500)]
Fix #830
Nicolas Williams [Sat, 27 Jun 2015 02:19:29 +0000 (21:19 -0500)]
Update Adavanced section of manual
Nicolas Williams [Sat, 27 Jun 2015 02:18:58 +0000 (21:18 -0500)]
Document `{$var}`
Nicolas Williams [Sat, 27 Jun 2015 01:29:04 +0000 (20:29 -0500)]
Add `{$var}` `. as {$var}` syntax (fix #831)
Nicolas Williams [Sat, 27 Jun 2015 01:16:23 +0000 (20:16 -0500)]
Add streaming utilities (fix #827)
Nicolas Williams [Sat, 27 Jun 2015 01:15:04 +0000 (20:15 -0500)]
Alternative implementation of tovalues
Santiago Lapresta [Thu, 4 Jun 2015 16:30:38 +0000 (18:30 +0200)]
Add combinations/0 and combinations/1
Nicolas Williams [Mon, 22 Jun 2015 23:15:51 +0000 (18:15 -0500)]
WriteFile() on WIN32 when stdout isatty (fix #824)
Use WriteFile() and bypass stdio IFF stdout isatty and we're on Windows.
Nicolas Williams [Mon, 22 Jun 2015 23:32:28 +0000 (18:32 -0500)]
Fix test failure introduced by previous commit
David Tolnay [Fri, 19 Jun 2015 17:33:35 +0000 (10:33 -0700)]
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
Nicolas Williams [Fri, 19 Jun 2015 22:10:45 +0000 (17:10 -0500)]
Fix #811: use CommandLineToArgvW() and _wfopen()
David Tolnay [Fri, 19 Jun 2015 05:15:41 +0000 (22:15 -0700)]
fix use after free in f_strptime
David Tolnay [Fri, 19 Jun 2015 02:38:25 +0000 (19:38 -0700)]
separate jq, oniguruma, sh, and man tests
Nicolas Williams [Fri, 19 Jun 2015 02:24:41 +0000 (21:24 -0500)]
argv[] may not be UTF-8 (fix #811)
Doug Luce [Thu, 18 Jun 2015 18:07:16 +0000 (11:07 -0700)]
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.
Nicolas Williams [Thu, 18 Jun 2015 15:14:52 +0000 (10:14 -0500)]
Fix `finites`
David Tolnay [Thu, 18 Jun 2015 04:49:56 +0000 (21:49 -0700)]
fix broken tests in manual.yml
Nicolas Williams [Thu, 18 Jun 2015 05:03:46 +0000 (00:03 -0500)]
Fix #802
Nicolas Williams [Thu, 18 Jun 2015 04:14:26 +0000 (23:14 -0500)]
Add isnormal and related, rename *inf
Nicolas Williams [Thu, 18 Jun 2015 00:46:57 +0000 (19:46 -0500)]
Fix #814: raise on div-0, add inf isinf nan isnan
Nicolas Williams [Thu, 18 Jun 2015 00:46:15 +0000 (19:46 -0500)]
Fix infinite loop on error in sequence parser
Nicolas Williams [Wed, 17 Jun 2015 16:24:34 +0000 (11:24 -0500)]
Sequence parser: wait for RS on startup (fix #687)
Per-RFC7464.
Nicolas Williams [Wed, 17 Jun 2015 16:23:58 +0000 (11:23 -0500)]
Fix infinite loop on EOF bug
Aaron Peschel [Tue, 9 Jun 2015 23:45:06 +0000 (16:45 -0700)]
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.
Nicolas Williams [Tue, 9 Jun 2015 22:29:37 +0000 (17:29 -0500)]
Clarify array destructuring docs
David Tolnay [Mon, 8 Jun 2015 04:45:14 +0000 (21:45 -0700)]
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} (...)`
cdnbacon [Tue, 2 Jun 2015 19:00:14 +0000 (15:00 -0400)]
Remove extension from links
The downloads are available without an extension.
Nicolas Williams [Thu, 4 Jun 2015 01:20:11 +0000 (20:20 -0500)]
Add --tab and -indent n options
Nicolas Williams [Fri, 29 May 2015 20:35:30 +0000 (15:35 -0500)]
Improve usage message
Nicolas Williams [Fri, 29 May 2015 20:25:30 +0000 (15:25 -0500)]
Fixup --slurpfile/argile docs
Nicolas Williams [Fri, 29 May 2015 19:19:23 +0000 (14:19 -0500)]
Add --slurpfile
Nicolas Williams [Fri, 29 May 2015 16:50:08 +0000 (11:50 -0500)]
Better handling of stdout errors
Nicolas Williams [Fri, 29 May 2015 16:49:45 +0000 (11:49 -0500)]
Fix --argfile memleak (fix #799 part 2)
Nicolas Williams [Fri, 29 May 2015 16:48:10 +0000 (11:48 -0500)]
Fix jv_load_file() (partial fix #799)
Nicolas Williams [Fri, 29 May 2015 15:38:08 +0000 (10:38 -0500)]
Revert "Fix #705 (--argfile weirdness)"
This reverts commit
3d2ab93b116f966b071e835a6656452cafc61aef.
Nicolas Williams [Fri, 29 May 2015 15:37:58 +0000 (10:37 -0500)]
Revert "Better argfile fix (#705, fix #736)"
This reverts commit
4f8567476d3a6e8b5b422d05190f777221b984fb.
Nicolas Williams [Tue, 26 May 2015 02:12:29 +0000 (21:12 -0500)]
Add jv_mem_strdup*() and callocs too