Slims down LOC from ~330 to ~45; the table makes it much easier to review the differences.
I don't have a mac with which to experiment with this to see if any of the numbers could be adjusted to further simplify things. Perhaps someone with a mac could look into it further?
CONFIG_ITEM_RANGED_INTEGER defines only exist in this file and seems to be a hack just to get different margins for these string/int variants.
VideoLAN code repository instance