Mercurial > hg > th-libs
comparison 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 |
comparison
equal
deleted
inserted
replaced
452:4471eadea472 | 453:efd33accdc81 |
---|---|
41 char *desc; ///< Option description | 41 char *desc; ///< Option description |
42 int flags; ///< Flags (see OPT_*) | 42 int flags; ///< Flags (see OPT_*) |
43 } th_optarg; | 43 } th_optarg; |
44 | 44 |
45 | 45 |
46 BOOL th_args_process(int argc, char *argv[], | 46 bool th_args_process(int argc, char *argv[], |
47 const th_optarg *opts, const int nopts, | 47 const th_optarg *opts, const int nopts, |
48 BOOL (*handle_option)(int id, char *, char *), | 48 bool (*handle_option)(int id, char *, char *), |
49 BOOL (*handle_other)(char *), const int flags); | 49 bool (*handle_other)(char *), const int flags); |
50 | 50 |
51 void th_args_help(FILE *, const th_optarg *opts, | 51 void th_args_help(FILE *, const th_optarg *opts, |
52 const int nopts, const int flags); | 52 const int nopts, const int flags); |
53 | 53 |
54 #ifdef __cplusplus | 54 #ifdef __cplusplus |