Refactor grep mode
Split io_save_{apts,todo}() into functions that write raw data to a file
and functions that write formatted items to stdout such that one can
easily extend the grep mode for format string support in a follow-up
commit.
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
@@ -819,7 +819,9 @@ void io_init(const char *, const char *);
|
||||
void io_extract_data(char *, const char *, int);
|
||||
void io_save_mutex_lock(void);
|
||||
void io_save_mutex_unlock(void);
|
||||
void io_dump_apts(const char *, const char *, const char *, const char *);
|
||||
unsigned io_save_apts(const char *);
|
||||
void io_dump_todo(const char *);
|
||||
unsigned io_save_todo(const char *);
|
||||
unsigned io_save_keys(void);
|
||||
void io_save_cal(enum save_display);
|
||||
|
||||
Reference in New Issue
Block a user