diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-09-04 01:28:43 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-09-05 00:00:08 -0700 |
commit | 6e8200227f617b7604a01f372460661d8ec5da32 (patch) | |
tree | f7214da1e5a0de24941b81b56d200561dc528ec8 /src/ack.h | |
parent | 3f29cbaf360c5e9542c7b9e6648626d6e0ea8b1e (diff) | |
download | mpd-6e8200227f617b7604a01f372460661d8ec5da32.tar.gz mpd-6e8200227f617b7604a01f372460661d8ec5da32.tar.xz mpd-6e8200227f617b7604a01f372460661d8ec5da32.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 'src/ack.h')
0 files changed, 0 insertions, 0 deletions