mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-17 07:07:10 +00:00
7a4e5612de
Mostly done using the following Ruby script: (Dir.glob('**/*.cpp') + Dir.glob('**/*.h')).each do |file| s = File.read(file, encoding: 'iso8859-1') t = s.gsub(/(([\w_.\[\]]+)\s*=\s*new\s+\S+?\[[^\]]+?\](?!\())([^\{\}]*?)\n\s+memset\(\s*\2\s*,\s*0\s*,[^;]*;/m, '\1()\3') if t != s File.open(file, 'w') { |io| io.write(t) } end end |
||
---|---|---|
.. | ||
codecs | ||
bmp.cpp | ||
bmp.h | ||
cel_3do.cpp | ||
cel_3do.h | ||
gif.cpp | ||
gif.h | ||
iff.cpp | ||
iff.h | ||
image_decoder.h | ||
jpeg.cpp | ||
jpeg.h | ||
module.mk | ||
pcx.cpp | ||
pcx.h | ||
pict.cpp | ||
pict.h | ||
png.cpp | ||
png.h | ||
tga.cpp | ||
tga.h |