Martin Kletzander 9943276fd2 Cleanup for a return statement in source files
Return statements with parameter enclosed in parentheses were modified
and parentheses were removed. The whole change was scripted, here is how:

List of files was obtained using this command:
git grep -l -e '\<return\s*([^()]*\(([^()]*)[^()]*\)*)\s*;' |             \
grep -e '\.[ch]$' -e '\.py$'

Found files were modified with this command:
sed -i -e                                                                 \
's_^\(.*\<return\)\s*(\(\([^()]*([^()]*)[^()]*\)*\))\s*\(;.*$\)_\1 \2\4_' \
-e 's_^\(.*\<return\)\s*(\([^()]*\))\s*\(;.*$\)_\1 \2\3_'

Then checked for nonsense.

The whole command looks like this:
git grep -l -e '\<return\s*([^()]*\(([^()]*)[^()]*\)*)\s*;' |             \
grep -e '\.[ch]$' -e '\.py$' | xargs sed -i -e                            \
's_^\(.*\<return\)\s*(\(\([^()]*([^()]*)[^()]*\)*\))\s*\(;.*$\)_\1 \2\4_' \
-e 's_^\(.*\<return\)\s*(\([^()]*\))\s*\(;.*$\)_\1 \2\3_'
2012-03-26 14:45:22 -06:00
..
2012-03-12 08:09:37 -06:00
2012-03-12 08:09:37 -06:00
2012-03-02 06:57:57 -07:00
2011-12-03 17:11:56 -07:00
2012-02-29 17:42:18 +08:00
2011-11-24 11:44:08 +01:00
2012-02-29 12:27:12 +01:00
2011-12-03 17:11:56 -07:00
2012-01-25 18:00:47 -07:00
2012-03-06 06:03:46 -05:00
2012-03-23 21:56:20 +08:00
2012-03-07 18:24:43 -07:00
2012-02-08 11:26:20 +01:00
2012-02-20 11:21:00 +08:00
2011-12-08 11:37:24 +08:00