File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -16287,14 +16287,21 @@ C++ header @file{cfloat}, which provide constants such as
1628716287@apivar TRUE
1628816288@apivar FALSE
1628916289@apihdr R_ext/Boolean.h
16290- Further, the included header @file{R_ext/Boolean.h} has enumeration
16290+ The included header @file{R_ext/Boolean.h} has enumeration
1629116291constants @code{TRUE} and @code{FALSE} of type @code{Rboolean} in
1629216292order to provide a way of using ``logical'' variables in C consistently.
1629316293This can conflict with other software: for example it conflicts with the
1629416294headers in @I{IJG}'s @code{jpeg-9} (but not earlier versions).
1629516295@code{Rboolean} cannot represent @code{NA} and hence cannot be used for
1629616296elements of R logical vectors.
1629716297
16298+ Type @code{Rboolean} is being phased out: as from @R{}@tie{}4.5.0 the
16299+ header also makes available the type @code{bool} and values @code{true}
16300+ and @code{false}. These are reserved words in C23 and C++11 and
16301+ available @emph{via} header @file{stdbool.h} as from C99. (@code{bool}
16302+ is not a drop-in replacement for @code{Rboolean} as it is usually stored
16303+ in a byte and @code{Raoolean} in an @code{int}, hence 4 bytes.)
16304+
1629816305
1629916306@node Optimization
1630016307@section Optimization
You can’t perform that action at this time.
0 commit comments