*.c: Make all of the type-definition tables read-only.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 20 Oct 2019 21:46:05 +0000 (22:46 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 11 Apr 2020 11:44:14 +0000 (12:44 +0100)
commitc90f712e989f2ee557842c18fdb9a4df469c1859
tree79e1e74f7aaea50e6a674ac8f29b1b1c45b52991
parent53a3cced7fc0b91530fe161d76975bb47407f946
*.c: Make all of the type-definition tables read-only.

The hard part is a new collection of macros which strip the `const'
qualifier from the actual table definitions, after checking that they
actually have the correct type.

And then there's the slog of actually changing all of the definitions
and using the new macros.
16 files changed:
algorithms.c
buffer.c
bytestring.c
ec.c
field.c
group.c
key.c
mp.c
passphrase.c
pgen.c
pubkey.c
pyke/mapping.c
pyke/pyke.c
pyke/pyke.h
rand.c
share.c