summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2020-06-06 01:27:36 +0300
committerSergey Poznyakoff <gray@gnu.org>2020-06-06 01:27:36 +0300
commit9abec3fc4e49c67911d6b827a08169f4cb1c4952 (patch)
tree6842109b4bdb5b4f16f29c752e97d9a609711dc7 /include
parentdeea339650b1ffe100316af29e771c4f509b17aa (diff)
downloadmailutils-9abec3fc4e49c67911d6b827a08169f4cb1c4952.tar.gz
mailutils-9abec3fc4e49c67911d6b827a08169f4cb1c4952.tar.bz2
Use mu_coord_t in mail
* include/mailutils/message.h (mu_coord_part_string): New proto. * libmailutils/base/coord.c (mu_coord_part_string): New function. * mail/mail.h (message_set): Remove npart and msg_part. Introduce mu_coord_t crd instead. All uses updated.
Diffstat (limited to 'include')
-rw-r--r--include/mailutils/message.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/mailutils/message.h b/include/mailutils/message.h
index cacee0f06..3c342d8ea 100644
--- a/include/mailutils/message.h
+++ b/include/mailutils/message.h
@@ -286,7 +286,13 @@ mu_coord_length (mu_coord_t c)
return c[0];
}
-char *mu_coord_string (mu_coord_t c);
+char *mu_coord_part_string (mu_coord_t c, size_t d);
+
+static inline char *
+mu_coord_string (mu_coord_t c)
+{
+ return mu_coord_part_string (c, mu_coord_length (c));
+}
#ifdef __cplusplus
}

Return to:

Send suggestions and report system problems to the System administrator.