| version 1.6, 2002/09/02 13:38:57 |
version 1.7, 2002/09/02 14:12:57 |
|
|
| <sect1 id="usage.context-manipulation"> |
<sect1 id="usage.context-manipulation"> |
| <title id="usage.context-manipulation.title">Context manipulation</title> |
<title id="usage.context-manipulation.title">Context manipulation</title> |
| |
|
| <!-- MAN: <refsect1><title>SYNOPSIS 1/2</title> --> |
<!-- MAN: <refsect1><title>SYNOPSIS | Creating context</title> --> |
| <para> |
<para> |
| |
|
| Parsing capabilities of &name; library are accessed via |
Parsing capabilities of &name; library are accessed via |
| Line 39 different contexes. They are implemented |
|
| Line 39 different contexes. They are implemented |
|
| </para> |
</para> |
| <para> |
<para> |
| |
|
| Here are methods used for creating and manipulating context: |
Here are functions used for creating context. Functions used for freeing |
| |
(destroying) context are described at the end of this <!-- MAN: man -->page. |
| |
|
| <funcsynopsis> |
<funcsynopsis> |
| <funcsynopsisinfo><![CDATA[#include <cfg+.h>]]></funcsynopsisinfo> |
<funcsynopsisinfo><![CDATA[#include <cfg+.h>]]></funcsynopsisinfo> |
| Line 84 Here are methods used for creating and m |
|
| Line 85 Here are methods used for creating and m |
|
| </funcsynopsis> |
</funcsynopsis> |
| |
|
| </para> |
</para> |
| <!-- MAN: </refsect1><refsect1><title>DESCRIPTION 1/2</title> --> |
<!-- MAN: </refsect1><refsect1><title>DESCRIPTION</title> --> |
| <para> |
<para> |
| |
|
| First function <function>cfg_get_context()</function> initializes context. |
First function <function>cfg_get_context()</function> initializes context. |
| Line 160 context initialization by passing <param |
|
| Line 161 context initialization by passing <param |
|
| function. It has similar parameters as |
function. It has similar parameters as |
| <function>cfg_get_cmdline_context()</function>, but instead of |
<function>cfg_get_cmdline_context()</function>, but instead of |
| <parameter>begin_pos</parameter> and <parameter>size</parameter> long parameters |
<parameter>begin_pos</parameter> and <parameter>size</parameter> long parameters |
| are only one <parameter>argc</parameter> integer parameter present. Of course, |
is only one <parameter>argc</parameter> integer parameter present. Of course, |
| you can also use <function>cfg_set_cmdline_context_argc()</function> equivalent. |
you can also use <function>cfg_set_cmdline_context_argc()</function> equivalent. |
| |
|
| </para> |
</para> |
| Line 176 can use analogicaly <function>cfg_set_cm |
|
| Line 177 can use analogicaly <function>cfg_set_cm |
|
| <function>cfg_set_cfgfile_context_pos()</function> macros. |
<function>cfg_set_cfgfile_context_pos()</function> macros. |
| |
|
| </para> |
</para> |
| <!-- MAN: </refsect1><refsect1><title>SYNOPSIS 2/2</title> --> |
<!-- MAN: </refsect1><refsect1><title>SYNOPSIS | Freeing context</title> --> |
| <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: |
| Line 197 Here are further functions. They are use |
|
| Line 198 Here are further functions. They are use |
|
| </funcsynopsis> |
</funcsynopsis> |
| |
|
| </para> |
</para> |
| <!-- MAN: </refsect1><refsect1><title>DESCRIPTION 2/2</title> --> |
<!-- MAN: </refsect1><refsect1><title>DESCRIPTION</title> --> |
| <para> |
<para> |
| |
|
| There are often situations, that reseting of context is neccessary. In command |
There are often situations, that reseting of context is neccessary. In command |