Wireshark-bugs: [Wireshark-bugs] [Bug 9367] Enhancement of the packet-mq dissector (WMQ 7.1-7.5)

Date: Tue, 05 Nov 2013 17:16:41 +0000

Comment # 10 on bug 9367 from
Update:

FYI: Upon working on this a bit more, I realized that the following works
(much simpler ...)

    #define GET_VALSV(A) mq_##A##_vals
    #define GET_VALSVX(A) mq_##A##_vals_ext

    [...]

    #define DEF_VALS_EXT(A) static value_string_ext GET_VALSVX(A)\
        = VALUE_STRING_EXT_INIT(GET_VALSV(A))

&GET_VALSVX() can also then be used in the various refs to the extended value
string (e.g., the param in the ...value_string_ext... calls)

A few other notes:

The general principles I've been using:

1. value_strings should be 'static' unless used in a different file.

2. Ditto for extended value strings.

3. If an extended value string is global, the actual value_string pointed to
   can (should) be static.


You are receiving this mail because:
  • You are watching all bug changes.