dxx-rebirth/common
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
..
2d Switch to C++ linkage 2013-12-06 03:35:32 +00:00
3d Switch to C++ linkage 2013-12-06 03:35:32 +00:00
arch Store joystick button text in one allocation 2013-12-01 22:42:47 +00:00
editor Make med_functions const 2013-11-28 00:27:43 +00:00
include Switch to C++ linkage 2013-12-06 03:35:32 +00:00
main Switch to C++ linkage 2013-12-06 03:35:32 +00:00
maths Mark private functions static 2013-11-02 04:23:55 +00:00
misc Remove now unused fgets_unlimited 2013-12-06 03:28:59 +00:00
texmap Switch to C++ linkage 2013-12-06 03:35:32 +00:00
ui Mark ui_messagebox button strings const 2013-12-06 00:24:07 +00:00