On Fri, Oct 22, 2021 at 8:09 AM Xiao Ni <xni@xxxxxxxxxx> wrote: > > > > using true/false will require to add #include <stdbool.h>. > > Jes suggests to use meaningful return values. This is only > > suggestion so you can ignore it and use 0 and 1. > > <stdbool.h> is a c++ header and it needs libstdc++-devel, I don't want > to include one package only for using true/false. > Hi all Do you think the method is better? typedef int bool #define true 1 #define false 0 So we don't need to inlcuce <stdboo.h> and we can use true/false too. If we include <stdbool.h>, it needs to add the corresponding package in the spec file too to resolve dependency problems. Regards Xiao