aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ieee80211.h
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss.ws@gmail.com>2018-10-19 15:22:01 -0400
committerAnders Broman <a.broman58@gmail.com>2018-10-20 06:59:20 +0000
commit451b93ed99505b50174a9aa2a3032868c5fd45be (patch)
treeecce65384feb03b4b3c9530ece9443d70397bf2d /epan/dissectors/packet-ieee80211.h
parent89d2b33b3870bf27149842f133ecf9748bdd1462 (diff)
checkAPIs: use new regex to remove comments.
The new pattern is from the Perl FAQ; it works better for me than the old code. Of note is that it works with C++/C99-style comments following a statement (as opposed to at the start of a line). The new regex is only slightly slower than the old one: `make checkAPI` goes from 3m30s of user time to 3m35s. The big functional difference can be seen by looking at the post-removal contents of packet-hl7.c. Before: struct msh { // typical/default values char field_separator; // char component_separator; // char repetition_separator; // char escape_character; // &\0\0MSH\0\0'; if (tree) { (With the old regex we lost a lot of code!) After: struct msh { char field_separator; char component_separator; char repetition_separator; char escape_character; char subcomponent_separator; char message_type[4]; char trigger_event[4]; }; Change-Id: Iac35413d480cc7b05b820cb3b292f87ed30e6801 Reviewed-on: https://code.wireshark.org/review/30265 Petri-Dish: Jeff Morriss <jeff.morriss.ws@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Peter Wu <peter@lekensteyn.nl> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-ieee80211.h')
0 files changed, 0 insertions, 0 deletions