]> granicus.if.org Git - jq/log
jq
11 years agoAdd self to AUTHORS 224/head
Nicolas Williams [Sat, 30 Nov 2013 08:31:47 +0000 (02:31 -0600)]
Add self to AUTHORS

11 years agoConditionally #define _GNU_SOURCE in compile.c
Nicolas Williams [Thu, 5 Dec 2013 00:14:31 +0000 (18:14 -0600)]
Conditionally #define _GNU_SOURCE in compile.c

11 years agoAdd tests for string index by string and builtins
Nicolas Williams [Mon, 2 Dec 2013 18:19:36 +0000 (12:19 -0600)]
Add tests for string index by string and builtins

11 years agoAdd index and rindex builtins
Nicolas Williams [Mon, 2 Dec 2013 18:19:23 +0000 (12:19 -0600)]
Add index and rindex builtins

11 years agoAdd index strings by string; return string indexes
Nicolas Williams [Mon, 2 Dec 2013 18:16:38 +0000 (12:16 -0600)]
Add index strings by string; return string indexes

    % jq '.[","]'
    "a,bc,def,ghij,klmno"
    [1,4,8,13]
    %

11 years agoMake length return abs value of numeric inputs
Nicolas Williams [Sat, 30 Nov 2013 08:29:21 +0000 (02:29 -0600)]
Make length return abs value of numeric inputs

11 years agoAdd callback interface for errors
Nicolas Williams [Sat, 30 Nov 2013 08:05:42 +0000 (02:05 -0600)]
Add callback interface for errors

Printing to stderr is not the right answer for a library.

11 years agoAdd jv_string_vfmt()
Nicolas Williams [Thu, 5 Dec 2013 00:14:10 +0000 (18:14 -0600)]
Add jv_string_vfmt()

11 years agoDocument ltrimstr and rtrimstr
Nicolas Williams [Sat, 30 Nov 2013 06:45:55 +0000 (00:45 -0600)]
Document ltrimstr and rtrimstr

11 years agoTest ltrimstr and rtrimstr functions
Nicolas Williams [Sat, 30 Nov 2013 06:44:30 +0000 (00:44 -0600)]
Test ltrimstr and rtrimstr functions

11 years agoAdd ltrimstr and rtrimstr functions
Nicolas Williams [Sat, 30 Nov 2013 06:44:14 +0000 (00:44 -0600)]
Add ltrimstr and rtrimstr functions

11 years agoDocument -u / --unslurp option
Nicolas Williams [Fri, 29 Nov 2013 23:43:40 +0000 (17:43 -0600)]
Document -u / --unslurp option

11 years agoAdd -I / --online-input for huge top-level arrays
Nicolas Williams [Fri, 29 Nov 2013 23:41:04 +0000 (17:41 -0600)]
Add -I / --online-input for huge top-level arrays

11 years agoDocument -e / --exit-status argument
Nicolas Williams [Fri, 29 Nov 2013 22:39:02 +0000 (16:39 -0600)]
Document -e / --exit-status argument

11 years agoAdd -e | --exit-status CLI option
Nicolas Williams [Fri, 29 Nov 2013 22:36:15 +0000 (16:36 -0600)]
Add -e | --exit-status CLI option

11 years agoDocument tojson and fromjson builtins
Nicolas Williams [Fri, 29 Nov 2013 22:26:52 +0000 (16:26 -0600)]
Document tojson and fromjson builtins

11 years agoTest tojson and fromjson
Nicolas Williams [Fri, 29 Nov 2013 22:20:50 +0000 (16:20 -0600)]
Test tojson and fromjson

11 years agoAdd tojson and fromjson builtins
Nicolas Williams [Fri, 29 Nov 2013 22:16:52 +0000 (16:16 -0600)]
Add tojson and fromjson builtins

11 years agoDocument split function
Nicolas Williams [Fri, 29 Nov 2013 19:29:25 +0000 (13:29 -0600)]
Document split function

11 years agoDocument string multiplication and division
Nicolas Williams [Fri, 29 Nov 2013 19:26:54 +0000 (13:26 -0600)]
Document string multiplication and division

11 years agoDocument string functions and slicing
Nicolas Williams [Fri, 29 Nov 2013 19:19:10 +0000 (13:19 -0600)]
Document string functions and slicing

11 years agoTest string slicing
Nicolas Williams [Fri, 29 Nov 2013 18:50:21 +0000 (12:50 -0600)]
Test string slicing

