diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-03-15 10:23:05 +0100 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-03-15 10:23:41 +0100 |
commit | d6e534734097b888fce80d103a1196f6c3963063 (patch) | |
tree | 180f5928d136cb3ecf0626928128bdcd5637b2bf /src/utils.c | |
parent | b9fa5bdbb17f507ba756fe38a14d5993e522bb6c (diff) | |
download | calcurse-d6e534734097b888fce80d103a1196f6c3963063.zip |
Use upper case for macro names.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/utils.c')
-rw-r--r-- | src/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils.c b/src/utils.c index 450988a..44d0926 100644 --- a/src/utils.c +++ b/src/utils.c @@ -45,7 +45,7 @@ #include "calcurse.h" -#define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) +#define ISLEAP(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) /* General routine to exit calcurse properly. */ void @@ -825,7 +825,7 @@ parse_date (char *date_string, enum datefmt datefmt, int *year, int *month, /* check if date is valid, take leap years into account */ if (y < 1902 || y > 2037 || m < 1 || m > 12 || d < 1 || - d > days[m - 1] + (m == 2 && isleap (y)) ? 1 : 0) + d > days[m - 1] + (m == 2 && ISLEAP (y)) ? 1 : 0) return 0; if (year) *year = y; |