Commit Graph

16 Commits

Author SHA1 Message Date
Gerald Combs 83aacf0a09 Add support for "API groups" in checkAPIs.pl. Make the "prohibited"
and "deprecated" groups the default. Add an "abort" group for code that
shouldn't exit the program. Update the makefiles to call "checkAPIs.pl
-g abort" for dissectors. Remove a dependency on "cat" in checkAPIs.pl.

svn path=/trunk/; revision=25614
2008-06-26 22:20:05 +00:00
Jeff Morriss a5cee04fad Move the file utility functions from wiretap to libwsutil so that
libwireshark (and the plugins using those functions) do not depend on
wiretap on Windows.

While doing that, rename the eth_* functions to ws_*.

svn path=/trunk/; revision=25354
2008-05-22 15:46:27 +00:00
Bill Meier 5a43cd6358 Check for a few addt'l functions...
svn path=/trunk/; revision=25341
2008-05-21 14:49:50 +00:00
Jeff Morriss 547cda2f1f Update comments.
svn path=/trunk/; revision=25286
2008-05-13 12:49:32 +00:00
Anders Broman db6d0b9a4c Run checkAPI in plugins dir.
svn path=/trunk/; revision=25259
2008-05-08 18:24:08 +00:00
Anders Broman 9cc9c92e75 Fix some of the Errors/warnings detected by checkapi,
make non ASCII char a warning for now.

svn path=/trunk/; revision=25240
2008-05-05 20:38:27 +00:00
Anders Broman 163d568fe6 Add depreceated glib API:s
svn path=/trunk/; revision=25230
2008-05-05 06:27:15 +00:00
Jeff Morriss 74a602085e Ban strdup() and strndup().
svn path=/trunk/; revision=25045
2008-04-15 12:56:23 +00:00
Jeff Morriss eeaa432e2a Warn if a file does not have an SVN Id tag in it.
svn path=/trunk/; revision=24587
2008-03-08 21:23:14 +00:00
Stig Bjørlykke 34d9fa6c56 Add strncpy and strncat to the list of prohibited APIs.
svn path=/trunk/; revision=24517
2008-03-01 12:04:16 +00:00
Jeff Morriss 068f67a499 Warn if we find %ll in the source
svn path=/trunk/; revision=24182
2008-01-24 22:02:55 +00:00
Jeff Morriss bb66032801 Add check for non-ASCII characters (defined, for now, as any whose value is > 0x80) anywhere in the source files (as per discussion on -dev). Amazingly, this does not appear to slow the tool down too much.
svn path=/trunk/; revision=24177
2008-01-24 18:18:28 +00:00
Jeff Morriss 0e339e83ed Add the file op APIs (e.g., open()) to the list of prhobited APIs (should use the eth_* versions instead).
svn path=/trunk/; revision=24057
2008-01-10 15:03:58 +00:00
Guy Harris c6420ae10b Ban strcasecmp(), strncasecmp(), g_strcasecmp(), and g_strncasecmp()
while we're at it.  More to come....

svn path=/trunk/; revision=23626
2007-11-27 20:06:20 +00:00
Jeff Morriss c641bfb363 When we've found C++ style comments, tell which file we found them in.
svn path=/trunk/; revision=23609
2007-11-26 18:59:32 +00:00
Jeff Morriss 58b8fef9ea As discussed on the -dev list quite a while ago: a small tool to check Wireshark code (or at least parts of it) for "bad" things (C++ style comments and API/function calls that should not be used). I'm checking in because I almost missed some C++ style comments in a file I was contemplating checking in; this tool can help us (at least me) avoid such problems in the future.
svn path=/trunk/; revision=22509
2007-08-15 20:35:14 +00:00