9de54cfa74
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, |
||
---|---|---|
.. | ||
2dsline.cpp | ||
bitblt.cpp | ||
bitmap.cpp | ||
bitmap.h | ||
box.cpp | ||
canvas.cpp | ||
circle.cpp | ||
clip.h | ||
disc.cpp | ||
gpixel.cpp | ||
line.cpp | ||
pixel.cpp | ||
rect.cpp | ||
rle.cpp | ||
scalec.cpp |