diff options
author | Anders Broman <anders.broman@ericsson.com> | 2010-04-27 10:32:34 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2010-04-27 10:32:34 +0000 |
commit | fab55e4772d878cf191a44363a3db53ec2b76d3b (patch) | |
tree | a04a10ab0ad995f93796651efe5d0ed72f3bd1ce /epan/proto.h | |
parent | 13cfe2964f14854076479a6d91c2732b277335ec (diff) |
From Jakub Zawadzki:
Itroduce value_string_ext for faster value matching in value_strings.
svn path=/trunk/; revision=32574
Diffstat (limited to 'epan/proto.h')
-rw-r--r-- | epan/proto.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/epan/proto.h b/epan/proto.h index e1c8bd0048..97b934dcba 100644 --- a/epan/proto.h +++ b/epan/proto.h @@ -159,10 +159,15 @@ typedef enum { BASE_CUSTOM /**< call custom routine (in ->strings) to format */ } base_display_e; +#define IS_INT_TYPE(type) \ + ((type) == FT_UINT8 || (type) == FT_UINT16 || (type) == FT_UINT24 || (type) == FT_UINT32 || (type) == FT_UINT64 || \ + (type) == FT_INT8 || (type) == FT_INT16 || (type) == FT_INT24 || (type) == FT_INT32 || (type) == FT_INT64) + /* Following constants have to be ORed with a base_display_e when dissector * want to use specials MACROs (for the moment, only RVALS) for a * header_field_info */ #define BASE_RANGE_STRING 0x10 +#define BASE_EXT_STRING 0x20 /* BASE_ values that cause the field value to be displayed twice */ #define IS_BASE_DUAL(b) ((b)==BASE_DEC_HEX||(b)==BASE_HEX_DEC) |