[R-pkg-devel] AlgDesign C Issue
Jerome Braun
jvbr@un@@t@t|@t|c@ @end|ng |rom gm@||@com
Mon Mar 31 15:28:01 CEST 2025
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?
Thank you!
--
Jerome
On Mon, Mar 31, 2025 at 3:46 AM Michael Chirico <michaelchirico4 using gmail.com>
wrote:
> Do you want to use <stdbool.h> instead of your macros?
>
> https://pubs.opengroup.org/onlinepubs/009695399/basedefs/stdbool.h.html
>
> On Mon, Mar 31, 2025, 12:37 AM Jerome Braun <jvbraun.statistics using gmail.com>
> wrote:
>
>> Hi!
>>
>> I'm currently the maintainer of AlgDesign, though my C skill is clearly a
>> little too low for the task.
>>
>> It has become necessary for me to fix some issues with the code that had
>> defined true, false, and bool in the header file (wheeler.h).
>>
>> Lines 23 and 24 currently have:
>>
>> #define true 1
>> #define false 0
>>
>> There used to be a line 25 that had:
>>
>> #define bool int
>>
>> I removed line 25 and changed all occurrences in the C code of "bool" to
>> "int". But this doesn't seem to have fully resolved the issue.
>>
>> The current checks on AlgDesign generate a warning based on header lines
>> 23
>> and 24:
>>
>> Debian: <
>>
>> https://win-builder.r-project.org/incoming_pretest/AlgDesign_1.2.1.2_20250331_023833/Debian/00check.log
>> >
>> Status: 1 WARNING, 1 NOTE
>>
>> I'm not sure what this means yet, nor how to resolve it properly. I would
>> love some help in working forward, if possible.
>>
>> Thank you very much!
>> --
>> Jerome
>>
>> [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-package-devel using r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>>
>
[[alternative HTML version deleted]]
More information about the R-package-devel
mailing list