aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-04-04 14:10:26 +0200
committerMattias Andrée <maandree@kth.se>2021-04-04 14:10:26 +0200
commit6321be300b804894c8c150fac8749741b13dfb2d (patch)
treedefa3c9145ecdf6e3f74c4fcf09b20a50a81983f /common.h
parentm + move common code from get-contact-birthday.c and list-birthdays.c to common-birthday.c (diff)
downloadcontacts-6321be300b804894c8c150fac8749741b13dfb2d.tar.gz
contacts-6321be300b804894c8c150fac8749741b13dfb2d.tar.bz2
contacts-6321be300b804894c8c150fac8749741b13dfb2d.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common.h b/common.h
index 6f38731..7abe91a 100644
--- a/common.h
+++ b/common.h
@@ -14,6 +14,9 @@
/* common-birthday.c */
+#if defined(__GNUC__) || defined(__clang__)
+__attribute__((__pure__))
+#endif
int get_age(struct libcontacts_birthday *bday, const struct tm *now);
void print_birthdate(struct libcontacts_birthday *bday, const struct tm *now);
void print_birthday(struct libcontacts_birthday *bday, const struct tm *now);