Stephen Dolan
7835a724d6
Make jv_sort stable regardless of qsort details.
2016-01-18 10:41:25 -06:00
Stephen Dolan
239c357af0
Add AppVeyor badge to README.md
...
Thanks @JanSchulz, @nicowilliams!
2016-01-18 10:15:43 +00:00
Stephen Dolan
8105255be2
No-op commit to trigger first run of Travis.
2015-08-25 15:36:54 +01:00
Stephen Dolan
2003a0440f
Merge pull request #251 from phihag/fix-uri-in-manual
...
Fix @uri example
2013-12-21 11:47:24 -08:00
Stephen Dolan
a0274cc46e
Merge pull request #252 from phihag/ignore-config-test-driver
...
Ignore the config/test-driver file
2013-12-21 11:46:53 -08:00
Stephen Dolan
18e828f17c
Allow negated object values without parens. Fixes #247
2013-12-17 22:28:31 +00:00
Stephen Dolan
669f4ab4c3
Merge pull request #242 from sieben/travis-ci
...
Adding a .travis.yml file to use the travis-ci.org
2013-12-15 12:54:17 -08:00
Stephen Dolan
32ea50d336
Make the testsuite run on machines without valgrind
2013-12-13 15:22:17 +00:00
Stephen Dolan
5ac6a460fa
Format more integers as integers, not scientific notation.
...
jq is now willing to put up to 15 zeros after an integer before
moving to scientific notation.
2013-12-13 15:22:17 +00:00
Stephen Dolan
f147b7fae5
Merge pull request #239 from DRMacIver/overflows
...
Avoid undefined behaviour with large array indices
2013-12-12 16:38:14 -08:00
Stephen Dolan
7fd2c2d08b
Merge pull request #235 from DRMacIver/prototypes
...
some functions were missing proper prototypes
2013-12-10 03:56:02 -08:00
Stephen Dolan
00f244385b
Merge pull request #232 from DRMacIver/teardown_on_error
...
consistent use of goto out in main
2013-12-08 16:41:16 -08:00
Stephen Dolan
1535f23455
Merge pull request #233 from DRMacIver/printf
...
Fix warnings about vprintf
2013-12-08 15:44:33 -08:00
Stephen Dolan
4ba0c8baef
Merge pull request #231 from DRMacIver/fix_mem_leak_in_compile
...
args to jq_compile_args were not getting freed when there were errors in the compile
2013-12-08 15:17:20 -08:00
Stephen Dolan
a7dd3ab793
Clean up string/object interactions in jv.
2013-12-08 22:49:28 +00:00
Stephen Dolan
74a14f5de7
Refactor jv structure.
...
New structure layout is simpler and also faster. In particular, it's
now small enough to be passed in registers on amd64.
2013-12-08 17:46:23 +00:00
Stephen Dolan
fee21c959a
Make testsuite not leak when compiled with -DNDEBUG.
2013-12-08 17:44:54 +00:00
Stephen Dolan
489fcdc089
Merge pull request #224 from nicowilliams/features
...
Features: more arity, string ops
2013-12-04 17:36:08 -08:00
Stephen Dolan
91cfc34ae4
Preserve insertion order in objects. Closes #169 .
2013-12-04 22:30:39 +00:00
Stephen Dolan
6a401c8262
Add a --unbuffered option. Closes #206
2013-11-08 12:21:45 +00:00
Stephen Dolan
d235f32bc9
Merge pull request #210 from Habbie/patch-1
...
count should be length
2013-11-08 03:43:57 -08:00
Stephen Dolan
78976b3504
Merge pull request #193 from ryo1kato/fix-docs
...
Docs: add description of --from-file option
2013-11-07 04:41:01 -08:00
Stephen Dolan
8d4748c8df
Fix a crash on group_by of empty list. Fixes #208 .
2013-11-07 12:18:48 +00:00
Stephen Dolan
0feeb7d0d4
Merge pull request #188 from Juanxo/patch-1
...
Fix typo on error message
2013-10-07 06:59:50 -07:00
Stephen Dolan
7e7c08da47
Merge pull request #185 from qoelet/master
...
Add missing -i flag in build instructions
2013-09-20 06:05:42 -07:00
Stephen Dolan
4e3024cb61
Merge pull request #182 from mdaines/sqrt-builtin
...
Add builtin for calculating square root
2013-09-14 16:34:52 -07:00
Stephen Dolan
dae2422fd1
Merge branch 'libjq'
...
Conflicts:
Makefile.am
configure.ac
2013-09-14 19:30:39 +01:00
Stephen Dolan
f98e3e6c26
Merge pull request #181 from mdaines/patch-1
...
Fix typo
2013-09-13 15:24:22 -07:00
Stephen Dolan
41a4968c90
Merge pull request #171 from joelittlejohn/fix-makefile
...
Fix Makefile after refactoring of stacks in 05d90517b0
2013-09-13 09:02:42 -07:00
Stephen Dolan
1cdaabf2dd
Merge pull request #175 from lipidity/fix-build
...
Call AM_INIT_AUTOMAKE once only
2013-09-13 09:02:24 -07:00
Stephen Dolan
37cfc912c1
Remove #includes from jv.h
2013-06-23 14:23:07 +01:00
Stephen Dolan
8c2e228c74
Fix the jv_parser interface.
2013-06-23 12:26:49 +01:00
Stephen Dolan
8630fb02bb
Use libtool's built-in symbol exporting rather than a mapfile.
2013-06-23 12:10:58 +01:00
Stephen Dolan
5052ab4e2b
Move gen_utf8_tables to scripts
2013-06-23 12:08:22 +01:00
Stephen Dolan
a44f739356
Move libtool m4 junk to config/ and delete some autogenerated files.
2013-06-23 12:01:58 +01:00
Stephen Dolan
f44ecf3872
Remove Autoconf-generated config.h.
2013-06-23 12:01:58 +01:00
Stephen Dolan
1c9e03f800
Merge branch 'header-cleanup' into libjq
...
Conflicts:
Makefile.am
2013-06-22 23:27:16 +01:00
Stephen Dolan
5d9ec83805
Build libjq only once, and link it statically to ./jq
...
This means ./jq is a real binary rather than a libtool turd.
2013-06-22 20:53:28 +01:00
Stephen Dolan
3a295c659b
Fix distcheck.
...
Update list of files to be distributed.
2013-06-22 20:53:03 +01:00
Stephen Dolan
d253414783
Merge pull request #162 from stedolan/utf8-fixes
...
Utf8 fixes. Closes #161
2013-06-22 09:30:59 -07:00
Stephen Dolan
8b1b503609
Reject all overlong UTF8 sequences.
2013-06-22 13:43:46 +01:00
Stephen Dolan
ff48bd6ec5
Fix various UTF8 parsing bugs.
...
In particular, parse bad UTF8 by replacing the broken bits with U+FFFD
and resychronise correctly after broken sequences.
2013-06-22 13:34:24 +01:00
Stephen Dolan
54b9c9bdb2
Fix example in manual for floor. See #155 .
2013-06-22 12:17:28 +01:00
Stephen Dolan
dc2fe63e42
Merge pull request #157 from nicowilliams/argfile-fixes
...
Argfile fixes
2013-06-21 09:40:32 -07:00
Stephen Dolan
7af88962ee
Move cfunction invocation code to the interpreter loop.
2013-06-21 12:06:28 +01:00
Stephen Dolan
b49d65a276
Fold opcode.{c,h} into bytecode.{c,h}
2013-06-18 01:36:18 +01:00
Stephen Dolan
824ce76cec
Simplify block functions for variables
2013-06-18 01:07:18 +01:00
Stephen Dolan
2a18f97d12
Saner build instructions in README.md
...
Closes #144
2013-06-18 00:29:05 +01:00
Stephen Dolan
8c4d29ee38
Remove some initialise-to-zero code.
...
This lets valgrind find more bugs - if a field isn't given a
well-defined value valgrind will now find it instead of seeing it
set to zero with memset.
2013-06-18 00:17:20 +01:00
Stephen Dolan
2c13f4fe72
Merge branch 'stack-refactor-merge'
2013-06-18 00:13:44 +01:00
Stephen Dolan
94931040a8
Merge branch 'stack-refactor'
...
Conflicts:
execute.c
2013-06-18 00:06:00 +01:00
Stephen Dolan
b78a4cdc93
Merge pull request #154 from nicowilliams/no-fopen-re
...
Remove accidentally introduced use of fopen "e"
2013-06-17 15:34:01 -07:00
Stephen Dolan
ce17b6bd53
Merge pull request #114 from nicowilliams/nomem_handler
...
Add jv_nomem_handler()
2013-06-16 06:20:27 -07:00
Stephen Dolan
69fa279e3c
Merge pull request #150 from nicowilliams/jv_load_file
...
Move slurp_file() into library as jv_load_file()
2013-06-15 05:29:17 -07:00
Stephen Dolan
05d90517b0
Clean up lots of stack and frame logic.
...
Move frame defs to execute.c
2013-06-14 22:08:18 +01:00
Stephen Dolan
5f5c1dc5a6
Simplify frame logic.
2013-06-14 01:20:24 +01:00
Stephen Dolan
e0524644f8
Unify all stacks. Passes tests, but needs cleanup.
2013-06-13 21:50:32 +01:00
Stephen Dolan
81e2336ace
Support ."foo" syntax for accessing fields. See #141 .
2013-06-11 22:26:39 +01:00
Stephen Dolan
25bf1a0169
Unify frame and data stacks
2013-06-10 01:17:58 +01:00
Stephen Dolan
c8ab67be27
Speed up cached configure (./configure -C)
2013-06-05 16:40:01 +01:00
Stephen Dolan
6c34288ebf
Clean up flex lines in build
2013-06-05 13:43:23 +01:00
Stephen Dolan
2ffbb9d6b7
Lex and parse .foo better.
...
'.as' is now valid, '. foo' is now invalid. See #141 .
2013-06-05 13:41:56 +01:00
Stephen Dolan
dad608d5c0
Merge pull request #142 from lanthaler/master
...
Update README.md
2013-06-04 04:13:24 -07:00
Stephen Dolan
5dac485458
Make jq --version print to stdout, not stderr
2013-06-03 23:22:59 +01:00
Stephen Dolan
2c4ccd122e
Better error handling for .foo case in parser. See #141 .
2013-06-03 23:12:31 +01:00
Stephen Dolan
b90ae078b8
Let the parser rather than the lexer handle invalid characters.
2013-06-03 23:12:31 +01:00
Stephen Dolan
cc8761dbde
Add command-line option to sort object keys.
...
Closes #79 .
2013-06-03 23:12:31 +01:00
Stephen Dolan
08cc591884
Clean up Makefile.am (distcheck, rebuild version.h less often)
2013-06-03 23:12:31 +01:00
Stephen Dolan
1bc4d04f43
Merge pull request #139 from 13ren/stopwarning
...
Stop warning on fgets, jq_test.c:42
2013-06-01 07:30:15 -07:00
Stephen Dolan
4fed6763fc
Squash a warning on some GCC versions
2013-05-31 12:15:58 +01:00
Stephen Dolan
73446a9cce
Support for printing object keys in sorted order.
...
No command-line option to enable this yet. See #79 .
2013-05-29 11:47:12 +01:00
Stephen Dolan
dcf1ac0d1f
Merge pull request #135 from 13ren/locfile_bugfix
...
Locfile bugfix
2013-05-29 03:38:15 -07:00
Stephen Dolan
364c58d13f
Merge pull request #130 from 13ren/libload_2
...
libload_2 (update to pull request #126 , for issue #112 )
2013-05-29 03:37:36 -07:00
Stephen Dolan
f0b982795c
Make jq --version report an actual git revision.
...
Closes #129 .
2013-05-24 23:35:38 +01:00
Stephen Dolan
cbd422d56e
Merge pull request #133 from nicowilliams/option_argfile-rebase0
...
Add --argfile variant of --arg (issue #117 )
2013-05-24 04:13:45 -07:00
Stephen Dolan
983a53a643
'make clean' won't delete jq.1 if it can't be rebuilt.
...
See #131
2013-05-23 19:20:19 +01:00
Stephen Dolan
0535e724a2
jq 1.3 release
2013-05-19 11:48:18 +01:00
Stephen Dolan
fd1ac5dd79
EACH need not make a backtrack point on the last iteration
2013-05-17 22:49:08 +01:00
Stephen Dolan
9b91eafac4
Make array construction use LOADVN (slightly faster)
2013-05-16 15:09:59 +01:00
Stephen Dolan
bc42812715
Remove the insane "fold" operation, replace with saner "reduce".
2013-05-16 15:07:53 +01:00
Stephen Dolan
8fbee891b3
Add LOADVN opcode.
...
Does a variable load, but sets the variable to be null afterwards.
2013-05-16 15:02:18 +01:00
Stephen Dolan
919292764a
Reverse function. Closes #94 .
2013-05-16 14:25:28 +01:00
Stephen Dolan
a1e4dfa324
Better debug info for struct bytecode.
...
--debug-dump-disasm produces more comprehensible output now.
2013-05-16 00:51:17 +01:00
Stephen Dolan
f8644c31a3
Only generate code for those builtin functions actually used.
...
Makes output of --debug-dump-disasm much simpler.
2013-05-15 01:37:15 +01:00
Stephen Dolan
1e2851cdb3
Remove the YIELD opcode (use RET instead)
2013-05-15 01:23:06 +01:00
Stephen Dolan
e83e51eb56
'length' function now measures string length in codepoints, not bytes.
2013-05-15 00:37:38 +01:00
Stephen Dolan
c496a924ce
Bugfix for array slices.
2013-05-15 00:22:44 +01:00
Stephen Dolan
81be37b236
Add the range function
2013-05-14 16:09:10 +01:00
Stephen Dolan
4d540b7102
Fix some documentation bugs
2013-05-13 20:26:44 +01:00
Stephen Dolan
33901b74b1
Array slicing. Closes #2 .
2013-05-13 20:16:19 +01:00
Stephen Dolan
a47cfa4757
Delete unnecessary _POSIX_SOURCE. Closes #89
2013-05-13 16:41:11 +01:00
Stephen Dolan
a625d2821e
Add to_entries, from_entries and with_entries functions.
...
Closes #97 .
2013-05-13 16:15:49 +01:00
Stephen Dolan
d8706fd460
Fix the //= operator.
...
Closes #62 .
2013-05-13 16:04:30 +01:00
Stephen Dolan
e13f24ab45
Better error handling for INSERT opcode
...
jq 'null | {(.a): 1}' no longer crashes.
2013-05-13 15:42:57 +01:00
Stephen Dolan
34a63246ab
Remove the is_backtrack_frame special case hack.
2013-05-13 15:37:57 +01:00
Stephen Dolan
8c708f3c7a
Refactor path logic.
2013-05-13 15:00:05 +01:00
Stephen Dolan
b0e65d149f
Fix a bug triggered by jv_array_slice.
2013-05-13 14:10:39 +01:00
Stephen Dolan
e29db8d272
Fix bug with path handling (used in assignments).
...
Closes #67
2013-05-11 18:10:21 +01:00
Stephen Dolan
7ca5127fcc
Merge branch 'autotools'
2013-05-11 15:21:23 +01:00
Stephen Dolan
4b1b9c219a
Delete some Autotools junk and update README.
...
Autotools autogenerated files that change frequently have been
removed, those that don't are still checked in.
2013-05-11 15:15:56 +01:00