11 years agoAdd string slicing
Nicolas Williams [Fri, 29 Nov 2013 18:50:02 +0000 (12:50 -0600)]
Add string slicing

11 years agoAdd tests for string division/splitting
Nicolas Williams [Fri, 29 Nov 2013 04:36:14 +0000 (22:36 -0600)]
Add tests for string division/splitting

11 years agoAdd string division by string (split on separator)
Nicolas Williams [Fri, 29 Nov 2013 04:27:23 +0000 (22:27 -0600)]
Add string division by string (split on separator)

11 years agoTest starts/endswith and string multiplication
Nicolas Williams [Fri, 29 Nov 2013 21:51:51 +0000 (15:51 -0600)]
Test starts/endswith and string multiplication

11 years agoAdd string multiplication by number
Nicolas Williams [Fri, 29 Nov 2013 21:49:11 +0000 (15:49 -0600)]
Add string multiplication by number

11 years agoAdd startswith/endswith
Nicolas Williams [Thu, 28 Nov 2013 21:17:32 +0000 (15:17 -0600)]
Add startswith/endswith

11 years agoAdd explode/implode jq functions to match jv API
Nicolas Williams [Thu, 28 Nov 2013 20:53:50 +0000 (14:53 -0600)]
Add explode/implode jq functions to match jv API

11 years agoUse uint32_t for codepoint in jv_string_append_codepoint()
Nicolas Williams [Thu, 28 Nov 2013 20:53:05 +0000 (14:53 -0600)]
Use uint32_t for codepoint in  jv_string_append_codepoint()

11 years agoAdd jv string utility functions
Nicolas Williams [Thu, 28 Nov 2013 20:48:46 +0000 (14:48 -0600)]
Add jv string utility functions

    jv_string_empty()
        -> return an empty string with given allocated length (for fast
           appends)
    jv_string_append_codepoint
        -> append a single codepoint (int) to the given string
    jv_string_explode
        -> return an array of codepoints making up a string
    jv_string_implode
        -> return the UTF-8 encoding of an array of codepoint numbers

11 years agoSupport more arguments for defs
Nicolas Williams [Thu, 28 Nov 2013 19:04:29 +0000 (13:04 -0600)]
Support more arguments for defs

11 years agoPreserve insertion order in objects. Closes #169.
Stephen Dolan [Wed, 4 Dec 2013 22:30:39 +0000 (22:30 +0000)]
Preserve insertion order in objects. Closes #169.

11 years agoAdd a few more test cases (from the man page)
Nicolas Pouillard [Mon, 11 Nov 2013 01:59:27 +0000 (02:59 +0100)]
Add a few more test cases (from the man page)

Signed-off-by: Nicolas Williams <nico@cryptonector.com>
11 years agoAdd a --unbuffered option. Closes #206
Stephen Dolan [Fri, 8 Nov 2013 12:19:41 +0000 (12:19 +0000)]
Add a --unbuffered option. Closes #206

11 years agoMerge pull request #210 from Habbie/patch-1
Stephen Dolan [Fri, 8 Nov 2013 11:43:57 +0000 (03:43 -0800)]
Merge pull request #210 from Habbie/patch-1

count should be length

11 years agocount should be length 210/head
Peter van Dijk [Thu, 7 Nov 2013 15:39:44 +0000 (16:39 +0100)]
count should be length

Example refers to a count function, which does not exist. Replacing it with length works.

11 years agoMerge pull request #193 from ryo1kato/fix-docs
Stephen Dolan [Thu, 7 Nov 2013 12:41:01 +0000 (04:41 -0800)]
Merge pull request #193 from ryo1kato/fix-docs

Docs: add description of --from-file option

11 years agoFix a crash on group_by of empty list. Fixes #208.
Stephen Dolan [Thu, 7 Nov 2013 12:18:48 +0000 (12:18 +0000)]
Fix a crash on group_by of empty list. Fixes #208.

11 years agoDocs: add description of --from-file option 193/head
Ryoichi KATO [Wed, 16 Oct 2013 12:42:29 +0000 (21:42 +0900)]
Docs: add description of --from-file option

11 years agoMerge pull request #188 from Juanxo/patch-1
Stephen Dolan [Mon, 7 Oct 2013 13:59:50 +0000 (06:59 -0700)]
Merge pull request #188 from Juanxo/patch-1

