diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-09-07 19:14:43 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-07 19:14:43 +0200 |
commit | 194c8c3c0fc92e5d781a6cc23252a701c84bb380 (patch) | |
tree | 299329455ca90997b8128bb4816f8d34eb455ca5 /UPGRADING | |
parent | 4dd9d4b2fdfb6adde66920d4fd1bb65a1cf0695a (diff) | |
download | mpd-194c8c3c0fc92e5d781a6cc23252a701c84bb380.tar.gz mpd-194c8c3c0fc92e5d781a6cc23252a701c84bb380.tar.xz mpd-194c8c3c0fc92e5d781a6cc23252a701c84bb380.zip |
tag: introduce handy items_size() function
Trying to read or remember
"tag->numOfItems * sizeof(*tag->items)"
requires too much thinking and mental effort on my part.
Also, favor "sizeof(struct mpd_tag)" over "sizeof(*tag->items)"
because the former is easier to read and follow, even though
the latter is easier to modify if the items member changes
to a different type.
Diffstat (limited to 'UPGRADING')
0 files changed, 0 insertions, 0 deletions