mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Sorry about the mega-patch.
This is a work-in-progress, code is currently broken. (Some actions, and notably, the header, are missing.)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user