Make SCM_NUMP and SCM_NUMBERP more extensible
authorMark H Weaver <mhw@netris.org>
Fri, 11 Feb 2011 00:04:05 +0000 (19:04 -0500)
committerAndy Wingo <wingo@pobox.com>
Mon, 14 Feb 2011 19:32:54 +0000 (20:32 +0100)
commit5093e51839bb1246e96547a25ae41b4c4d92e1f7
tree38d82e0d07bba8279184f5e48f842f659a9ddba5
parentf135fc3eda9a34f9540486da433867b2698fa58c
Make SCM_NUMP and SCM_NUMBERP more extensible

* libguile/numbers.h (SCM_NUMP, SCM_NUMBERP): Mask out more bits in the
  cell type field when doing the comparison, in order to accept future
  numeric types that have not yet been implemented.  This should allow
  us to add more core numeric types without breaking ABI compatibility.
  As a bonus, these macros are now more efficient.
libguile/numbers.h