chiark / gitweb /
Consistently make keyword-lists be static and read-only.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 9 Nov 2018 12:16:59 +0000 (12:16 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 10 Nov 2018 01:30:58 +0000 (01:30 +0000)
commit827f89d7920979b763e228970132c3624a921b13
tree9c68249774fcdcc00fb8c7eb802f3db84a66abba
parentf22cdfa9b4499b738ddaa21b260867b5e7bb3c9a
Consistently make keyword-lists be static and read-only.

We had an exciting mix of static and automatic storage durations, and
none were marked as `const'.  Python isn't `const'-correct, so we have
to cast away the `const'-ness: introduce a new macro `KWLIST' to do
this.

Also constify some other related tables, such as method names in
`pgev_python'.
15 files changed:
algorithms.c
buffer.c
bytestring.c
catacomb-python.h
ec.c
field.c
group.c
key.c
mp.c
passphrase.c
pgen.c
pubkey.c
rand.c
share.c
util.c