From: Mark Wooding Date: Mon, 21 Oct 2019 01:38:59 +0000 (+0100) Subject: *.c: Separate string function calls according to text/binary usage. X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/commitdiff_plain/e080209b41fd9068d3a6f65a1177969b9450809f?hp=e080209b41fd9068d3a6f65a1177969b9450809f *.c: Separate string function calls according to text/binary usage. Don't use the `PyString_...' functions directly. Instead, define two collections of macros `TEXT_...' and `BIN_...', which can be used on text and binary strings respectively. The two sets are slightly different, because they've been designed to adapt to Python 3's different interfaces. There are no `PyString...' calls remaining outside of these macros. ---