*.c: Separate string function calls according to text/binary usage.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 21 Oct 2019 01:38:59 +0000 (02:38 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 25 Nov 2019 17:43:08 +0000 (17:43 +0000)
commite080209b41fd9068d3a6f65a1177969b9450809f
tree4285afa96a8491b7fed402d3c92c6594d1519ee6
parentdd9db1046e4da149e246938895258e8b6025958e
*.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.
pyke.c
pyke.h