[R-pkg-devel] AlgDesign C Issue

Jerome Braun jvbr@un@@t@t|@t|c@ @end|ng |rom gm@||@com
Mon Mar 31 18:00:31 CEST 2025


Hi Duncan!

>  Since the compiler will supply stdbool.h, it's safer to use that than to
try to emulate it.

Understood. It seems like the definitions are exactly the same between the
two.

Currently there is no use of "bool" in any of the code (after having
changed bool to int everywhere in the code).

So I think I can replace the two lines in the original code with a call to
include the <stdbool.h> header --- does that seem reasonable?   Can I use
an include statement there in place of those two lines?

Thank you!
-- 
Jerome

On Mon, Mar 31, 2025 at 11:28 AM Duncan Murdoch <murdoch.duncan using gmail.com>
wrote:

> On 2025-03-31 9:28 a.m., Jerome Braun wrote:
> > Hi Michael!
> >
> > I'd like to make the smallest change possible to Bob Wheeler's original
> > code so I'm not sure if using <stdbool.h> is the best route forward.
> >
> > I do see that the definitions are the same there.  Is there a low-cost
> way
> > to use that header file or just those definitions?
>
> The problem is that the definitions may vary from compiler to compiler,
> and the error message you're getting only shows up some of them.  Since
> the compiler will supply stdbool.h, it's safer to use that than to try
> to emulate it.
>
> Duncan Murdoch
>

	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list