diff options
author | Craig Small <csmall@src.gnome.org> | 1998-03-12 07:29:16 +0800 |
---|---|---|
committer | Craig Small <csmall@src.gnome.org> | 1998-03-12 07:29:16 +0800 |
commit | bf52e68d687a9ea8966c6050146de627c4553ecb (patch) | |
tree | 267ca7689c2f769fda48eeaf74af788be882d802 /calendar/calcs.c | |
parent | 4b15a0fb97cf325af6b7a106ab9099d5b9addb94 (diff) | |
download | gsoc2013-evolution-bf52e68d687a9ea8966c6050146de627c4553ecb.tar gsoc2013-evolution-bf52e68d687a9ea8966c6050146de627c4553ecb.tar.gz gsoc2013-evolution-bf52e68d687a9ea8966c6050146de627c4553ecb.tar.bz2 gsoc2013-evolution-bf52e68d687a9ea8966c6050146de627c4553ecb.tar.lz gsoc2013-evolution-bf52e68d687a9ea8966c6050146de627c4553ecb.tar.xz gsoc2013-evolution-bf52e68d687a9ea8966c6050146de627c4553ecb.tar.zst gsoc2013-evolution-bf52e68d687a9ea8966c6050146de627c4553ecb.zip |
linked into gtkcalendar widget
svn path=/trunk/; revision=66
Diffstat (limited to 'calendar/calcs.c')
-rw-r--r-- | calendar/calcs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/calendar/calcs.c b/calendar/calcs.c index 2797a31d6c..d6150f7b35 100644 --- a/calendar/calcs.c +++ b/calendar/calcs.c @@ -125,7 +125,7 @@ int month_atoi(const char *string) { int i; for (i = MONTH_MIN; i <= MONTH_MAX; i++) - if (strcasecmp(string, (char *)month_name(i)) == 0) + if (strcasecmp(string, (char *)get_month_name(i)) == 0) return i; return 0; } @@ -134,7 +134,7 @@ int day_atoi(const char *string) { int i; for (i = DAY_MIN; i <= DAY_MAX; i++) - if (strcasecmp(string, (char *)day_name(i)) == 0) + if (strcasecmp(string, (char *)get_day_name(i)) == 0) return i; return 0; } @@ -182,7 +182,7 @@ const char *short_day_name(const int day) /* * Returns the complete name of the day */ -const char *day_name(const int day) +const char *get_day_name(const int day) { static const char *name[]={"invalid day", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"}; @@ -202,7 +202,7 @@ const char *short_month_name(const int month) /* * Returns the name of the month */ -const char *month_name(const int month) +const char *get_month_name(const int month) { static const char *name[]={ "invalid month", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}; |