catacomb.c, util.c: Publish `KERR_...' symbols as negative numbers.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 24 Nov 2019 15:11:46 +0000 (15:11 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 25 Nov 2019 17:31:22 +0000 (17:31 +0000)
commit5988a4413964bcb376651e7322894c0050ebd238
tree4aa6ef0ef8706ae5508cd70c060a7e8f06424455
parentef352465e0a513d83fb4c76695a4787387cf8e73
catacomb.c, util.c: Publish `KERR_...' symbols as negative numbers.

They're supposed to be, but the existing `setconstants' machinery isn't
clever enough to do this properly.

Fixing this involves adding a flags word to `struct nameval' to identify
which constants should really be signed, and some fancy footwork to
convert unsigned integers back to negative values without upsetting C.
catacomb-python.h
catacomb.c
util.c