Merging upstream version 2.3.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
0f232ef15b
commit
bf586630f8
444 changed files with 5289 additions and 1980 deletions
|
@ -37,6 +37,7 @@
|
|||
#include <string.h>
|
||||
#include <getopt.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
|
||||
enum argconfig_types {
|
||||
CFG_FLAG,
|
||||
|
@ -71,9 +72,6 @@ enum argconfig_types {
|
|||
#define OPT_SUFFIX(l, s, v, d) \
|
||||
{l, s, "IONUM", CFG_LONG_SUFFIX, v, required_argument, d}
|
||||
|
||||
#define OPT_LONG(l, s, v, d) \
|
||||
{l, s, "NUM", CFG_LONG, v, required_argument, d}
|
||||
|
||||
#define OPT_UINT(l, s, v, d) \
|
||||
{l, s, "NUM", CFG_POSITIVE, v, required_argument, d}
|
||||
|
||||
|
@ -131,7 +129,8 @@ int argconfig_parse_comma_sep_array_short(char *string, unsigned short *ret,
|
|||
int argconfig_parse_comma_sep_array_long(char *string,
|
||||
unsigned long long *ret,
|
||||
unsigned max_length);
|
||||
int argconfig_parse_byte(const char *opt, const char *str, unsigned char *val);
|
||||
void argconfig_register_help_func(argconfig_help_func * f);
|
||||
|
||||
void print_word_wrapped(const char *s, int indent, int start);
|
||||
void print_word_wrapped(const char *s, int indent, int start, FILE *stream);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue