Diff for libcfg+/doc/sgml/usage.context-manipulation.sgml between version 1.3 and 1.4
| version 1.3, 2002/07/16 22:31:15 |
version 1.4, 2002/07/18 22:19:04 |
| Line 127 file it will print "on line 2" and so on |
|
| Line 127 file it will print "on line 2" and so on |
|
| </para> |
</para> |
| <para> |
<para> |
| |
|
| |
From version 0.5.2 there is also |
| |
<function>cfg_get_cmdline_context_argc()</function> function. It is used for |
| |
context initialization by passing <parameter>argc</parameter> and |
| |
<parameter>argv</parameter> parameters directly from <function>main()</function> |
| |
function. It has similar parameters as |
| |
<function>cfg_get_cmdline_context()</function>, but instead of |
| |
<parameter>begin_pos</parameter> and <parameter>size</parameter> long parameters |
| |
are only one <parameter>argc</parameter> integer parameter present. Of course, |
| |
you can also use <function>cfg_set_cmdline_context_argc()</function> equivalent. |
| |
|
| |
</para> |
| |
<para> |
| |
|
| |
Another macros used for initialization are |
| |
<function>cfg_get_cmdline_context_pos()</function> and |
| |
<function>cfg_get_cfgfile_context_pos()</function>. They differ from their |
| |
standart equivalent functions in parameter <parameter>size</parameter>, which is |
| |
replaced by parameter <parameter>end_pos</parameter>. It defines the last |
| |
element (array member, byte or line in file) which will be parsed. Also here you |
| |
can use analogicaly <function>cfg_set_cmdline_context_pos()</function> and |
| |
<function>cfg_set_cfgfile_context_pos()</function> macros. |
| |
|
| |
</para> |
| |
<para> |
| |
|
| Here are further functions. They are used for reseting and freeing context: |
Here are further functions. They are used for reseting and freeing context: |
| |
|
| <funcsynopsis> |
<funcsynopsis> |
Platon Group <platon@platon.org> http://platon.org/
|
|