Ethereal-dev: [Ethereal-dev] Patch: bitfield_string

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Peter J. Creath" <peter-ethereal@xxxxxxxxxx>
Date: Thu, 12 Feb 2004 14:49:11 -0500
Greetings,

I've attached the patch to ethereal-0.10.0a which adds bitfield_string.[ch] to epan/. It updates the makefiles and plugin_api_list.c as well.

It does not update the plugins/X* files. I had trouble re-generating (or testing) those myself.

It also includes a small hack in util.c to force the new routines to be linked into the ethereal binary (which is necessary if the only use of these routines is in a plugin -- gcc otherwise drops the unused code).

And, finally, it adds a convenience macro to value_string.h which lets you create value_string arrays from enums with far less typing.

If there's anything I should do to make this patch easier to merge (or to improve bitfield_string), please let me know.

	-P

Attachment: %bitfield_string.patch
Description: application/applefile

Attachment: bitfield_string.patch
Description: Binary data