]> git.ozlabs.org Git - ccan/commit - ccan/tcon/tcon.h
tcon: Encode integer values into "type" canaries
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 20 Oct 2015 01:34:30 +0000 (12:34 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Sun, 25 Oct 2015 12:32:44 +0000 (23:32 +1100)
commitfd48aee6393bda1e4eda9f9e52e6d9f818b77211
tree8b3dc7ecbf9ee3718a3ea1082a68a2b50bfa19d4
parentcc3db07ecc15f3e1e556387d82318697956e8e0c
tcon: Encode integer values into "type" canaries

Add the ability to encode, as well as types, integer values (must be
positive, compile time constant and in the range of size_t) into TCON
constructed "type" canaries.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
ccan/tcon/tcon.h
ccan/tcon/test/compile_ok-value.c [new file with mode: 0644]