• Phil Sutter's avatar
    color: introduce color helpers and COLOR_CLEAR · a1121aa1
    Phil Sutter authored
    This adds two helper functions which map a given data field to a color,
    so color_fprintf() statements don't have to be duplicated with only a
    different color value depending on that data field's value. In order for
    this to work in a generic way, COLOR_CLEAR has been added to serve as a
    fallback default of uncolored output.
    Signed-off-by: default avatarPhil Sutter <phil@nwl.cc>
    a1121aa1
ipaddress.c 50.8 KB