summaryrefslogtreecommitdiff
path: root/sequencer.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-10-11 17:21:48 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-10-11 17:21:48 (GMT)
commit404c4a54624c3e0ea9066809344a6269c16de69f (patch)
tree53e4675199a1cfafdaea4f3304564446375812ed /sequencer.h
parent859a585bdf9baa257c08a50895d9829171a5ad46 (diff)
parent538835d2ac151abbe90058becfc0dc061d33302c (diff)
downloadgit-404c4a54624c3e0ea9066809344a6269c16de69f.zip
git-404c4a54624c3e0ea9066809344a6269c16de69f.tar.gz
git-404c4a54624c3e0ea9066809344a6269c16de69f.tar.bz2
Merge branch 'ab/designated-initializers'
Code clean-up. * ab/designated-initializers: cbtree.h: define cb_init() in terms of CBTREE_INIT *.h: move some *_INIT to designated initializers *.h _INIT macros: don't specify fields equal to 0 *.[ch] *_INIT macros: use { 0 } for a "zero out" idiom submodule-config.h: remove unused SUBMODULE_INIT macro
Diffstat (limited to 'sequencer.h')
-rw-r--r--sequencer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sequencer.h b/sequencer.h
index b4d0305..d8a1853 100644
--- a/sequencer.h
+++ b/sequencer.h
@@ -118,7 +118,9 @@ struct todo_list {
int done_nr, total_nr;
};
-#define TODO_LIST_INIT { STRBUF_INIT }
+#define TODO_LIST_INIT { \
+ .buf = STRBUF_INIT, \
+}
int todo_list_parse_insn_buffer(struct repository *r, char *buf,
struct todo_list *todo_list);