diff options
author | Lukas Fleischer <lfleischer@calcurse.org> | 2016-10-10 08:56:54 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2016-10-10 09:02:42 +0200 |
commit | 007a73f7a20e88b8e4a958ab9b7658bb7b96cd62 (patch) | |
tree | 124daaa79b8b071c8cca08a3eb5f9bac0acb3ff3 /src/calcurse.h | |
parent | 48bd82a0033c52a6cbf706311df3ba4412771455 (diff) | |
download | calcurse-007a73f7a20e88b8e4a958ab9b7658bb7b96cd62.zip |
Replace parse_datetime() constants by named flags
Remove the magic constants used in the return value of parse_datetime()
and use named flags instead.
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r-- | src/calcurse.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/calcurse.h b/src/calcurse.h index 3810db2..a35bbcb 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -628,6 +628,10 @@ enum getstr { GETSTRING_RET /* return was pressed without entering any text. */ }; +/* Return codes for parse_datetime(). */ +#define PARSE_DATETIME_HAS_DATE (1 << 0) +#define PARSE_DATETIME_HAS_TIME (1 << 1) + /* Week days. */ enum wday { SUNDAY, |