libvirt/src/xen
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
..
block_stats.c build: rename files.h to virfile.h 2011-07-21 10:34:51 -06:00
block_stats.h Remove virConnectPtr from virRaiseErrorFull 2011-04-17 07:22:23 +02:00
xen_driver.c Cleanup for a return statement in source files 2012-03-26 14:45:22 -06:00
xen_driver.h Rename hash.h and hash.c to virhash.h and virhash.c 2012-01-26 14:11:13 +00:00
xen_hypervisor.c Cleanup for a return statement in source files 2012-03-26 14:45:22 -06:00
xen_hypervisor.h Fixed URI parsing 2012-02-24 16:49:21 -07:00
xen_inotify.c xen: drop unused callbacks 2011-07-28 14:57:55 -06:00
xen_inotify.h drivers: prefer unsigned int for flags 2011-07-07 14:15:37 -06:00
xend_internal.c Cleanup for a return statement in source files 2012-03-26 14:45:22 -06:00
xend_internal.h xml: use long long internally, to centralize overflow checks 2012-03-07 18:24:43 -07:00
xm_internal.c Cleanup for a return statement in source files 2012-03-26 14:45:22 -06:00
xm_internal.h xml: use long long internally, to centralize overflow checks 2012-03-07 18:24:43 -07:00
xs_internal.c Cleanup for a return statement in source files 2012-03-26 14:45:22 -06:00
xs_internal.h xml: use long long internally, to centralize overflow checks 2012-03-07 18:24:43 -07:00