aboutsummaryrefslogtreecommitdiffstats
path: root/tools/checkAPIs.pl
AgeCommit message (Collapse)AuthorFilesLines
2011-08-05Using gtk_tree_view_column_get_cell_renderers is an error now.Jörg Mayer1-1/+1
svn path=/trunk/; revision=38357
2011-07-25Update comments.Anders Broman1-3/+7
svn path=/trunk/; revision=38202
2011-07-25Use gtk_widget_get_has_window() as a wrapper aroundGuy Harris1-1/+1
GTK_WIDGET_NO_WINDOW() in pre-2.18 versions of GTK+. Treat calls to GTK_WIDGET_NO_WINDOW() as an error in checkAPIs.pl. svn path=/trunk/; revision=38197
2011-07-25Fix a couple of typos and 'E'' mark functions mapped in old-gtk-compat.hAnders Broman1-35/+38
svn path=/trunk/; revision=38196
2011-07-24Replace deprecated functions.Anders Broman1-2/+2
Udate comments in CheckAPIs svn path=/trunk/; revision=38185
2011-07-14Replace deprecated gdk_pixmap_unref() with g_object_unref().Anders Broman1-16/+18
Update checkAPIs. svn path=/trunk/; revision=38013
2011-07-11Fix more tooltips, mark gtk_tooltips_new with 'E' in checkapi.Anders Broman1-5/+5
svn path=/trunk/; revision=37976
2011-06-28Replace all strerror() with g_strerror().Stig Bjørlykke1-1/+2
Remove our local strerror implementation. Mark strerror as locale unsafe API. This fixes bug 5715. svn path=/trunk/; revision=37812
2011-06-23Add GDK deprecated functions.Anders Broman1-86/+336
svn path=/trunk/; revision=37765
2011-05-26Inspired by one of the changes from r37406 and bug 2794: detect hf abbreviationsJeff Morriss1-0/+4
with two or more periods in a row. Fix one case of that. svn path=/trunk/; revision=37407
2011-04-21"Upgrade" gtk_combo to 'E'.Anders Broman1-163/+163
svn path=/trunk/; revision=36746
2011-03-29Prohibit (memory-unsafe) g_sprintf() and g_vsprintf().Jeff Morriss1-0/+2
svn path=/trunk/; revision=36390
2011-03-08W -> E for g_clist funktions.Anders Broman1-143/+143
svn path=/trunk/; revision=36171
2011-03-02As suggested by Anders: when we detect non-ASCII characters, print the lineJeff Morriss1-7/+10
number on which we found them. svn path=/trunk/; revision=36122
2011-02-12There is a better (and faster) way to see if all the members of one list areJeff Morriss1-24/+28
in another list: convert the 2nd list to a hash. This speeds checking for ett_ variables up considerably. Store the pattern to match ett_ variable names in a variable (since it's used 3 times). Only match ett_ variable declarations that start on their own line (hopefully to speed things up a bit). svn path=/trunk/; revision=35929
2011-02-11Add a function to verify that ett_ variables are registered (or at leastJeff Morriss1-3/+99
stored in an array which will hopefully be registered). This is a work-in-progress, so the function is not called. It is also EXTREMELY slow on big files. (Or maybe it's looping... I haven't yet had the patience to let it finish processing packet-rrc.c .) svn path=/trunk/; revision=35923
2011-02-11Check for places where tvb_bytes_to_str() or tvb_get_bytes_to_str_punct()Jeff Morriss1-3/+7
should be used (instead of the non-tvb functions with a call to tvb_get_ptr()). Use those functions in a bunch of places. svn path=/trunk/; revision=35911
2011-02-11Oops, put a comma backJeff Morriss1-1/+1
svn path=/trunk/; revision=35910
2011-02-11Clean up indentationJeff Morriss1-378/+378
svn path=/trunk/; revision=35909
2011-02-10Add (commented-out for now) code to check certain function calls for embeddedJeff Morriss1-3/+44
(in the argument list) calls to tvb_get_ptr(). svn path=/trunk/; revision=35906
2011-02-04White space changes.Anders Broman1-71/+71
svn path=/trunk/; revision=35825
2011-02-02Add GTK 2.22 deprecated functionsAnders Broman1-308/+320
svn path=/trunk/; revision=35759
2011-01-10Revert 35447 and 35364: remove comments and strings in one regex (so it ↵Jeff Morriss1-9/+3
doesn't get confused by things like /* inside a string). And don't remove comments+strings before checking the hf's. svn path=/trunk/; revision=35453
2011-01-10Remove the comments and strings separately so that we can check the hf's ↵Jeff Morriss1-3/+9
when the comments are gone but the strings are not. svn path=/trunk/; revision=35447
2011-01-06Prohibit strtoull(): Windows doesn't have it. (Putting this in just saves ↵Jeff Morriss1-1/+3
waiting for the buildbot to complain.) svn path=/trunk/; revision=35410
2011-01-06Let's discourage the use of g_warning in dissectors. Either use one ofGuy Harris1-0/+1
the dissector-bug macros, or try your best to dissect a packet that's "wrong". svn path=/trunk/; revision=35409
2011-01-04Check hf entries *after* removing comments (in case there are commented-out ↵Jeff Morriss1-3/+3
entries). svn path=/trunk/; revision=35364
2011-01-04Detect (and error on) NULL or empty abbreviations. Wireshark aborts on the ↵Jeff Morriss1-1/+5
former and warns on the latter. svn path=/trunk/; revision=35363
2010-12-20Deprecate dissector_add(), dissector_change(), dissector_delete(),Jeff Morriss1-967/+977
dissector_get_port_handle(), dissector_reset(), dissector_try_port(), dissector_try_port_new(), and next_tvb_add_port(). Re-tabify the file. svn path=/trunk/; revision=35229
2010-10-30Make the hf_ checks errors (they've been running clean for a while now anyway).Jeff Morriss1-11/+24
svn path=/trunk/; revision=34711
2010-10-08Fix the blurb regexp (sigh)Jeff Morriss1-2/+2
svn path=/trunk/; revision=34418
2010-10-07Escape the pipe (alternation) in the display regexp.Jeff Morriss1-2/+2
svn path=/trunk/; revision=34406
2010-10-07Tighten the blurb regexp. Check for leading/trailing white space in blurbs. ↵Jeff Morriss1-3/+12
Check for any white space in the abbreviation. svn path=/trunk/; revision=34405
2010-10-06Enable hf checks by default. Add a check to see if the abbreviation is ↵Jeff Morriss1-3/+6
equal to the hf_variable_name. svn path=/trunk/; revision=34398
2010-10-02Don't use a regexp to compare the name to the blurb, just convert them both ↵Jeff Morriss1-1/+1
to lower case before doing the comparison. svn path=/trunk/; revision=34324
2010-10-02When checking hf, do a case-insensitive comparison between the name and the ↵Jeff Morriss1-2/+2
blurb. svn path=/trunk/; revision=34323
2010-09-24Inspired by https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3548 :Jeff Morriss1-0/+62
Add the option to check hf entries for various problems. This is disabled by default for the moment as it's quite noisy. The regexps may need some additional fine tuning (or maybe simplification), but they seem to work pretty well. Arguably this might make more sense in checkhf.pl but it was easier to integrate into this script. svn path=/trunk/; revision=34240
2010-09-15Follow up to bug 5209 and rev 34115:Jeff Morriss1-0/+8
%hh is C99 so remove it from packet-ssl-utils and add it to the banned list (similar to %ll) in checkAPIs.pl . svn path=/trunk/; revision=34120
2010-07-20All use of deprecated GtkOptionMenu functions fixed: Error if any usage found.Bill Meier1-15/+15
Warn instead of Error for several deprecated GTK functions used recently in Wireshark source (1 GtkCombo function and 2 GtkItemFactory functions). (ToDo: replace remaining use of GtkCombo and all use of GtkItemFactory). svn path=/trunk/; revision=33598
2010-06-18Add a few deprecated GObject fcns;Bill Meier1-6/+10
Fix some typos and capitalization. svn path=/trunk/; revision=33254
2010-06-17Add deprecated from GLib 2.24Bill Meier1-2/+7
svn path=/trunk/; revision=33247
2010-06-17Add GTK deprecated from GTK 2.20.Bill Meier1-3/+48
svn path=/trunk/; revision=33246
2010-05-24Fix the value_string regexp so it doesn't match value_string_ext (which we ↵Jeff Morriss1-22/+22
don't have to check for NULL termination and the like) svn path=/trunk/; revision=32937
2010-05-02Run deprecated-gtk-todoon all files in the gtk dir.Anders Broman1-2/+2
svn path=/trunk/; revision=32638
2010-03-25(Minor): Improve an output message.Bill Meier1-2/+2
svn path=/trunk/; revision=32277
2009-12-29gtk_entry_append_text no longer used by Wireshark: Mark as deprecated-gtk ↵Bill Meier1-1/+1
('W" => 'E') svn path=/trunk/; revision=31387
2009-12-29gtk_progress_bar_update no longer used by Wireshark: Mark as deprecated ('W" ↵Bill Meier1-1/+1
=> 'E'). svn path=/trunk/; revision=31385
2009-12-29Mark certain GTK functions now unused by Wireshark as deprecated ("W" ==> 'E');Bill Meier1-276/+276
Rework usage() text slightly; Clean up whitespace (untabify & etc). svn path=/trunk/; revision=31381
2009-12-28Update GLib/GTK deprecated lists to match current stable Glib/GTK;Bill Meier1-27/+38
Various other minor changes .... svn path=/trunk/; revision=31374
2009-12-08Following bug 4302 added ctime() to the deprecated list.Jaap Keuter1-0/+1
svn path=/trunk/; revision=31210