summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-01-21 23:27:31 -0200
committerHisham Muhammad <hisham@gobolinux.org>2015-01-21 23:27:31 -0200
commit3383d8e5561dfc6fb2b65e0a194df94ccb5e08af (patch)
treedafba704561386b31b6b8af6dafb5b9a2ba7453c /scripts
parent36b78328843d0dae0d0fadbd0e814a8a1546327c (diff)
Sorry about the mega-patch.
This is a work-in-progress, code is currently broken. (Some actions, and notably, the header, are missing.)
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/MakeHeader.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/MakeHeader.py b/scripts/MakeHeader.py
index 74bdb4fd..bcf1005a 100755
--- a/scripts/MakeHeader.py
+++ b/scripts/MakeHeader.py
@@ -56,6 +56,8 @@ for line in file.readlines():
state = SKIP
elif equals != -1:
out.write("extern " + line[:equals] + ";" )
+ elif line.startswith("typedef struct"):
+ state = SKIP
elif line[-1] == "{":
out.write( line[:-2].replace("inline", "extern") + ";" )
state = SKIP

© 2014-2024 Faster IT GmbH | imprint | privacy policy