use typedef'd unsigned type and regular bool type.