Diff for libcfg+/src/cmdline.c between version 1.28 and 1.29
| version 1.28, 2002/08/16 20:31:42 |
version 1.29, 2002/08/27 13:19:18 |
| Line 102 cfg_cmdline_get_next_opt(con) |
|
| Line 102 cfg_cmdline_get_next_opt(con) |
|
| if (con->cur_opt_type & CFG_SHORT_OPTIONS) { |
if (con->cur_opt_type & CFG_SHORT_OPTIONS) { |
| |
|
| con->cur_opt[0] = con->cur_arg[0]; |
con->cur_opt[0] = con->cur_arg[0]; |
| FUNCTION(strdel)(con->cur_arg); |
PLATON_FUNC(strdel)(con->cur_arg); |
| |
|
| if (strlen(con->cur_arg) == 0) { |
if (strlen(con->cur_arg) == 0) { |
| con->cur_opt_type -= CFG_SHORT_OPTIONS; |
con->cur_opt_type -= CFG_SHORT_OPTIONS; |
| Line 128 cfg_cmdline_get_next_opt(con) |
|
| Line 128 cfg_cmdline_get_next_opt(con) |
|
| |
|
| __cfg_free_currents(con); |
__cfg_free_currents(con); |
| |
|
| if (! FUNCTION(strdyn_compare)(con->prop[CFG_LINE_STOP_STRING], |
if (! PLATON_FUNC(strdyn_compare)(con->prop[CFG_LINE_STOP_STRING], |
| con->argv[con->cur_idx])) { |
con->argv[con->cur_idx])) { |
| con->error_code = CFG_ERROR_STOP_STR_FOUND; |
con->error_code = CFG_ERROR_STOP_STR_FOUND; |
| return con->error_code; |
return con->error_code; |
Platon Group <platon@platon.org> http://platon.org/
|
|