|Main Archive Page > Month Archives > wireshark-dev archives|
On 10/4/2011 4:08 PM, Jeff Morriss wrote:
> I had a fair amount of luck with the (currently not run)
> checkAPIsCalledWithTvbGetPtr() function in checkAPIs.pl . It
> definitely is not 100%, but it served my purposes well. It avoids
> dealing with parenthesis by assuming the only semi-colon it will find
> is the end of the function call ;-).
> I imagine regexp'ing for
> would be sufficient to find offenders.
Yep: I started with the regexp in in checkAPIs.pl:check_hf_entries
(which you did) to get the list of hf_* entries and their types and then
went from there in a similar manner as above to find the
proto_tree_add_item() entries to be changed.
The code is working nicely.
Sent via: Wireshark-dev mailing list <email@example.com>