#include <cfg+.h>
Data Fields | |
Shared properties | |
| enum cfg_context_type | type |
| int | flags |
| const struct cfg_option * | options |
| enum cfg_error | error_code |
| char ** | quote_prefix |
| char ** | quote_postfix |
Command line specific properties | |
| int | argc |
| char ** | argv |
| int | cur_idx |
| int | cur_idx_tmp |
| int * | used_opt_idx |
| int | cur_opt_type |
| char * | cur_opt |
| char * | cur_arg |
| char ** | line_stop_str |
| char ** | short_option_prefix |
| char ** | long_option_prefix |
| char ** | line_option_arg_separator |
| char ** | line_multi_vals_separator |
Config file specific properties. | |
| long | begin_pos |
| long | end_pos |
| char * | filename |
| FILE * | fhandle |
| char ** | file_stop_prefix |
| char ** | comment_prefix |
| char ** | multi_line_postfix |
| char ** | file_option_arg_separator |
| char ** | file_multi_vals_separator |
|
|
Array of string prefixes which mark comment line. defaults: "#", ";" |
|
|
Error code of last occured error. |
|
|
Multi values separator. |
|
|
Option argument separator. default: "=" |
|
|
Array of strings prefixes which forces to stop config file parsing. default: "[" |
|
|
Flags |
|
|
Multi values separator. |
|
|
default: "=" |
|
|
Array of strings which forces to stop command line parsing. |
|
|
default: "--" |
|
|
Array of string postfixes to determine multi lines. |
|
|
Options table |
|
|
Context type (command line or config file) |
|
|
Quote prefix & postfix |
|
|
default: "-" |
|
|
Context type (command line or config file) |
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001