Diff for libcfg+/src/cfg+.c between version 1.37 and 1.38
| version 1.37, 2002/05/11 14:54:58 |
version 1.38, 2002/05/27 16:43:40 |
| Line 190 cfg_set_cfgfile_context(con, begin_pos, |
|
| Line 190 cfg_set_cfgfile_context(con, begin_pos, |
|
| cfg_reset_context(con) |
cfg_reset_context(con) |
| const CFG_CONTEXT con; |
const CFG_CONTEXT con; |
| { |
{ |
| con->cur_idx = 0; |
con->error_code = CFG_OK; |
| |
con->cur_idx = 0; |
| con->cur_idx_tmp = 0; |
con->cur_idx_tmp = 0; |
| |
|
| if (con->used_opt_idx != NULL) { |
if (con->used_opt_idx != NULL) { |
| Line 204 cfg_reset_context(con) |
|
| Line 205 cfg_reset_context(con) |
|
| if (con->fhandle != NULL) { |
if (con->fhandle != NULL) { |
| fclose(con->fhandle); |
fclose(con->fhandle); |
| con->fhandle = NULL; |
con->fhandle = NULL; |
| } |
} */ |
| */ |
|
| } |
} |
| |
|
| void |
void |
| Line 269 cfg_get_error_str(con) |
|
| Line 269 cfg_get_error_str(con) |
|
| { |
{ |
| char *s; |
char *s; |
| char *str_type = con->type == CFG_LINE ? "on command line" : "in config file"; |
char *str_type = con->type == CFG_LINE ? "on command line" : "in config file"; |
| char *str_pos = con->type == CFG_LINE ? /* "near" */ "at position" |
char *str_pos = con->type == CFG_LINE ? /* "near" */ "at position" |
| : (con->flags & CFG_FILE_LINE_POS_USAGE ? "on line" : "at position"); |
: (con->flags & CFG_FILE_LINE_POS_USAGE ? "on line" : "at position"); |
| char *str_opt = cfg_get_cur_opt(con); |
char *str_opt = cfg_get_cur_opt(con); |
| char *str_arg = cfg_get_cur_arg(con); |
char *str_arg = cfg_get_cur_arg(con); |
Platon Group <platon@platon.org> http://platon.org/
|
|