Diff for libcfg+/src/parse.c between version 1.6 and 1.7
| version 1.6, 2001/11/27 17:11:30 |
version 1.7, 2001/11/28 20:46:51 |
|
|
| |
|
| /* Processing context options. */ |
/* Processing context options. */ |
| |
|
| int cfg_parse( |
int cfg_parse(const CFG_CONTEXT con) |
| const CFG_CONTEXT con |
|
| ) |
|
| { |
{ |
| return 0; |
return 0; |
| } |
} |
| |
|
| int cfg_get_next_opt( |
int cfg_get_next_opt(const CFG_CONTEXT con) |
| const CFG_CONTEXT con |
|
| ) |
|
| { |
{ |
| return con->type == CFG_CMDLINE |
return con->type == CFG_CMDLINE |
| ? cfg_cmdline_get_next_opt(con) |
? cfg_cmdline_get_next_opt(con) |
| : cfg_cfgfile_get_next_opt(con); |
: cfg_cfgfile_get_next_opt(con); |
| } |
} |
| |
|
| int cfg_get_opt_arg( |
int cfg_get_opt_arg(const CFG_CONTEXT con) |
| const CFG_CONTEXT con |
|
| ) |
|
| { |
{ |
| return 0; |
return 0; |
| } |
} |
| |
|
| |
char *cfg_get_cur_opt(const CFG_CONTEXT con) |
| |
{ |
| |
return con->cur_opt; |
| |
} |
| |
|
| |
char *cfg_get_cur_arg(const CFG_CONTEXT con) |
| |
{ |
| |
return con->cur_arg; |
| |
} |
| |
|
| |
int cfg_get_cur_idx(const CFG_CONTEXT con) |
| |
{ |
| |
return con->cur_idx; |
| |
} |
| |
|
Platon Group <platon@platon.org> http://platon.org/
|
|