diff options
author | John Keeping | 2015-08-13 12:14:19 +0100 |
---|---|---|
committer | Jason A. Donenfeld | 2015-08-13 15:38:35 +0200 |
commit | 7105a78b17b118866aee77735e26cffcd1fd08fd (patch) | |
tree | d41495b5e039be7cd5943e206b4f1a173542c07c /filters/syntax-highlighting.sh | |
parent | e09574bdf6cfbd21ff0a58a18f34d4a11db824d7 (diff) | |
download | cgit-7105a78b17b118866aee77735e26cffcd1fd08fd.tar.gz |
ui-tree: use "sane" isgraph()
Git's git-compat-util.h defines a "sane ctype" that does not use locale
information and works with signed chars, but it does not include
isgraph() so we have included ctype.h ourselves.
However, this means we have to include a system header before
git-compat-util.h which may lead to the system defining some macros
(e.g. _FILE_OFFSET_BITS on Solaris) before git-compat-util.h redefines
them with a different value. We cannot include ctype.h after
git-compat-util.h because we have defined many of its functions as
macros which causes a stream of compilation errors.
Defining our own "sane" isgraph() using Git's sane isprint() and
isspace() avoids all of these problems.
Signed-off-by: John Keeping <john@keeping.me.uk>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions