Diff for libcfg+/src/props.c between version 1.8 and 1.9
| version 1.8, 2001/12/09 15:07:37 |
version 1.9, 2001/12/10 21:01:48 |
|
|
| #include "str/strdyn.h" |
#include "str/strdyn.h" |
| #include "cfg.h" |
#include "cfg.h" |
| |
|
| |
void cfg_set_context_flag(const CFG_CONTEXT con, int flag) |
| |
{ |
| |
con->flags |= flag; |
| |
} |
| |
|
| |
void cfg_clear_context_flag(const CFG_CONTEXT con, int flag) |
| |
{ |
| |
con->flags &= ~flag; |
| |
} |
| |
|
| |
int cfg_get_context_flag(const CFG_CONTEXT con, int flag) |
| |
{ |
| |
return con->flags & flag; |
| |
} |
| |
|
| void cfg_set_context_flags(const CFG_CONTEXT con, int flags) |
void cfg_set_context_flags(const CFG_CONTEXT con, int flags) |
| { |
{ |
| con->flags = flags; |
con->flags = flags; |
| Line 10 void cfg_set_context_flags(const CFG_CON |
|
| Line 25 void cfg_set_context_flags(const CFG_CON |
|
| con->cur_idx_tmp = con->flags & CFG_PROCESS_FIRST ? 0 : 1; |
con->cur_idx_tmp = con->flags & CFG_PROCESS_FIRST ? 0 : 1; |
| } |
} |
| |
|
| |
int cfg_get_context_flags(const CFG_CONTEXT con, int flags) |
| |
{ |
| |
return con->flags; |
| |
} |
| |
|
| void __cfg_clear_strdyn_array(char ***where) |
void __cfg_clear_strdyn_array(char ***where) |
| { |
{ |
| if (*where != NULL) |
if (*where != NULL) |
Platon Group <platon@platon.org> http://platon.org/
|
|