secur32: invert error handling conditions in order to decrease indentation in secur32/wrapper.c.

Yuval Fledel yuvalfl at gmail.com
Fri Apr 13 17:56:44 CDT 2007


The attached patch invert if conditions in secur32/wrapper.c.

When an error is detected and no cleanup is required, the function
will return immediately, saving the need to keep the result value and
to open a new block. Usually 2-3 indentation levels are removed in
each function.

The patch will make the code smaller without any functionality change
- the patch is a no-op.

Each diff chunk is independent, which should ease reviewing.

 wrapper.c | 1252 ++++++++++++++++++++++++++------------------------------------
 1 file changed, 545 insertions(+), 707 deletions(-)

Changelog:
    secur32: invert error handling conditions in order to decrease
indentation in secur32/wrapper.c.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: secur32-wrapper-invert-conditions.patch
Type: text/x-patch
Size: 53828 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070414/8b63ddb5/secur32-wrapper-invert-conditions-0001.bin


More information about the wine-patches mailing list