comparison th_args.h @ 735:31bc1ed07cf5

Renaming BOOL->bool and TRUE/FALSE to true/false, and using stdbool.h if available.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 07 Dec 2022 12:14:39 +0200
parents 29e44a58bc73
children
comparison
equal deleted inserted replaced
734:2ae1045f6c18 735:31bc1ed07cf5
43 char *desc; ///< Option description 43 char *desc; ///< Option description
44 int flags; ///< Flags (see OPT_*) 44 int flags; ///< Flags (see OPT_*)
45 } th_optarg; 45 } th_optarg;
46 46
47 47
48 BOOL th_args_process(int argc, char *argv[], 48 bool th_args_process(int argc, char *argv[],
49 const th_optarg *opts, const int nopts, 49 const th_optarg *opts, const int nopts,
50 BOOL (*handle_option)(int id, char *, char *), 50 bool (*handle_option)(int id, char *, char *),
51 BOOL (*handle_other)(char *), const int flags); 51 bool (*handle_other)(char *), const int flags);
52 52
53 void th_args_help(FILE *fh, const th_optarg *opts, 53 void th_args_help(FILE *fh, const th_optarg *opts,
54 const int nopts, const int flags, const int width); 54 const int nopts, const int flags, const int width);
55 55
56 void th_print_wrap(FILE *fh, const int spad, 56 void th_print_wrap(FILE *fh, const int spad,