From a9b820abbe46764f23687eac1d1f62b145cd0962 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Wed, 9 Nov 2011 18:48:09 +0100 Subject: Use a dynamic method to print events to stdout Add a flexible helper function print_event() and use it whenever we print events to stdout. This reduces the number of copy-pasted code and eventually allows for specifying custom format strings. Following format specifiers are supported: * m: Print the description of the item * n: Print the name of the note file belonging to the item Signed-off-by: Lukas Fleischer --- src/calcurse.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/calcurse.h') diff --git a/src/calcurse.h b/src/calcurse.h index e4acab2..57260d4 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -923,6 +923,7 @@ int shell_exec (int *, int *, char *); int child_wait (int *, int *, int); void press_any_key (void); void print_apoint (const char *, long, struct apoint *); +void print_event (const char *, long, struct event *); /* vars.c */ extern int col, row; -- cgit v1.2.3-54-g00ecf