dxx-rebirth/similar
Kp 0cb099c5e4 Add parentheses around casts of simple function calls
C casts do not require parentheses.  C++ casts require grouping around
the target.  Prepare for conversion to C++ casts by adding otherwise
unnecessary parentheses around the target of simple C casts.

Exclude float|double from the second substitution.  Including it
rewrites medmisc.cpp in an incorrect way, and excluding it does not
exclude any valid rewrites.

s/(\(int\|signed\|float\|double\|long\|short\|unsigned\))\s*\(\w\+\s*(\s*\w\+\s*)\)/(\1)(\2)/
s/(\((\(int\|signed\|long\|short\|unsigned\))(\w\+\s*(\s*\w\+\s*))\))/\1/g
2016-06-16 03:56:44 +00:00
..
2d Rewrite simple integer casts from C style to static_cast<> 2016-06-05 01:04:26 +00:00
3d Rewrite simple integer casts from C style to static_cast<> 2016-06-05 01:04:26 +00:00
arch Add parentheses around target of more complicated casts 2016-06-12 03:45:37 +00:00
editor Add parentheses around casts of simple function calls 2016-06-16 03:56:44 +00:00
main Fixed regression from bbda32f78d8f227785fe294b5a9786724611d370: Due to GR_FADE_LEVELS being unsigned if statements in draw_player_ship() broke regarding the cloak fade levels. Fixed by some casts. 2016-06-13 14:43:04 +02:00
misc Rewrite simple pointer casts from C style to reinterpret_cast<> 2016-06-05 01:04:26 +00:00