*.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)
commitcfb291f03e0882cba9037be2a2756a6af41fb76a
tree5c3023d0e06cf1ba5295c2e5192b398e98cb3450
parentbe17c8c27ee7ae2e14fe34bb517484a11b1cf300
*.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.
15 files changed:
algorithms.c
bytestring.c
catacomb.c
ec.c
field.c
group.c
key.c
mp.c
passphrase.c
pgen.c
pubkey.c
pyke/pyke.c
pyke/pyke.h
rand.c
share.c