]> granicus.if.org Git - graphviz/commit
[nfc] cast inputs to ctype.h 'is*' functions
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 3 Dec 2021 01:28:53 +0000 (17:28 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 4 Dec 2021 22:58:40 +0000 (14:58 -0800)
commit4dfd247a0b36b501c21d95b5a6506cceead22924
treec7e5019277613d16741baf3e406d72aefc8a89b9
parent380d3212a8b5a807126ec806a0e3e5293449e93a
[nfc] cast inputs to ctype.h 'is*' functions

The ctype.h `is*` functions are typically implemented as macros using a lookup
table. This is fine, but on Cygwin the compiler is somewhat picky about this:

  lib/ast/fmtesc.c:116:59: warning: array subscript has type char
    [-Wchar-subscripts]
    116 |                           (c == '#' && (b == f || isspace(*(b - 1)))
        |                                                           ^~~~~~~~

This change squashes these warnings.
27 files changed:
cmd/tools/ccomps.c
cmd/tools/colxlate.c
cmd/tools/graphml2gv.c
cmd/tools/gv2gml.c
cmd/tools/gxl2gv.c
lib/ast/fmtesc.c
lib/ast/strmatch.c
lib/cgraph/write.c
lib/common/args.c
lib/common/emit.c
lib/common/utils.c
lib/common/xml.c
lib/expr/excontext.c
lib/expr/exeval.c
lib/expr/exparse.y
lib/expr/extoken.c
lib/fdpgen/xlayout.c
lib/gvc/gvconfig.c
lib/gvc/gvdevice.c
lib/gvpr/gvpr.c
lib/neatogen/adjust.c
lib/neatogen/neatoinit.c
lib/sfdpgen/sfdpinit.c
lib/sfio/sftable.c
lib/sfio/sfvprintf.c
lib/sfio/sfvscanf.c
lib/xdot/xdot.c