Fixed return values

This commit is contained in:
HanzZ 2012-04-10 19:01:09 +02:00
parent ee4e5ecb71
commit 2faab40fad

View file

@ -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]