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
|
fdd2dd65c7
|
Use underlying type for state_game_id
This avoids the need for a header to declare it.
|
2013-10-26 03:50:27 +00:00 |
|
Kp
|
1d073475e7
|
Mark various headers for C linkage
|
2013-10-20 22:49:11 +00:00 |
|
Kp
|
00f0fddabc
|
Centralize handling of SysUsePlayersDir
|
2013-10-06 21:04:29 +00:00 |
|
Kp
|
06c83c9393
|
Move similar/main/gamecntl.c -> similar/main/gamecntl.cpp
|
2013-10-05 21:35:58 +00:00 |
|
Kp
|
c58c4e4d06
|
Move declarations to headers
|
2013-10-03 03:11:52 +00:00 |
|
Kp
|
a1ba420031
|
Mark various parameters and variables as const
|
2013-07-20 23:12:24 +00:00 |
|
Kp
|
5d487f4d4d
|
Move */main/state.h -> common/main/state.h
|
2013-03-03 01:03:33 +00:00 |
|