Commit Graph

40 Commits

Author SHA1 Message Date
ivo 56f0494615 suppress silly messages when checktree is not called from the root of the tree
but nevertheless has no specific arguments to work with. it will traverse
the tree from there, but obviously cannot find our externals.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25312 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-05 23:44:31 +00:00
ivo 86edf7b297 only check source code for gnuisms
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25311 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-05 23:41:59 +00:00
ivo 64d1a0d366 simpler and more easily expandable test whether we need a shortlist that
only contains .[ch] files


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25310 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-05 23:39:01 +00:00
ivo 9495e9701b test for presence of .svn directory if we are supposed to traverse the tree
according to svn info
.svn might be missing (i.e. after svn export)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25309 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-05 23:36:03 +00:00
ivo a46d864303 when gathering the list of files to check via svn info, also include
libpostproc.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25305 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-05 17:42:56 +00:00
ivo 2ac12d82d8 cosmetics/indentation
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25289 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-03 21:45:43 +00:00
ivo 284673cbf5 when gathering the list of files to check via svn info, also include
externals (libav*)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25288 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-03 21:43:48 +00:00
ivo 66a1addb00 add functions that are not specifically marked as being deprecated or obsolete,
but which are dangerous to use (possible race conditions, undefined filemode,
et cetera; use tmpfile(3) instead).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25287 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-03 21:40:54 +00:00
ivo d3fbd9a436 10l for me. I should read my own comments just above it ;)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25220 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-30 23:02:32 +00:00
ivo dd9d075405 less code for initializing default settings
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25219 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-30 23:01:30 +00:00
ivo 33ef887d5b add test for deprecated and obsolete functions
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25218 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-30 22:52:56 +00:00
ivo bb195ba780 Make the printoption function take the default values from the variable
names related to the flag name, with the possibility to override it if the
variable name is not the same as the flag name. This simplifies printing of
the help message and reduces the possibility of future errors.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23971 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-31 15:10:10 +00:00
ivo 58af77f9d8 cosmetics, indentation
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23970 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-31 14:51:56 +00:00
ivo f621fa2961 Shorten (un)setting of all test flags
Now that we have a list of all flags, we can set them to yes or no with a
for-loop.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23969 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-31 14:50:44 +00:00
ivo c9be32501b Much smaller command line parser
This removes all code duplication for setting and unsetting -(no)flags specified
on the command line


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23968 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-31 14:48:13 +00:00
ivo ce138ecc7f Update copyright info and license
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23960 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-31 08:17:35 +00:00
ivo 5e4f641679 cosmetics, break overly long lines
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23959 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-31 08:11:18 +00:00
ivo a5bda2e7af replace ^I by $TAB now that TAB is global
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23958 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-31 08:06:37 +00:00
ivo 446403aa3d only test for stupid code and reserved identifiers if there are any .c or .h
files


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23957 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-31 07:55:22 +00:00
ivo c5bf6bb1bd 10l, forgot to make TAB global
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23956 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-31 07:49:24 +00:00
ivo 59e2d4d3c9 Test for reserved identifiers.
Identifiers with two initial underscores or an initial underscore followed by
an uppercase letter are reserved globally for use by the compiler.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23955 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-31 07:45:06 +00:00
ivo 4b2e3c4a82 Add test for GNUisms
It currently tests for case ... ranges only, but other tests (like GNU
extensions to libc) can be added later



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23947 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-30 18:08:26 +00:00
ivo 78443eecf2 test for tab characters
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23253 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-05-07 17:34:31 +00:00
ivo 10a128ac7b do not run stupid code checks if chfilelist is empty
(i.e. it is run on non-c code only)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23251 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-05-07 17:17:10 +00:00
ivo 5a649978dd fix forgotten \
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22527 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-12 17:16:45 +00:00
ivo b8da7b60a8 do not rely on svn internals and use svn info instead
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22379 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-02-28 14:55:34 +00:00
ivo 88c04a0308 also respond to --help, -h and -? command line options
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22377 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-02-28 11:50:23 +00:00
ivo 98df2cb095 fix printing of -(no)svn option
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22376 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-02-28 11:48:32 +00:00
ivo f2ef84573b clarify -none command line option
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22375 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-02-28 11:46:53 +00:00
diego 0dc1093469 Use = instead of == for extra portability.
patch from NetBSD pkgsrc proxied by Sergey Svishchev, svs+mplayer grep ru


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20210 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-14 15:28:33 +00:00
ivo 71b5d4f1ae added checks for stupid code like casting return value of malloc and friends,
sizeof(char) and similar 1 byte types, &&1, ||0, +0, -0, *1, *0

typical usage:  ./checktree.sh -none -stupid -showcont somefile.c



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19090 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-07-14 22:05:49 +00:00
ivo b01075190b remove useless comment
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19088 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-07-14 21:38:20 +00:00
ivo 812a300c26 fix line >79 characters
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19085 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-07-14 15:12:05 +00:00
ivo 9cdd15595d fix matching of MSDOS line endings
The CVS-->Subversion conversion removed the ^M and it is impossible to
check one back in. Setting svn:eol-style to CRLF or CR is not an option
because it will change the whole file.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19084 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-07-14 15:08:31 +00:00
ivo 0928eb76d6 also omit configure.log and the generated help_mp.h from files to check
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19083 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-07-14 13:34:44 +00:00
ivo eb85c86a2c CVS --> Subversion
Note: commandline option(s) -(no)cvs changed to -(no)svn



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19082 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-07-14 12:57:37 +00:00
reimar 0337e0f26f add check for non-ascii charsets used in code and simplify showcont switch handling
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18088 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-14 10:47:40 +00:00
wanderer ec58ad4075 option to show the lines containing anomalies, patch by Ivo van Poorten
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17132 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-12-07 18:11:58 +00:00
ivo b7adc31f0a 10l
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16406 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-09-06 15:30:12 +00:00
ivo f7bdbb18cd Script to check (CVS) source-tree for anomalies, like MSDOS line endings etc..
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16241 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-17 01:50:05 +00:00