Commit graph

10 commits

Author SHA1 Message Date
Kp 44d1924e96 Use special type for player callsign 2014-07-05 19:20:56 +00:00
Kp 1e5b19c175 List initialize scores 2014-07-04 04:16:48 +00:00
zico ad7cb106bc Changed custom D1X license to GPLv3 2014-06-01 19:55:23 +02:00
Kp 073f00974a Eliminate uses of the typedef struct X { ... } X; pattern
C++ does not require this pattern.

import re, fileinput
to = re.compile(r'^typedef struct ([a-z_A-Z]+)\s*{')
tc = re.compile(r'^}(.*?)\s*([a-z_A-Z]+);$')
osn = None
for line in fileinput.input(inplace=True):
	m = to.match(line)
	if m:
		osn = m.group(1)
		print 'struct %s\n{' % osn
		continue
	if osn:
		m = tc.match(line)
		if m:
			csn = m.group(2)
			if osn == csn:
				print '}%s;' % m.group(1)
				osn = None
				continue
			else:
				osn = None
	print line,
2013-12-28 22:48:07 +00:00
Kp 51e328e538 Use score_rputs instead of score_rprintf where possible 2013-12-17 04:03:35 +00:00
Kp 92e8cb7a31 Add type checking to newmenu subfunction userdata 2013-12-15 21:54:38 +00:00
Kp cea46651fc Check type of window handler function 2013-12-15 18:51:26 +00:00
Kp 02f4c007e3 Make scores_handler fades[] static const 2013-12-11 04:06:35 +00:00
Kp 2714679284 Mark private functions static 2013-11-02 04:23:55 +00:00
Kp aaf5153865 Move similar/main/scores.c -> similar/main/scores.cpp 2012-11-11 22:12:51 +00:00
Renamed from similar/main/scores.c (Browse further)