#include <stdio.h>
Go to the source code of this file.
|
#define | TWOPT_GROUP(h) |
#define | TWOPT_ULONG(n, v, h) |
#define | TWOPT_ULONGLONG(n, v, h) |
#define | TWOPT_UINT(n, v, h) |
#define | TWOPT_STIME(n, v, h) |
#define | TWOPT_DOUBLE(n, v, h) |
#define | TWOPT_CHAR(n, v, h) |
#define | TWOPT_ARGSFILE(n, v, h) |
#define | TWOPT_FLAG(n, v, h) |
#define | TWOPT_END() |
◆ TWOPT_ARGSFILE
#define TWOPT_ARGSFILE |
( |
| n, |
|
|
| v, |
|
|
| h ) |
◆ TWOPT_CHAR
#define TWOPT_CHAR |
( |
| n, |
|
|
| v, |
|
|
| h ) |
◆ TWOPT_DOUBLE
#define TWOPT_DOUBLE |
( |
| n, |
|
|
| v, |
|
|
| h ) |
◆ TWOPT_END
◆ TWOPT_FLAG
#define TWOPT_FLAG |
( |
| n, |
|
|
| v, |
|
|
| h ) |
◆ TWOPT_GROUP
◆ TWOPT_STIME
#define TWOPT_STIME |
( |
| n, |
|
|
| v, |
|
|
| h ) |
◆ TWOPT_UINT
#define TWOPT_UINT |
( |
| n, |
|
|
| v, |
|
|
| h ) |
◆ TWOPT_ULONG
#define TWOPT_ULONG |
( |
| n, |
|
|
| v, |
|
|
| h ) |
◆ TWOPT_ULONGLONG
#define TWOPT_ULONGLONG |
( |
| n, |
|
|
| v, |
|
|
| h ) |
◆ tw_optdef
typedef struct tw_optdef tw_optdef |
◆ tw_opttype
◆ tw_opttype
Enumerator |
---|
TWOPTTYPE_GROUP | |
TWOPTTYPE_ULONG | value must be an "unsigned long*"
|
TWOPTTYPE_ULONGLONG | value must be an "unsigned long long*"
|
TWOPTTYPE_UINT | value must be an "unsigned int*"
|
TWOPTTYPE_STIME | value must be a "tw_stime*"
|
TWOPTTYPE_DOUBLE | value must be a "double *"
|
TWOPTTYPE_CHAR | value must be a "char *"
|
TWOPTTYPE_FLAG | value must be an "unsigned int*"
|
TWOPTTYPE_ARGSFILE | value must be a "char *"
|
TWOPTTYPE_SHOWHELP | |
Definition at line 6 of file tw-opts.h.
◆ tw_opt_add()
◆ tw_opt_parse()
void tw_opt_parse |
( |
int * | argc, |
|
|
char *** | argv ) |
|
extern |
◆ tw_opt_print()
void tw_opt_print |
( |
void | | ) |
|
|
extern |
Pretty-print the option descriptions (for –help)
Definition at line 224 of file tw-opts.c.
References all_groups, g_tw_csv, tw_optdef::name, tw_ismaster(), TWOPTTYPE_CHAR, TWOPTTYPE_DOUBLE, TWOPTTYPE_FLAG, TWOPTTYPE_GROUP, TWOPTTYPE_STIME, TWOPTTYPE_UINT, TWOPTTYPE_ULONG, TWOPTTYPE_ULONGLONG, tw_optdef::type, and tw_optdef::value.
◆ tw_opt_settings()
void tw_opt_settings |
( |
FILE * | f | ) |
|
|
extern |
Pretty-print the option descriptions and current values
Definition at line 147 of file tw-opts.c.
References all_groups, tw_optdef::help, tw_optdef::name, TWOPTTYPE_CHAR, TWOPTTYPE_DOUBLE, TWOPTTYPE_FLAG, TWOPTTYPE_GROUP, TWOPTTYPE_STIME, TWOPTTYPE_UINT, TWOPTTYPE_ULONG, TWOPTTYPE_ULONGLONG, tw_optdef::type, and tw_optdef::value.
Referenced by io_store_checkpoint().