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
struct todo_item *items;
int nr, alloc, current;
int done_nr, total_nr;
- struct stat_data stat;
};
- #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);