dxx-rebirth/d1x-rebirth/main
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
..
bmread.cpp Move d1x-rebirth/main/bmread.c -> d1x-rebirth/main/bmread.cpp 2013-12-01 23:24:33 +00:00
custom.cpp Move d1x-rebirth/main/custom.c -> d1x-rebirth/main/custom.cpp 2013-11-09 18:07:28 +00:00
custom.h Switch to C++ linkage 2013-12-06 03:35:32 +00:00
hostage.cpp Move d1x-rebirth/main/hostage.c -> d1x-rebirth/main/hostage.cpp 2013-11-09 18:07:28 +00:00
snddecom.cpp Move d1x-rebirth/main/snddecom.c -> d1x-rebirth/main/snddecom.cpp 2013-11-09 18:07:28 +00:00
snddecom.h Switch to C++ linkage 2013-12-06 03:35:32 +00:00