From 5f1ade1308a080fc27f43ae9504432255958a6f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Thu, 1 Oct 2020 20:46:27 +0200 Subject: text: make text_snapshot return whether it succeeded Currently this can't fail, but one can imagine implementations which do. --- text.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'text.h') diff --git a/text.h b/text.h index f5a6993..6027e62 100644 --- a/text.h +++ b/text.h @@ -166,7 +166,7 @@ bool text_appendf(Text*, const char *format, ...) __attribute__((format(printf, /** * Create a text snapshot, that is a vertice in the history graph. */ -void text_snapshot(Text*); +bool text_snapshot(Text*); /** * Revert to previous snapshot along the main branch. * @rst -- cgit v1.2.3