Go to file
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
common Add parentheses around casts of simple function calls 2016-06-16 03:56:44 +00:00
contrib Update Xcode project file listing (for editing purposes) 2016-03-06 13:05:37 +08:00
d1x-rebirth Rewrite simple pointer casts from C style to reinterpret_cast<> 2016-06-05 01:04:26 +00:00
d2x-rebirth Add parentheses around casts of simple function calls 2016-06-16 03:56:44 +00:00
Documentation Add TODO item for namespace changes 2015-12-18 04:08:24 +00:00
similar Add parentheses around casts of simple function calls 2016-06-16 03:56:44 +00:00
.gitignore ignore XCode user data 2014-12-06 22:43:12 -08:00
COPYING.txt corrected typo in COPYING.txt (it's to its) 2014-06-06 13:18:52 +02:00
GPL-3.txt Changed custom D1X license to GPLv3 2014-06-01 19:55:23 +02:00
INSTALL.markdown Add basic instructions on building Rebirth 2015-09-26 21:17:14 +00:00
SConstruct Describe git tag in banner output 2016-06-01 01:52:45 +00:00