Rozdiely pre libcfg+/src/cmdline.c medzi verziami 1.21 a 1.22
| verzia 1.21, 2002/05/29 15:12:11 |
verzia 1.22, 2002/05/30 22:29:45 |
|
|
| |
|
| /* $Id$ */ |
/* $Id$ */ |
| |
|
| |
/* Includes {{{ */ |
| #include "config.h" |
#include "config.h" |
| |
|
| #if STDC_HEADERS |
#if STDC_HEADERS |
|
|
| |
|
| #include "cfg+.h" |
#include "cfg+.h" |
| #include "shared.h" |
#include "shared.h" |
| |
/* }}} */ |
| |
|
| int |
int |
| cfg_cmdline_get_next_opt(con) |
cfg_cmdline_get_next_opt(con) |
| const CFG_CONTEXT con; |
const CFG_CONTEXT con; |
| { |
{ /* {{{ */ |
| int arg_used; |
int arg_used; |
| int ret_val; |
int ret_val; |
| |
|
| Riadok 94 cfg_cmdline_get_next_opt(con) |
|
| Riadok 96 cfg_cmdline_get_next_opt(con) |
|
| |
|
| __cfg_free_currents(con); |
__cfg_free_currents(con); |
| |
|
| if (! strdyn_compare(con->line_stop_str, con->argv[con->cur_idx])) { |
if (! strdyn_compare(con->prop[CFG_LINE_STOP_STRING], |
| |
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; |
| } |
} |
| Riadok 139 cfg_cmdline_get_next_opt(con) |
|
| Riadok 142 cfg_cmdline_get_next_opt(con) |
|
| } |
} |
| |
|
| return con->error_code; /* CFG_OK */ |
return con->error_code; /* CFG_OK */ |
| } |
} /* }}} */ |
| |
|
| |
/* Modeline for ViM {{{ |
| |
* vim:set ts=4: |
| |
* vim600:fdm=marker fdl=0 fdc=0: |
| |
* }}} */ |
| |
|
Platon Group <platon@platon.sk> http://platon.sk/
|
|