Re: [R-pkg-devel] AlgDesign C Issue

2025-04-01 Thread Serguei Sokol
Le 31/03/2025 à 18:00, Jerome Braun a écrit : 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. Yes and no. Yes, true and false are the same. No, because ther

Re: [R-pkg-devel] AlgDesign C Issue

2025-03-31 Thread Duncan Murdoch
On 2025-03-31 12:00 p.m., Jerome Braun wrote: 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 (a

Re: [R-pkg-devel] AlgDesign C Issue

2025-03-31 Thread Jerome Braun
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 cod

Re: [R-pkg-devel] AlgDesign C Issue

2025-03-31 Thread Duncan Murdoch
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 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 t

Re: [R-pkg-devel] AlgDesign C Issue

2025-03-31 Thread Jerome Braun
Hi Michael! I'd like to make the smallest change possible to Bob Wheeler's original code so I'm not sure if using 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? Thank you! -- Jerome On

Re: [R-pkg-devel] AlgDesign C Issue

2025-03-31 Thread Michael Chirico
Do you want to use instead of your macros? https://pubs.opengroup.org/onlinepubs/009695399/basedefs/stdbool.h.html On Mon, Mar 31, 2025, 12:37 AM Jerome Braun wrote: > Hi! > > I'm currently the maintainer of AlgDesign, though my C skill is clearly a > little too low for the task. > > It has