[Bug c/28319] sentinel attribute should support non-NULL sentinels
ludo at gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Feb 21 09:01:00 GMT 2008
------- Comment #2 from ludo at gnu dot org 2008-02-21 09:00 -------
(In reply to comment #1)
> The only time I can think this comes up is that the sentinel is -1.
As another example, GNU Guile has a number of variadic functions (e.g.,
`scm_list_n ()') whose sentinel is `SCM_UNDEFINED' (which happens to be 2^8 +
4). It would be great to be able to specify that value as a second (optional)
argument to the `sentinel' attribute.
Ludovic.
--
ludo at gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ludo at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28319
More information about the Gcc-bugs
mailing list