Commit graph

13 commits

Author SHA1 Message Date
Kp 9a5d0f6f09 Use symbolic values for segment/object first/none 2014-01-06 04:17:55 +00: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 203b85a0b1 Make Edge_between_sides static const 2013-11-28 00:27:43 +00:00
Kp 2714679284 Mark private functions static 2013-11-02 04:23:55 +00:00
Kp 547f5e33d2 Remove unused function compress_uv_coordinates_in_segment 2013-10-29 03:24:43 +00:00
Kp b0552d37c2 Remove unused function compress_uv_coordinates_all 2013-10-29 03:24:43 +00:00
Kp 3f111aa69f Remove unused function area_on_all_sides 2013-10-29 03:24:43 +00:00
Kp f2bb6a34c2 Remove unused function average_connectivity 2013-10-29 03:24:43 +00:00
Kp 77d13d1d28 Remove unused function set_average_light_on_all_fast 2013-10-29 03:24:43 +00:00
Kp 26bc496c91 Remove unused function print_normals 2013-10-29 03:24:43 +00:00
Kp 220bf37fd7 Remove unused function compute_uv_dist 2013-10-29 03:24:43 +00:00
Kp 16f897027b Remove unused function check_lighting_all 2013-10-29 03:24:42 +00:00
Kp 9a3e2520c0 Move similar/editor/seguvs.c -> similar/editor/seguvs.cpp 2012-11-17 06:14:09 +00:00
Renamed from similar/editor/seguvs.c (Browse further)