]> git.ozlabs.org Git - ccan/commit
ptrint: ptr2int and int2ptr are constant functions
authorDavid Gibson <david@gibson.dropbear.id.au>
Sun, 25 Oct 2015 12:00:06 +0000 (23:00 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Sun, 25 Oct 2015 12:01:00 +0000 (23:01 +1100)
commit14addbab474db9d2394b17cfe34f9e0aa24f234a
tree1973b33a0508013d6667f0f4cbe04d73724710f9
parent780297d2024c0892a43b9b1b8eabb9bf385c9c7b
ptrint: ptr2int and int2ptr are constant functions

By construction these functions depend only on their arguments, so declare
them as CONST_FUNCTION using the helper from ccan/compiler.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
ccan/ptrint/_info
ccan/ptrint/ptrint.h