*.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>
Mon, 25 Nov 2019 17:43:08 +0000 (17:43 +0000)
commit637b91402d2497db1318debd3cb3868a5abb8f01
treeee05683c0f58b4bafa92c87f46b35823028207f0
parent68003d328074e78ede9e83f629a88a3639816930
*.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