Fix typo on error message

11 years agoFix typo on error message 188/head
Juan Guerrero [Sun, 6 Oct 2013 15:52:04 +0000 (17:52 +0200)]
Fix typo on error message

11 years agoMerge pull request #185 from qoelet/master
Stephen Dolan [Fri, 20 Sep 2013 13:05:42 +0000 (06:05 -0700)]
Merge pull request #185 from qoelet/master

Add missing -i flag in build instructions

11 years agoAdd missing -i flag in build instructions 185/head
Kenny Shen [Fri, 20 Sep 2013 02:34:57 +0000 (10:34 +0800)]
Add missing -i flag in build instructions

11 years agoMerge pull request #182 from mdaines/sqrt-builtin
Stephen Dolan [Sat, 14 Sep 2013 23:34:52 +0000 (16:34 -0700)]
Merge pull request #182 from mdaines/sqrt-builtin

Add builtin for calculating square root

11 years agoAdd test showing calculation of standard deviation 182/head
Michael Daines [Sat, 14 Sep 2013 21:48:19 +0000 (17:48 -0400)]
Add test showing calculation of standard deviation

11 years agoMerge branch 'libjq'
Stephen Dolan [Sat, 14 Sep 2013 18:30:39 +0000 (19:30 +0100)]
Merge branch 'libjq'

Conflicts:
Makefile.am
configure.ac

11 years agoMerge pull request #181 from mdaines/patch-1
Stephen Dolan [Fri, 13 Sep 2013 22:24:22 +0000 (15:24 -0700)]
Merge pull request #181 from mdaines/patch-1

Fix typo

11 years agoFix typo 181/head
Mike Daines [Fri, 13 Sep 2013 16:15:52 +0000 (12:15 -0400)]
Fix typo

11 years agoMerge pull request #171 from joelittlejohn/fix-makefile
Stephen Dolan [Fri, 13 Sep 2013 16:02:42 +0000 (09:02 -0700)]
Merge pull request #171 from joelittlejohn/fix-makefile

Fix Makefile after refactoring of stacks in 05d90517b02

11 years agoMerge pull request #175 from lipidity/fix-build
Stephen Dolan [Fri, 13 Sep 2013 16:02:24 +0000 (09:02 -0700)]
Merge pull request #175 from lipidity/fix-build

Call AM_INIT_AUTOMAKE once only

11 years agoAdd sqrt operator
Michael Daines [Thu, 12 Sep 2013 00:22:56 +0000 (20:22 -0400)]
Add sqrt operator

11 years agoCall AM_INIT_AUTOMAKE once only 175/head
Ankur [Sun, 1 Sep 2013 08:58:26 +0000 (18:58 +1000)]
Call AM_INIT_AUTOMAKE once only

Fixes build with automake-1.14

11 years agoFix Makefile after refactoring of stacks in 05d90517b02 171/head
Joe Littlejohn [Mon, 19 Aug 2013 12:40:08 +0000 (13:40 +0100)]
Fix Makefile after refactoring of stacks in 05d90517b02

11 years agoRemove #includes from jv.h libjq
Stephen Dolan [Sun, 23 Jun 2013 13:23:07 +0000 (14:23 +0100)]
Remove #includes from jv.h

11 years agoFix the jv_parser interface.
Stephen Dolan [Sun, 23 Jun 2013 11:26:49 +0000 (12:26 +0100)]
Fix the jv_parser interface.

11 years agoUse libtool's built-in symbol exporting rather than a mapfile.
Stephen Dolan [Sun, 23 Jun 2013 11:10:58 +0000 (12:10 +0100)]
Use libtool's built-in symbol exporting rather than a mapfile.

11 years agoMove gen_utf8_tables to scripts
Stephen Dolan [Sun, 23 Jun 2013 11:08:22 +0000 (12:08 +0100)]
Move gen_utf8_tables to scripts

11 years agoMove libtool m4 junk to config/ and delete some autogenerated files.
Stephen Dolan [Sun, 23 Jun 2013 10:47:42 +0000 (11:47 +0100)]
Move libtool m4 junk to config/ and delete some autogenerated files.

11 years agoRemove Autoconf-generated config.h.
Stephen Dolan [Sun, 23 Jun 2013 10:16:41 +0000 (11:16 +0100)]
Remove Autoconf-generated config.h.

