• 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
tag.c 8.74 KB