diff options
author | Max Kellermann <max@duempel.org> | 2008-08-29 09:38:24 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-08-29 09:38:24 +0200 |
commit | 5e1feb8fa3aff372f04b16b7a9d1095839bbc651 (patch) | |
tree | 307688f74d272917425ac6ffa3ba23a6e8896e4a /src | |
parent | 91502cd71ea92716729109677c6d8e57c42e63ae (diff) | |
download | mpd-5e1feb8fa3aff372f04b16b7a9d1095839bbc651.tar.gz mpd-5e1feb8fa3aff372f04b16b7a9d1095839bbc651.tar.xz mpd-5e1feb8fa3aff372f04b16b7a9d1095839bbc651.zip |
tag: converted tag_add_item() to an inline function
Diffstat (limited to 'src')
-rw-r--r-- | src/tag.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -75,8 +75,11 @@ void tag_free(struct tag *tag); void tag_add_item_n(struct 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 tag *tag, enum tag_type itemType, + const char *value) +{ + tag_add_item_n(tag, itemType, value, strlen(value)); +} void tag_print_types(int fd); |