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)
commit83f3121942546e1f5485ce3fc503e2d2d432a991
treea43751e26b7b3a02292b95f4e5d20ce042272c6a
parent43806eefdf9d9400425ff74ec25ec461b09dc0ef
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