Skip to content
Myr

fix typos

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Alanscut · committed by Nico Williams · parent 503fae5 · Browse files · 7 files+10 added−10 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

7 files+10 added−10 removed

  • tests:+2 added−2 removed
  • other:+8 added−8 removed

7 files+10 added−10 removed

modified:docs/content/manual/v1.3/manual.yml+1 added-1 removed
1230 unmodified lines
12311232 - title: Complex assignments1233 body: |1234 Lots more things are allowed on the left-hand side of a jq assignment1235 than in most langauges. We've already seen simple field accesses on1235 than in most languages. We've already seen simple field accesses on1236 the left hand side, and it's no surprise that array accesses work just1237 as well:12381239 .posts[0].title = "JQ Manual"
31 unmodified lines
modified:docs/content/manual/v1.4/manual.yml+1 added-1 removed
1632 unmodified lines
16331634 - title: Complex assignments1635 body: |1636 Lots more things are allowed on the left-hand side of a jq assignment1637 than in most langauges. We've already seen simple field accesses on1637 than in most languages. We've already seen simple field accesses on1638 the left hand side, and it's no surprise that array accesses work just1639 as well:16401641 .posts[0].title = "JQ Manual"
31 unmodified lines
modified:src/builtin.c+2 added-2 removed
1463 unmodified lines
1464 time_t secs = fsecs;1465 jv_free(a);1466 tmp = gmtime_r(&secs, &tm);1467 if (tmp == NULL)1468 return jv_invalid_with_msg(jv_string("errror converting number of seconds since epoch to datetime"));1468 return jv_invalid_with_msg(jv_string("error converting number of seconds since epoch to datetime"));1469 a = tm2jv(tmp);1470 return jv_array_set(a, 5, jv_number(jv_number_value(jv_array_get(jv_copy(a), 5)) + (fsecs - floor(fsecs))));1471}1472#elif defined HAVE_GMTIME
6 unmodified lines
1479 time_t secs = fsecs;1480 jv_free(a);1481 tmp = gmtime(&secs);1482 if (tmp == NULL)1483 return jv_invalid_with_msg(jv_string("errror converting number of seconds since epoch to datetime"));1483 return jv_invalid_with_msg(jv_string("error converting number of seconds since epoch to datetime"));1484 a = tm2jv(tmp);1485 return jv_array_set(a, 5, jv_number(jv_number_value(jv_array_get(jv_copy(a), 5)) + (fsecs - floor(fsecs))));1486}1487#else
328 unmodified lines
modified:src/compile.h+1 added-1 removed
85 unmodified lines
86878889// Here's some horrible preprocessor gunk so that code90// sequences can be contructed as BLOCK(block1, block2, block3)90// sequences can be constructed as BLOCK(block1, block2, block3)9192#define BLOCK_1(b1) (b1)93#define BLOCK_2(b1,b2) (block_join((b1),(b2)))94#define BLOCK_3(b1,b2,b3) (block_join(BLOCK_2(b1,b2),(b3)))
12 unmodified lines
modified:tests/jq.test+2 added-2 removed
320 unmodified lines
321null3221323324#325# Check that various builtins evalute all arguments where appropriate,325# Check that various builtins evaluate all arguments where appropriate,326# doing cartesian products where appropriate.327#328329# Check that limit does work for each value produced by n!
1384 unmodified lines
17141391186036643238217151716. |= try . catch .171711718117181
modified:configure.ac+2 added-2 removed
226 unmodified lines
227228AC_C_BIGENDIAN(229 AC_DEFINE([IEEE_MC68k], 1, [machine is bigendian]),230 AC_DEFINE([IEEE_8087], 1, [machine is littleendian]),231 AC_MSG_ERROR(unknown endianess),232 AC_MSG_ERROR(universial endianess not supported)231 AC_MSG_ERROR(unknown endianness),232 AC_MSG_ERROR(universial endianness not supported)233)234235dnl Oniguruma236AC_ARG_WITH([oniguruma],
49 unmodified lines
modified:jq.1.prebuilt+1 added-1 removed
56 unmodified lines
57.IP "\(bu" 458\fB\-\-stream\fR:59.60.IP61Parse the input in streaming fashion, outputing arrays of path and leaf values (scalars and empty arrays or empty objects)\. For example, \fB"a"\fR becomes \fB[[],"a"]\fR, and \fB[[],"a",["b"]]\fR becomes \fB[[0],[]]\fR, \fB[[1],"a"]\fR, and \fB[[1,0],"b"]\fR\.61Parse the input in streaming fashion, outputting arrays of path and leaf values (scalars and empty arrays or empty objects)\. For example, \fB"a"\fR becomes \fB[[],"a"]\fR, and \fB[[],"a",["b"]]\fR becomes \fB[[0],[]]\fR, \fB[[1],"a"]\fR, and \fB[[1,0],"b"]\fR\.62.63.IP64This is useful for processing very large inputs\. Use this in conjunction with filtering and the \fBreduce\fR and \fBforeach\fR syntax to reduce large inputs incrementally\.65.
3394 unmodified lines