aboutsummaryrefslogtreecommitdiffstats
path: root/src/volume.h
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-09-04 01:28:43 -0700
committerEric Wong <normalperson@yhbt.net>2008-09-05 00:00:08 -0700
commit6e8200227f617b7604a01f372460661d8ec5da32 (patch)
treef7214da1e5a0de24941b81b56d200561dc528ec8 /src/volume.h
parent3f29cbaf360c5e9542c7b9e6648626d6e0ea8b1e (diff)
downloadmpd-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/volume.h')
0 files changed, 0 insertions, 0 deletions