On Wed, 15 Jan 2025, David Malcolm wrote: > +<p> > + In C99 and later you can use <code>#include <stdbool.h></code> > + which provides a definition of <code>bool</code> compatible with C23. > +</p> > + Note that the <code>bool</code> type is <b>not</b> the same > + as <code>int</code> at ABI level, and so care may be needed porting > + declarations that appear at an ABI boundary (or serialized to the > + filesystem. > +</p>
OK, though this last paragraph should probably have an opening <p>, and as discussed on IRC it might make sense to mention that C99/C23 bool can only store values 0 and 1. Maybe also mention that <stdbool.h> provides all of bool, true and false (not just bool). -- Joseph S. Myers josmy...@redhat.com