zico
ad7cb106bc
Changed custom D1X license to GPLv3
2014-06-01 19:55:23 +02:00
Kp
073f00974a
Eliminate uses of the typedef struct X { ... } X; pattern
...
C++ does not require this pattern.
import re, fileinput
to = re.compile(r'^typedef struct ([a-z_A-Z]+)\s*{')
tc = re.compile(r'^}(.*?)\s*([a-z_A-Z]+);$')
osn = None
for line in fileinput.input(inplace=True):
m = to.match(line)
if m:
osn = m.group(1)
print 'struct %s\n{' % osn
continue
if osn:
m = tc.match(line)
if m:
csn = m.group(2)
if osn == csn:
print '}%s;' % m.group(1)
osn = None
continue
else:
osn = None
print line,
2013-12-28 22:48:07 +00:00
Kp
b1c5307eb1
Use array for palette_array_t
2013-12-22 00:37:36 +00:00
Kp
a3d66a3b37
Add typedef palette_array_t for palette data
2013-12-22 00:05:13 +00:00
Kp
3b9b5ebfb0
Use RAII to manage function-local heap objects
2013-12-08 19:04:52 +00:00
Kp
9de54cfa74
Switch to C++ linkage
...
import fileinput
guard = 0
cxxguard = '#ifdef __cplusplus\n'
for line in fileinput.input(inplace=True):
if line == cxxguard:
guard = 1
continue
if guard:
if line == 'extern "C" {\n':
guard = 2
continue
if line == '}\n':
guard = 0
continue
if guard == 2:
assert(line == '#endif\n')
guard = 0
print cxxguard,
continue
print line,
2013-12-06 03:35:32 +00:00
Kp
2714679284
Mark private functions static
2013-11-02 04:23:55 +00:00
Kp
b4107e6526
Remove duplicate declarations
2013-10-03 03:11:52 +00:00
Kp
c58c4e4d06
Move declarations to headers
2013-10-03 03:11:52 +00:00
Kp
f9899a9f20
Mark various functions static
2013-10-03 03:11:51 +00:00
Kp
a881ee455e
Remove fix.h
2013-08-08 03:01:48 +00:00
Kp
c02a249263
Make gr_bitmap_scale_to static
2013-08-07 02:42:25 +00:00
Kp
68d3b08ef9
Remove unused function gr_rle_expand_scanline_generic_masked
2013-08-07 02:33:18 +00:00
Kp
1259006db5
Move common/2d/scalec.c -> common/2d/scalec.cpp
2013-07-27 22:30:54 +00:00
Kp
18a42e3e40
Move common/2d/rle.c -> common/2d/rle.cpp
2013-07-27 22:30:54 +00:00
Kp
a334ad0ab1
Move common/2d/rect.c -> common/2d/rect.cpp
2013-07-27 22:30:54 +00:00
Kp
63acd159cc
Move common/2d/pixel.c -> common/2d/pixel.cpp
2013-07-27 22:30:54 +00:00
Kp
c80a824136
Move common/2d/line.c -> common/2d/line.cpp
2013-07-27 22:30:54 +00:00
Kp
5832f0dbd9
Move common/2d/gpixel.c -> common/2d/gpixel.cpp
2013-07-27 22:30:54 +00:00
Kp
139a80b925
Move common/2d/disc.c -> common/2d/disc.cpp
2013-07-27 22:30:54 +00:00
Kp
46d02518bc
Move common/2d/circle.c -> common/2d/circle.cpp
2013-07-27 22:30:54 +00:00
Kp
b7abe1d77e
Move common/2d/canvas.c -> common/2d/canvas.cpp
2013-07-27 22:30:54 +00:00
Kp
6169fc5abc
Move common/2d/box.c -> common/2d/box.cpp
2013-07-27 22:30:54 +00:00
Kp
f7a030483f
Move common/2d/bitmap.c -> common/2d/bitmap.cpp
2013-07-27 22:30:53 +00:00
Kp
c2895e5176
Move common/2d/bitblt.c -> common/2d/bitblt.cpp
2013-07-27 22:30:53 +00:00
Kp
4577dd3977
Merge branch 'd2x-rebirth/master' into unification/master
2013-07-21 21:34:46 +00:00
Kp
d78fd3561b
Move bitmap clipping to eliminate warning
2013-06-23 04:34:40 +00:00
Kp
a10dbc7d4b
Move 2d/2dsline.c -> 2d/2dsline.cpp
2012-11-11 22:12:51 +00:00
Kp
2e3159a15f
Mark gr 2dsline functions static
2013-06-14 03:40:50 +00:00
Kp
5648874a37
Merge branch d2x-rebirth/master into unification/master
2013-06-14 03:31:59 +00:00
Kp
26cfa7b39c
Move */2d/2dsline.c -> common/2d/2dsline.c
2013-03-03 01:03:33 +00:00
Kp
9951b893ab
Move */2d/bitblt.c -> common/2d/bitblt.c
2013-03-03 01:03:33 +00:00
Kp
cc67fd23a2
Move */2d/bitmap.c,bitmap.h -> common/2d/bitmap.c,bitmap.h
...
Modify */2d/font.c to find the moved bitmap.h
2013-03-03 01:03:33 +00:00
Kp
ccd1268e9d
Move */2d/box.c -> common/2d/box.c
2013-03-03 01:03:33 +00:00
Kp
733c0f34da
Move */2d/canvas.c -> common/2d/canvas.c
2013-03-03 01:03:33 +00:00
Kp
016c2a44f5
Move */2d/circle.c -> common/2d/circle.c
2013-03-03 01:03:33 +00:00
Kp
55cb06f45f
Move */2d/disc.c -> common/2d/disc.c
2013-03-03 01:03:33 +00:00
Kp
4adefcdfa1
Move */2d/gpixel.c -> common/2d/gpixel.c
2013-03-03 01:03:33 +00:00
Kp
2d84c85915
Move */2d/clip.h,line.c -> common/2d/clip.h,line.c
2013-03-03 01:03:33 +00:00
Kp
2e7c092bb0
Move */2d/pixel.c -> common/2d/pixel.c
2013-03-03 01:03:33 +00:00
Kp
11f7182d45
Move */2d/poly.c -> common/2d/poly.c
2013-03-03 01:03:33 +00:00
Kp
54c847a88b
Move */2d/rect.c -> common/2d/rect.c
2013-03-03 01:03:33 +00:00
Kp
902e068d1c
Move */2d/rle.c -> common/2d/rle.c
2013-03-03 01:03:33 +00:00
Kp
227d1377fa
Move */2d/scalec.c -> common/2d/scalec.c
2013-03-03 01:03:33 +00:00