• Eric Wong's avatar
    tag: introduce handy items_size() function · 194c8c3c
    Eric Wong authored
    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.
    194c8c3c
Name
Last commit
Last update
bs Loading commit data...
doc Loading commit data...
m4 Loading commit data...
scripts Loading commit data...
src Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
INSTALL Loading commit data...
Makefile.am Loading commit data...
README Loading commit data...
TODO Loading commit data...
UPGRADING Loading commit data...
autogen.sh Loading commit data...
build.mk Loading commit data...
configure.ac Loading commit data...