summaryrefslogtreecommitdiff
path: root/src/calcurse.h
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2013-02-27 10:45:51 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2013-02-27 11:36:28 +0100
commit43bdd12254082c58b04e0d3b3032569443e96e4f (patch)
tree1b6b86cbb066ede439a80b01dcefc6aa9e667e22 /src/calcurse.h
parentba2c5c14f6408872ec34a223d131266ab83e4b7d (diff)
downloadcalcurse-43bdd12254082c58b04e0d3b3032569443e96e4f.zip
parse_{date,time}(): Split out date/time validation
Split date/time validation into separate functions check_date() and check_time(). These will be used to validate date/time information when reading items from the appointments file. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r--src/calcurse.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/calcurse.h b/src/calcurse.h
index 64c8808..e8313b0 100644
--- a/src/calcurse.h
+++ b/src/calcurse.h
@@ -974,7 +974,9 @@ char *nowstr(void);
void print_bool_option_incolor(WINDOW *, unsigned, int, int);
const char *get_tempdir(void);
char *new_tempfile(const char *, int);
+int check_date(unsigned, unsigned, unsigned);
int parse_date(const char *, enum datefmt, int *, int *, int *, struct date *);
+int check_time(unsigned, unsigned);
int parse_time(const char *, unsigned *, unsigned *);
int parse_duration(const char *, unsigned *);
void file_close(FILE *, const char *);