Changeset - 2faab40fad47
[Not reviewed]
0 1 0
HanzZ - 13 years ago 2012-04-10 19:01:09
hanzz.k@gmail.com
Fixed return values
1 file changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
backends/libpurple/gen_dynamic_purple.py
Show inline comments
 
@@ -54,6 +54,8 @@ def handle_header(header, method):
 
	for i in range(len(lines)):
 
		line = lines[i]
 
		if line.find(method) != -1:
 
			if line.startswith(method):
 
				line = lines[i-1][:-1] + line
 
			m = line[:-1]
 
			l = unicode(m).strip()
 
			if l.endswith(")"):
 
@@ -76,6 +78,8 @@ def handle_header(header, method):
 
				or l.endswith(")")):
 
				continue;
 

	
 
			m = m.replace("G_GNUC_NULL_TERMINATE", "")
 

	
 
			if not m in definitions:
 
				print "found", method[:-1], "in", header
 
				definitions += [m]
0 comments (0 inline, 0 general)