comparison src/dmargs.h @ 2586:9807ae37ad69

Require stdbool.h, we require C11 now.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 08 Dec 2022 15:59:22 +0200
parents c6ee41fd98dd
children
comparison
equal deleted inserted replaced
2585:ef6c826c5b7a 2586:9807ae37ad69
43 char *desc; ///< Option description 43 char *desc; ///< Option description
44 int flags; ///< Flags (see OPT_*) 44 int flags; ///< Flags (see OPT_*)
45 } DMOptArg; 45 } DMOptArg;
46 46
47 47
48 BOOL dmArgsProcess(int argc, char *argv[], 48 bool dmArgsProcess(int argc, char *argv[],
49 const DMOptArg *opts, const int nopts, 49 const DMOptArg *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 dmArgsPrintHelp(FILE *fh, const DMOptArg *opts, 53 void dmArgsPrintHelp(FILE *fh, const DMOptArg *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 dmPrintWrap(FILE *fh, const int spad, 56 void dmPrintWrap(FILE *fh, const int spad,