aboutsummaryrefslogtreecommitdiff
path: root/notmuch-client.h
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2020-04-12 22:59:12 -0300
committerDavid Bremner <david@tethera.net>2020-04-13 17:14:50 -0300
commit24ff33082ab1a35c7a31835fba80ade145596422 (patch)
tree124e3dd0576843280621a1eb8364d814fcd5e991 /notmuch-client.h
parent0d0918f604c5da419c08e3bfae005a4820395997 (diff)
cli/dump: define GZPUTS and use it in notmuch-dump
Similarly to GZPRINTF, this is a drop in replacement that can be improved where needd.
Diffstat (limited to 'notmuch-client.h')
-rw-r--r--notmuch-client.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/notmuch-client.h b/notmuch-client.h
index 6cb81820..ebd43e8d 100644
--- a/notmuch-client.h
+++ b/notmuch-client.h
@@ -500,6 +500,7 @@ print_status_gzbytes (const char *loc,
/* the __location__ macro is defined in talloc.h */
#define ASSERT_GZBYTES(file, bytes) ((print_status_gzbytes (__location__, file, bytes)) ? exit (1) : 0)
#define GZPRINTF(file, fmt, ...) ASSERT_GZBYTES (file, gzprintf (file, fmt, ##__VA_ARGS__));
+#define GZPUTS(file, str) ASSERT_GZBYTES(file, gzputs (file, str));
#include "command-line-arguments.h"