dxx-rebirth/common/texmap
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
..
ntmap.cpp Rewrite simple integer casts from C style to static_cast<> 2016-06-05 01:04:26 +00:00
scanline.cpp Add parentheses around casts of simple function calls 2016-06-16 03:56:44 +00:00
scanline.h Uninline namespace dcx 2015-12-13 18:00:49 +00:00
texmapl.h Move namespace dsx handling to dsx-ns.h 2016-03-19 19:08:10 +00:00
tmapflat.cpp Remove unnecessary gr_setcolor calls 2016-02-12 04:02:28 +00:00