Age | Commit message (Collapse) | Author |
|
Use configure.ac to handle platform differences where some
build hosts have only a python3, or only python, binary.
Related to https://github.com/htop-dev/htop/pull/6
|
|
This reverts commit 40ac7a88af5a2c7c0d03ca4ddb09cde01f7e80c5.
as it causes build failure on non-python3 platforms.
|
|
Also drop unused import
|
|
Extends the MakeHeader script to auto-generate correct "extern"
function declarations in some cases that it currently does not.
Related to https://github.com/hishamhm/htop/pull/981
|
|
as reported by lgtm.com
|
|
Header creation fails with non-utf8 locale and python3.
Simply set LC_ALL="C" and use python3 to reproduce the issue.
env LC_ALL="C" ./scripts/MakeHeader.py MetersPanel.c
Traceback (most recent call last):
File "./scripts/MakeHeader.py", line 32, in <module>
for line in file.readlines():
File "/usr/lib64/python3.5/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 956: ordinal not in range(128)
This changes is python2 and python3 compatible
cStringIO.StringIO module is removed because it is not able to accept unicode strings
https://docs.python.org/2/library/stringio.html#cStringIO.StringIO
|
|
|
|
Only write a new .h file if something changed for the header file being created.
This prevents a lot of recompilation during development
|
|
This is a work-in-progress, code is currently broken.
(Some actions, and notably, the header, are missing.)
|
|
|
|
|
|
|
|
|
|
|
|
using the 'static' storage class instead. Automatically generates
'extern' declarations in headers for non-static data.
|
|
|
|
|