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, |
||
---|---|---|
.. | ||
clipper.cpp | ||
clipper.h | ||
draw.cpp | ||
globvars.cpp | ||
globvars.h | ||
instance.cpp | ||
matrix.cpp | ||
points.cpp | ||
rod.cpp | ||
setup.cpp |