Use C99 bool where appropriate.