diff options
author | Andrew Rodland <andrew@cleverdomain.org> | 2014-02-26 01:38:46 -0600 |
---|---|---|
committer | Andrew Rodland <andrew@cleverdomain.org> | 2014-02-26 01:42:29 -0600 |
commit | 36e495da1e91b8a841b65e066cc81f0215d99152 (patch) | |
tree | 762145ed1d1259ed2d52cff82311b27c27f90235 /jv.h | |
parent | 15faf9dc3b2b1f3556e442de2a093d355c2cec66 (diff) |
Make jq --raw-output --unbuffered work
--unbuffered was only affecting the normal output case, not the --raw-output case. Make the two of them play together.
This also makes sure that the output is flushed *after* printing the newline, so a consumer doesn't lag a line behind.
Diffstat (limited to 'jv.h')
-rw-r--r-- | jv.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -124,7 +124,7 @@ jv jv_object_iter_value(jv, int); int jv_get_refcnt(jv); -enum { JV_PRINT_PRETTY = 1, JV_PRINT_ASCII = 2, JV_PRINT_COLOUR = 4, JV_PRINT_SORTED = 8, JV_PRINT_UNBUFFERED = 16 }; +enum { JV_PRINT_PRETTY = 1, JV_PRINT_ASCII = 2, JV_PRINT_COLOUR = 4, JV_PRINT_SORTED = 8 }; void jv_dumpf(jv, FILE *f, int flags); void jv_dump(jv, int flags); void jv_show(jv, int flags); |