]> git.draconx.ca Git - cdecl99.git/commit
libcdecl: Add _Bool fallback to public header.
authorNick Bowler <nbowler@draconx.ca>
Sun, 3 Dec 2023 22:31:26 +0000 (17:31 -0500)
committerNick Bowler <nbowler@draconx.ca>
Mon, 4 Dec 2023 05:24:26 +0000 (00:24 -0500)
commit00514ec7f1070550a52651971bb6a5e36efbe4f0
tree3da0e570a0646606ffc34be360f9a48463c552db
parent85a6a8c5ddb83606fb27617b9c81c8bcc6b35408
libcdecl: Add _Bool fallback to public header.

Even though we have a fallback for _Bool when building the library,
it is missing in some source files that include cdecl.h.  But more
importantly, it is not available to downstream users of the installed
header file.

As far as I'm aware, all compilers which support _Bool in any mode also
support it in strict C89 mode, so it should be sufficient to just use
_Bool if configure detected support for it.  We integrate the newfangled
bake-config script so that the installed header embeds this config.

There is also one inline function which returns _Bool.  We can just
change it to return int instead, since there is no ABI implication.
Makefile.am
doc/libcdecl.3
src/.gitignore
src/cdecl.h
t/installcheck.c