diff th_args.h @ 453:efd33accdc81

Break backwards compatibility by renaming BOOL, TRUE and FALSE to lowercase. Introduce optional but default use of stdbool.h.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 02 Jan 2018 22:56:03 +0200
parents 54081d784d75
children 347bfd3e017e
line wrap: on
line diff
--- a/th_args.h	Wed Oct 25 22:32:07 2017 +0300
+++ b/th_args.h	Tue Jan 02 22:56:03 2018 +0200
@@ -43,10 +43,10 @@
 } th_optarg;
 
 
-BOOL th_args_process(int argc, char *argv[],
+bool th_args_process(int argc, char *argv[],
      const th_optarg *opts, const int nopts,
-     BOOL (*handle_option)(int id, char *, char *),
-     BOOL (*handle_other)(char *), const int flags);
+     bool (*handle_option)(int id, char *, char *),
+     bool (*handle_other)(char *), const int flags);
 
 void th_args_help(FILE *, const th_optarg *opts,
      const int nopts, const int flags);