aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2016-04-11 13:00:21 +0200
committerDaniel Lange <DLange@git.local>2016-04-11 13:00:21 +0200
commit9675cf654d86464344e56705db7a71ea17f76c6f (patch)
tree86077a344c002694db7ba4f7295d8a64b3601258 /scripts
parent85bb4ad9cb820ac3b8e935a930084a06cbfd2847 (diff)
downloaddebian_htop-9675cf654d86464344e56705db7a71ea17f76c6f.tar.gz
debian_htop-9675cf654d86464344e56705db7a71ea17f76c6f.tar.bz2
debian_htop-9675cf654d86464344e56705db7a71ea17f76c6f.zip
Imported Upstream version 0.6.6+svn20070915upstream/0.6.6+svn20070915
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/MakeHeader.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/MakeHeader.py b/scripts/MakeHeader.py
index 9d78c48..a84ae74 100755
--- a/scripts/MakeHeader.py
+++ b/scripts/MakeHeader.py
@@ -21,6 +21,8 @@ class writer:
self.file.write(text + "\n")
out = writer(out)
+print("Generating "+name+".h")
+
selfheader = '#include "' + name + '.h"'
out.write( "/* Do not edit this file. It was automatically generated. */" )
@@ -52,7 +54,7 @@ for line in file.readlines():
elif equals != -1:
out.write("extern " + line[:equals] + ";" )
elif line[-1] == "{":
- out.write( line[:-2] + ";" )
+ out.write( line[:-2].replace("inline", "extern") + ";" )
state = SKIP
else:
out.write( line )

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