• S
    batman-adv: Use enums for related constants · e8958dbf
    Sven Eckelmann 提交于
    CodingStyle "Chapter 12: Macros, Enums and RTL" recommends to use enums
    for several related constants. Internal states can be used without
    defining the actual value, but all values which are visible to the
    outside must be defined as before. Normal values are assigned as usual
    and flags are defined by shifts of a bit.
    Signed-off-by: NSven Eckelmann <sven@narfation.org>
    e8958dbf
packet.h 3.7 KB