11 years agoMerge branch 'header-cleanup' into libjq
Stephen Dolan [Sat, 22 Jun 2013 22:27:16 +0000 (23:27 +0100)]
Merge branch 'header-cleanup' into libjq

Conflicts:
Makefile.am

11 years agoBuild libjq only once, and link it statically to ./jq
Stephen Dolan [Sat, 22 Jun 2013 19:53:28 +0000 (20:53 +0100)]
Build libjq only once, and link it statically to ./jq

This means ./jq is a real binary rather than a libtool turd.

11 years agoFix distcheck.
Stephen Dolan [Sat, 22 Jun 2013 19:53:03 +0000 (20:53 +0100)]
Fix distcheck.

Update list of files to be distributed.

11 years agoMerge pull request #162 from stedolan/utf8-fixes
Stephen Dolan [Sat, 22 Jun 2013 16:30:59 +0000 (09:30 -0700)]
Merge pull request #162 from stedolan/utf8-fixes

Utf8 fixes. Closes #161

11 years agoReject all overlong UTF8 sequences. 162/head
Stephen Dolan [Sat, 22 Jun 2013 12:42:56 +0000 (13:42 +0100)]
Reject all overlong UTF8 sequences.

11 years agoFix various UTF8 parsing bugs.
Stephen Dolan [Sat, 22 Jun 2013 12:34:24 +0000 (13:34 +0100)]
Fix various UTF8 parsing bugs.

In particular, parse bad UTF8 by replacing the broken bits with U+FFFD
and resychronise correctly after broken sequences.

11 years agoFix example in manual for `floor`. See #155.
Stephen Dolan [Sat, 22 Jun 2013 11:17:28 +0000 (12:17 +0100)]
Fix example in manual for `floor`. See #155.

11 years agoDocument floor
Nicolas Williams [Wed, 19 Jun 2013 06:12:11 +0000 (01:12 -0500)]
Document floor

11 years agoAdd floor operator
Nicolas Williams [Tue, 18 Jun 2013 01:50:45 +0000 (20:50 -0500)]
Add floor operator

11 years agoDocument mod
Nicolas Williams [Wed, 19 Jun 2013 06:11:57 +0000 (01:11 -0500)]
Document mod

11 years agoAdd mod (and setmod) operators
Nicolas Williams [Tue, 18 Jun 2013 01:21:37 +0000 (20:21 -0500)]
Add mod (and setmod) operators

11 years agoUpdate .gitignore 153/head
Nicolas Williams [Fri, 21 Jun 2013 17:41:57 +0000 (12:41 -0500)]
Update .gitignore

11 years agoAdd libjq autoconf goo
Nicolas Williams [Sun, 16 Jun 2013 13:25:12 +0000 (08:25 -0500)]
Add libjq autoconf goo

11 years agoQuiet setup.sh re: tmp dir
Nicolas Williams [Sun, 16 Jun 2013 13:24:52 +0000 (08:24 -0500)]
Quiet setup.sh re: tmp dir

11 years agoMerge pull request #157 from nicowilliams/argfile-fixes
Stephen Dolan [Fri, 21 Jun 2013 16:40:32 +0000 (09:40 -0700)]
Merge pull request #157 from nicowilliams/argfile-fixes

Argfile fixes

11 years agoMove cfunction invocation code to the interpreter loop. header-cleanup
Stephen Dolan [Fri, 21 Jun 2013 11:06:28 +0000 (12:06 +0100)]
Move cfunction invocation code to the interpreter loop.

11 years agoFix serious bug in handling of --argfile 157/head
Nicolas Williams [Tue, 18 Jun 2013 03:32:44 +0000 (22:32 -0500)]
Fix serious bug in handling of --argfile

11 years agoFix leaks in jv_load_file()
Nicolas Williams [Tue, 18 Jun 2013 03:32:54 +0000 (22:32 -0500)]
Fix leaks in jv_load_file()

11 years agoFold opcode.{c,h} into bytecode.{c,h}
Stephen Dolan [Tue, 18 Jun 2013 00:36:18 +0000 (01:36 +0100)]
Fold opcode.{c,h} into bytecode.{c,h}

11 years agoSimplify block functions for variables
Stephen Dolan [Tue, 18 Jun 2013 00:07:18 +0000 (01:07 +0100)]
Simplify block functions for variables

