Diff for libcfg+/src/cmdline.c between version 1.27 and 1.28
| version 1.27, 2002/07/16 13:42:11 |
version 1.28, 2002/08/16 20:31:42 |
|
|
| /* $Id$ */ |
/* $Id$ */ |
| |
|
| /* Includes {{{ */ |
/* Includes {{{ */ |
| #include "config.h" |
#ifdef HAVE_CONFIG_H |
| |
# include "config.h" |
| |
#endif |
| |
|
| #if STDC_HEADERS |
#if STDC_HEADERS |
| # include <stdlib.h> |
# include <stdlib.h> |
| Line 100 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]; |
| strdel(con->cur_arg); |
FUNCTION(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 126 cfg_cmdline_get_next_opt(con) |
|
| Line 128 cfg_cmdline_get_next_opt(con) |
|
| |
|
| __cfg_free_currents(con); |
__cfg_free_currents(con); |
| |
|
| if (! strdyn_compare(con->prop[CFG_LINE_STOP_STRING], |
if (! FUNCTION(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/
|
|