From dc5e7c97a337025ef7c51f3191548188b56f5162 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 29 Aug 2008 09:38:24 +0200 Subject: tag: converted tag_add_item() to an inline function --- src/tag.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/tag.h b/src/tag.h index 3f6df0021..8a056a9db 100644 --- a/src/tag.h +++ b/src/tag.h @@ -75,8 +75,11 @@ void tag_free(struct mpd_tag *tag); void tag_add_item_n(struct mpd_tag *tag, enum tag_type itemType, const char *value, size_t len); -#define tag_add_item(tag, itemType, value) \ - tag_add_item_n(tag, itemType, value, strlen(value)) +static inline void tag_add_item(struct mpd_tag *tag, enum tag_type itemType, + const char *value) +{ + tag_add_item_n(tag, itemType, value, strlen(value)); +} void tag_print_types(int fd); -- cgit v1.2.3