Kp
2243cd7f58
Use xrange for loops with zero start and constant numerical end
...
s/for\s*(\s*\(\w\+\)\s\+\(\w\+\)\s*=\s*0\+u\?\s*;\s*\2\s*\(!=\|<\)\s*\([0-9]\+\)u\?\s*;\s*\(++\s*\2\|\2\s*++\s*\))/range_for (const \1 \2, xrange(\4u))/
2019-05-04 18:27:36 +00:00
Kp
063bf29225
Enable -Wimplicit-fallthrough=5; fix resulting breaks
...
This enables using -Wimplicit-fallthrough with ccache+distcc, which
strip the fallthrough comments, but do not strip the attribute
annotationns.
2019-04-04 04:29:03 +00:00
Kp
12b57e84e6
Switch most in-tree http:// links to https://
...
For each link given as http://, verify that the site is accessible over
https:// and, if so, switch to it. These domains were converted:
* llvm.org
* clang.llvm.org
* en.cppreference.com
* www.dxx-rebirth.com
* www.libsdl.org
* www.scons.org
2018-09-02 00:57:29 +00:00
Kp
bba8a327a0
Remove use of -Wno-implicit-fallthrough
2018-08-24 02:58:21 +00:00
Kp
e035fb215a
Cache width in libmve decoder
2017-10-14 17:10:31 +00:00
Kp
ea153a60fa
Switch libmve to C++ casts
2016-09-04 00:02:52 +00:00
Kp
cb99240c2c
Remove useless casts in d2x-rebirth/libmve/decoder8.cpp
2016-08-17 04:44:22 +00:00
Kp
19f31eb420
Rewrite simple pointer casts from C style to reinterpret_cast<>
...
This pass only targets int8_t and uint8_t.
s/(\s*\(u\?int8_t\s*\*\+\)\s*)\s*(/reinterpret_cast<\1>(/g
2016-07-03 00:54:14 +00:00
Kp
a7ceee3c03
Add parentheses around target of simple unsigned char
casts
...
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.
s/(\s*unsigned\s\+char\s*\(\*\+\)\s*)\s*\([&+-]\?\)\([[:alnum:]_.]\+\s*->\s*\)*\([[:alnum:]_.]\+\)\(\s*\([];+>)*\/^%,|&<>]\)\|$\|\(\s*-\s*[^>]\)\)/(uint8_t \1)(\2\3\4)\5/g
2016-07-03 00:54:14 +00:00
Kp
7243e76c80
Fix gcc-4.6 decoder8 build
...
Fixes: 8a28f7e1c2
("Use array<> for movie decoder")
2015-05-22 03:33:20 +00:00
Kp
8a28f7e1c2
Use array<> for movie decoder
2015-04-02 02:36:56 +00:00
Kp
4e368ac946
Make mve args const
2014-10-10 02:57:07 +00:00
Kp
c79281de1e
Propagate for variables in d2x-rebirth/libmve/decoder8.cpp
2014-09-26 02:42:15 +00:00
zico
ad7cb106bc
Changed custom D1X license to GPLv3
2014-06-01 19:55:23 +02:00
Kp
75c229c6bf
Normalize con_printf newline usage
2013-12-07 21:13:37 +00:00
Kp
20a9c83182
Move d2x-rebirth/libmve/decoder8.c -> d2x-rebirth/libmve/decoder8.cpp
2013-12-01 23:57:00 +00:00