11 years agoSaner build instructions in README.md
Stephen Dolan [Mon, 17 Jun 2013 23:28:50 +0000 (00:28 +0100)]
Saner build instructions in README.md

Closes #144

11 years agoRemove some initialise-to-zero code.
Stephen Dolan [Mon, 17 Jun 2013 23:17:20 +0000 (00:17 +0100)]
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.

11 years agoMerge branch 'stack-refactor-merge'
Stephen Dolan [Mon, 17 Jun 2013 23:13:44 +0000 (00:13 +0100)]
Merge branch 'stack-refactor-merge'

11 years agoMerge branch 'stack-refactor'
Stephen Dolan [Mon, 17 Jun 2013 23:06:00 +0000 (00:06 +0100)]
Merge branch 'stack-refactor'

Conflicts:
execute.c

11 years agoMerge pull request #154 from nicowilliams/no-fopen-re
Stephen Dolan [Mon, 17 Jun 2013 22:34:01 +0000 (15:34 -0700)]
Merge pull request #154 from nicowilliams/no-fopen-re

Remove accidentally introduced use of fopen "e"

11 years agoRemove accidentally introduced use of fopen "e" 154/head
Nicolas Williams [Mon, 17 Jun 2013 22:27:25 +0000 (17:27 -0500)]
Remove accidentally introduced use of fopen "e"

11 years agoMerge pull request #114 from nicowilliams/nomem_handler
Stephen Dolan [Sun, 16 Jun 2013 13:20:27 +0000 (06:20 -0700)]
Merge pull request #114 from nicowilliams/nomem_handler

Add jv_nomem_handler()

11 years agoRemove last remnant of main.h 114/head
Nicolas Williams [Sun, 16 Jun 2013 13:06:52 +0000 (08:06 -0500)]
Remove last remnant of main.h

11 years agoAllow --run-tests to take a file argument
Nicolas Williams [Sat, 15 Jun 2013 06:55:47 +0000 (01:55 -0500)]
Allow --run-tests to take a file argument

11 years agoFixup API to get closer to a libjq
Nicolas Williams [Thu, 6 Jun 2013 22:26:15 +0000 (17:26 -0500)]
Fixup API to get closer to a libjq

11 years agoMerge pull request #150 from nicowilliams/jv_load_file
Stephen Dolan [Sat, 15 Jun 2013 12:29:17 +0000 (05:29 -0700)]
Merge pull request #150 from nicowilliams/jv_load_file

Move slurp_file() into library as jv_load_file()

11 years agoMove slurp_file() into library as jv_load_file() 150/head
Nicolas Williams [Sat, 15 Jun 2013 05:08:59 +0000 (00:08 -0500)]
Move slurp_file() into library as jv_load_file()

Needed as part of creating a libjq.

11 years agoClean up lots of stack and frame logic.
Stephen Dolan [Fri, 14 Jun 2013 21:08:18 +0000 (22:08 +0100)]
Clean up lots of stack and frame logic.

Move frame defs to execute.c

11 years agoSimplify frame logic.
Stephen Dolan [Fri, 14 Jun 2013 00:20:24 +0000 (01:20 +0100)]
Simplify frame logic.

11 years agoUnify all stacks. Passes tests, but needs cleanup.
Stephen Dolan [Thu, 13 Jun 2013 20:50:32 +0000 (21:50 +0100)]
Unify all stacks. Passes tests, but needs cleanup.

11 years agoSupport ."foo" syntax for accessing fields. See #141.
Stephen Dolan [Tue, 11 Jun 2013 21:26:39 +0000 (22:26 +0100)]
Support ."foo" syntax for accessing fields. See #141.

11 years agoUnify frame and data stacks
Stephen Dolan [Mon, 10 Jun 2013 00:17:58 +0000 (01:17 +0100)]
Unify frame and data stacks

11 years agoSpeed up cached configure (./configure -C)
Stephen Dolan [Wed, 5 Jun 2013 15:40:01 +0000 (16:40 +0100)]
Speed up cached configure (./configure -C)

11 years agoClean up flex lines in build
Stephen Dolan [Wed, 5 Jun 2013 12:43:23 +0000 (13:43 +0100)]
Clean up flex lines in build

11 years agoLex and parse .foo better.
Stephen Dolan [Wed, 5 Jun 2013 12:41:11 +0000 (13:41 +0100)]
Lex and parse .foo better.

'.as' is now valid, '. foo' is now invalid. See #141.