Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > 537b4767ca71616a4bccbb57df0c2eb6 > files > 350

openscap-devel-0.7.4-1.fc16.i686.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Open SCAP Library: /home/pvrabec/project/openscap/openscap-0.7.4/src/OVAL/probes/SEAP/public/sexp-manip.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.4 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Open SCAP Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">/home/pvrabec/project/openscap/openscap-0.7.4/src/OVAL/probes/SEAP/public/sexp-manip.h</div>  </div>
</div>
<div class="contents">
<a href="sexp-manip_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00013"></a>00013 <span class="comment">/*</span>
<a name="l00014"></a>00014 <span class="comment"> * Copyright 2009 Red Hat Inc., Durham, North Carolina.</span>
<a name="l00015"></a>00015 <span class="comment"> * All Rights Reserved.</span>
<a name="l00016"></a>00016 <span class="comment"> *</span>
<a name="l00017"></a>00017 <span class="comment"> * This library is free software; you can redistribute it and/or</span>
<a name="l00018"></a>00018 <span class="comment"> * modify it under the terms of the GNU Lesser General Public</span>
<a name="l00019"></a>00019 <span class="comment"> * License as published by the Free Software Foundation; either</span>
<a name="l00020"></a>00020 <span class="comment"> * version 2.1 of the License, or (at your option) any later version.</span>
<a name="l00021"></a>00021 <span class="comment"> *</span>
<a name="l00022"></a>00022 <span class="comment"> * This library is distributed in the hope that it will be useful, </span>
<a name="l00023"></a>00023 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00024"></a>00024 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00025"></a>00025 <span class="comment"> * Lesser General Public License for more details.</span>
<a name="l00026"></a>00026 <span class="comment"> *</span>
<a name="l00027"></a>00027 <span class="comment"> * You should have received a copy of the GNU Lesser General Public</span>
<a name="l00028"></a>00028 <span class="comment"> * License along with this library; if not, write to the Free Software </span>
<a name="l00029"></a>00029 <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span>
<a name="l00030"></a>00030 <span class="comment"> *</span>
<a name="l00031"></a>00031 <span class="comment"> * Authors:</span>
<a name="l00032"></a>00032 <span class="comment"> *      Daniel Kopecek &lt;dkopecek@redhat.com&gt;</span>
<a name="l00033"></a>00033 <span class="comment"> */</span>
<a name="l00034"></a>00034 
<a name="l00035"></a>00035 <span class="preprocessor">#pragma once</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="preprocessor">#ifndef SEXP_MANIP_H</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor">#define SEXP_MANIP_H</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span>
<a name="l00039"></a>00039 <span class="preprocessor">#include &lt;stdarg.h&gt;</span>
<a name="l00040"></a>00040 <span class="preprocessor">#include &lt;stddef.h&gt;</span>
<a name="l00041"></a>00041 <span class="preprocessor">#include &lt;stdint.h&gt;</span>
<a name="l00042"></a>00042 <span class="preprocessor">#include &lt;stdbool.h&gt;</span>
<a name="l00043"></a>00043 <span class="preprocessor">#include &lt;sexp-types.h&gt;</span>
<a name="l00044"></a>00044 
<a name="l00045"></a>00045 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {
<a name="l00047"></a>00047 <span class="preprocessor">#endif</span>
<a name="l00048"></a>00048 <span class="preprocessor"></span>
<a name="l00049"></a>00049 <span class="comment">/*</span>
<a name="l00050"></a>00050 <span class="comment"> * number</span>
<a name="l00051"></a>00051 <span class="comment"> */</span>
<a name="l00052"></a>00052 
<a name="l00058"></a>00058 <a class="code" href="structSEXP.html">SEXP_t</a> *<a class="code" href="group__SEXPRESSIONS.html#ga148bf27719895fdacb1afc356d612415" title="Create a new sexp object from a value and a number type.">SEXP_number_new</a> (SEXP_numtype_t t, <span class="keyword">const</span> <span class="keywordtype">void</span> *n) <a class="code" href="struct____attribute____.html">__attribute__</a> ((nonnull (2)));
<a name="l00059"></a>00059 
<a name="l00064"></a>00064 <a class="code" href="structSEXP.html">SEXP_t</a> *<a class="code" href="group__SEXPRESSIONS.html#ga1cdc45fff560a0cf2cf8d08dc3515fb9" title="Create a new sexp object from a boolean value.">SEXP_number_newb</a> (<span class="keywordtype">bool</span> n);
<a name="l00065"></a>00065 
<a name="l00070"></a>00070 <a class="code" href="structSEXP.html">SEXP_t</a> *<a class="code" href="group__SEXPRESSIONS.html#ga32494d9d9c72055de3fc3d265b9afc63" title="Create a new sexp object from an integer.">SEXP_number_newi_8</a> (int8_t n);
<a name="l00071"></a>00071 
<a name="l00076"></a>00076 <a class="code" href="structSEXP.html">SEXP_t</a> *<a class="code" href="group__SEXPRESSIONS.html#ga461b37826975a6d87f122b8938e019e1" title="Create a new sexp object from an unsigned integer.">SEXP_number_newu_8</a> (uint8_t n);
<a name="l00077"></a>00077 
<a name="l00082"></a>00082 uint8_t <a class="code" href="group__SEXPRESSIONS.html#gad6cbd9f380d3fa8f93ea2a776809edf8" title="Get unsigned integer value from a sexp object.">SEXP_number_getu_8</a> (<span class="keyword">const</span> <a class="code" href="structSEXP.html">SEXP_t</a> *s_exp);
<a name="l00083"></a>00083 
<a name="l00088"></a>00088 <a class="code" href="structSEXP.html">SEXP_t</a> *<a class="code" href="group__SEXPRESSIONS.html#gadc3f1e24284a5ac20605e13fdd3c71cb" title="Create a new sexp object from an integer.">SEXP_number_newi_16</a> (int16_t n);
<a name="l00089"></a>00089 
<a name="l00094"></a>00094 <a class="code" href="structSEXP.html">SEXP_t</a> *<a class="code" href="group__SEXPRESSIONS.html#gafe1e8e5b752b57b66009f5b270072ece" title="Create a new sexp object from an unsigned integer.">SEXP_number_newu_16</a> (uint16_t n);
<a name="l00095"></a>00095 
<a name="l00100"></a><a class="code" href="group__SEXPRESSIONS.html#ga88cdd7705eac27040c29a4b174797158">00100</a> <span class="preprocessor">#define SEXP_number_newi SEXP_number_newi_32</span>
<a name="l00101"></a>00101 <span class="preprocessor"></span>
<a name="l00106"></a>00106 <a class="code" href="structSEXP.html">SEXP_t</a> *<a class="code" href="group__SEXPRESSIONS.html#ga62055a9cf6b27ce2b6c9c599c6de008c" title="Create a new sexp object from an integer.">SEXP_number_newi_32</a> (int32_t n);
<a name="l00107"></a>00107 
<a name="l00112"></a><a class="code" href="group__SEXPRESSIONS.html#ga6c9eaecc1f1f64f65f2eb82048ae424a">00112</a> <span class="preprocessor">#define SEXP_number_geti SEXP_number_geti_32</span>
<a name="l00113"></a>00113 <span class="preprocessor"></span>
<a name="l00118"></a>00118 int32_t <a class="code" href="group__SEXPRESSIONS.html#ga75c71219c39bfa492436f2534e915010" title="Get integer value from a sexp object.">SEXP_number_geti_32</a> (<span class="keyword">const</span> <a class="code" href="structSEXP.html">SEXP_t</a> *s_exp);
<a name="l00119"></a>00119 
<a name="l00124"></a>00124 <span class="keywordtype">bool</span> <a class="code" href="group__SEXPRESSIONS.html#gacb248b380bca2b88445c0e376a5b65c2" title="Get boolean value from a sexp object.">SEXP_number_getb</a> (<span class="keyword">const</span> <a class="code" href="structSEXP.html">SEXP_t</a> *s_exp);
<a name="l00125"></a>00125 
<a name="l00130"></a><a class="code" href="group__SEXPRESSIONS.html#ga0ed932bb9217034acb9850bef38111aa">00130</a> <span class="preprocessor">#define SEXP_number_newu SEXP_number_newu_32</span>
<a name="l00131"></a>00131 <span class="preprocessor"></span>
<a name="l00136"></a>00136 <a class="code" href="structSEXP.html">SEXP_t</a> *<a class="code" href="group__SEXPRESSIONS.html#gae129c0296ce1a094de3f77d14b832e31" title="Create a new sexp object from an unsigned integer.">SEXP_number_newu_32</a> (uint32_t n);
<a name="l00137"></a>00137 
<a name="l00142"></a><a class="code" href="group__SEXPRESSIONS.html#ga2c94dfa1cb0df428abf39574500479e5">00142</a> <span class="preprocessor">#define  SEXP_number_getu SEXP_number_getu_32</span>
<a name="l00143"></a>00143 <span class="preprocessor"></span>
<a name="l00148"></a>00148 uint32_t <a class="code" href="group__SEXPRESSIONS.html#gacab074ed687b15a638609b14b3974ab0" title="Get unsigned integer value from a sexp object.">SEXP_number_getu_32</a> (<span class="keyword">const</span> <a class="code" href="structSEXP.html">SEXP_t</a> *s_exp);
<a name="l00149"></a>00149 
<a name="l00154"></a>00154 <a class="code" href="structSEXP.html">SEXP_t</a> *<a class="code" href="group__SEXPRESSIONS.html#gae2fc419efc73b6d7522c7a7933025cb2" title="Create a new sexp object from an integer.">SEXP_number_newi_64</a> (int64_t n);
<a name="l00155"></a>00155 
<a name="l00160"></a>00160 int64_t <a class="code" href="group__SEXPRESSIONS.html#gafa22f9fac43ad37dfc09ca359a867a51" title="Get integer value from a sexp object.">SEXP_number_geti_64</a> (<span class="keyword">const</span> <a class="code" href="structSEXP.html">SEXP_t</a> *s_exp);
<a name="l00161"></a>00161 
<a name="l00166"></a>00166 <a class="code" href="structSEXP.html">SEXP_t</a> *<a class="code" href="group__SEXPRESSIONS.html#gafd72f0967d62cdf63436917dc61b2b22" title="Create a new sexp object from an unsigned integer.">SEXP_number_newu_64</a> (uint64_t n);
<a name="l00167"></a>00167 
<a name="l00172"></a>00172 uint64_t <a class="code" href="group__SEXPRESSIONS.html#ga18fd6599d74564c17376b80dff881ab0" title="Get unsigned integer value from a sexp object.">SEXP_number_getu_64</a> (<span class="keyword">const</span> <a class="code" href="structSEXP.html">SEXP_t</a> *s_exp);
<a name="l00173"></a>00173 
<a name="l00178"></a>00178 <a class="code" href="structSEXP.html">SEXP_t</a> *<a class="code" href="group__SEXPRESSIONS.html#ga029c8e418f0ac0ccffb80a2d1cc9bddc" title="Create a new sexp object from an floating point value.">SEXP_number_newf</a> (<span class="keywordtype">double</span> n);
<a name="l00179"></a>00179 
<a name="l00184"></a>00184 <span class="keywordtype">double</span>  <a class="code" href="group__SEXPRESSIONS.html#ga1d4b4c86fab5992aa439a47f8af92190" title="Get floating point value from a sexp object.">SEXP_number_getf</a> (<span class="keyword">const</span> <a class="code" href="structSEXP.html">SEXP_t</a> *s_exp);
<a name="l00185"></a>00185 
<a name="l00192"></a>00192 <span class="keywordtype">int</span> <a class="code" href="group__SEXPRESSIONS.html#ga9b392924764145a02ff6c549dfd26d9c" title="Get a value from a sexp object according to a specified type.">SEXP_number_get</a> (<span class="keyword">const</span> <a class="code" href="structSEXP.html">SEXP_t</a> *s_exp, <span class="keywordtype">void</span> *dst, SEXP_numtype_t type);
<a name="l00193"></a>00193 
<a name="l00198"></a>00198 uint16_t <a class="code" href="group__SEXPRESSIONS.html#ga3c00041f8c7e3a5dfb18bb3b30466e37" title="Get unsigned integer value from a sexp object.">SEXP_number_getu_16</a> (<span class="keyword">const</span> <a class="code" href="structSEXP.html">SEXP_t</a> *s_exp);
<a name="l00199"></a>00199 
<a name="l00204"></a>00204 <span class="keywordtype">void</span>    <a class="code" href="group__SEXPRESSIONS.html#ga0ef7afdcedb92279a58ce9ee0f224a1d" title="Free the specified sexp object.">SEXP_number_free</a> (<a class="code" href="structSEXP.html">SEXP_t</a> *s_exp);
<a name="l00205"></a>00205 
<a name="l00210"></a>00210 <span class="keywordtype">bool</span>    <a class="code" href="group__SEXPRESSIONS.html#ga6e604a242bf6246a03696a3d80f666ee" title="Check whether the provided sexp object is a number.">SEXP_numberp</a> (<span class="keyword">const</span> <a class="code" href="structSEXP.html">SEXP_t</a> *s_exp);
<a name="l00211"></a>00211 
<a name="l00216"></a>00216 SEXP_numtype_t <a class="code" href="group__SEXPRESSIONS.html#ga4e5c0f3e6a56eec10e7f1165939284c0" title="Get the number type of an object.">SEXP_number_type</a> (<span class="keyword">const</span> <a class="code" href="structSEXP.html">SEXP_t</a> *sexp);
<a name="l00217"></a>00217 
<a name="l00218"></a>00218 <span class="comment">/*</span>
<a name="l00219"></a>00219 <span class="comment"> * string</span>
<a name="l00220"></a>00220 <span class="comment"> */</span>
<a name="l00221"></a>00221 
<a name="l00227"></a>00227 <a class="code" href="structSEXP.html">SEXP_t</a> *<a class="code" href="group__SEXPRESSIONS.html#gabadfcee9ec83dd290cb0563cdcf5b5d4" title="Create a new sexp object from a string.">SEXP_string_new</a>  (<span class="keyword">const</span> <span class="keywordtype">void</span> *<span class="keywordtype">string</span>, <span class="keywordtype">size_t</span> strlen) <a class="code" href="struct____attribute____.html">__attribute__</a> ((nonnull (1)));
<a name="l00228"></a>00228 
<a name="l00234"></a>00234 <a class="code" href="structSEXP.html">SEXP_t</a> *<a class="code" href="group__SEXPRESSIONS.html#ga98cc821b3e0a0be1ca1645bbb4bd00e7" title="Create a new sexp object from a format string.">SEXP_string_newf</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *format, ...) <a class="code" href="struct____attribute____.html">__attribute__</a> ((format (printf, 1, 2), nonnull (1)));
<a name="l00235"></a>00235 
<a name="l00240"></a>00240 <span class="keywordtype">void</span> <a class="code" href="group__SEXPRESSIONS.html#ga421532c375fbb742923c452bc52c27fa" title="Free the specified sexp object.">SEXP_string_free</a> (<a class="code" href="structSEXP.html">SEXP_t</a> *s_exp);
<a name="l00241"></a>00241 
<a name="l00246"></a>00246 <span class="keywordtype">bool</span> <a class="code" href="group__SEXPRESSIONS.html#gaff64360f9c06d07c15295a4631eede9f" title="Check whether the provided sexp object is a string.">SEXP_stringp</a> (const <a class="code" href="structSEXP.html">SEXP_t</a> *s_exp);
<a name="l00247"></a>00247 
<a name="l00252"></a>00252 <span class="keywordtype">size_t</span> <a class="code" href="group__SEXPRESSIONS.html#ga105b4f4551faf6114e53fa9701e966d5" title="Get the length of a string in a sexp object.">SEXP_string_length</a> (const <a class="code" href="structSEXP.html">SEXP_t</a> *s_exp);
<a name="l00253"></a>00253 
<a name="l00259"></a>00259 <span class="keywordtype">int</span> <a class="code" href="group__SEXPRESSIONS.html#ga59353fe1a436c8a3003ff93cfd28a747" title="Compare a string in a sexp object with a C string.">SEXP_strcmp</a> (const <a class="code" href="structSEXP.html">SEXP_t</a> *s_exp, const <span class="keywordtype">char</span> *str) <a class="code" href="struct____attribute____.html">__attribute__</a> ((nonnull (2)));
<a name="l00260"></a>00260 
<a name="l00267"></a>00267 <span class="keywordtype">int</span> <a class="code" href="group__SEXPRESSIONS.html#gaf2e92003af59b53145cfc23ea5e8cefa" title="Compare a string in a sexp object with a C string.">SEXP_strncmp</a> (const <a class="code" href="structSEXP.html">SEXP_t</a> *s_exp, const <span class="keywordtype">char</span> *str, <span class="keywordtype">size_t</span> n) <a class="code" href="struct____attribute____.html">__attribute__</a> ((nonnull (2)));
<a name="l00268"></a>00268 
<a name="l00274"></a>00274 <span class="keywordtype">int</span> <a class="code" href="group__SEXPRESSIONS.html#gad91eec2b56af04fa7352fbebe4bb6a68" title="Get the n-th byte of a string.">SEXP_string_nth</a> (const <a class="code" href="structSEXP.html">SEXP_t</a> *s_exp, <span class="keywordtype">size_t</span> n);
<a name="l00275"></a>00275 
<a name="l00279"></a>00279 <span class="keywordtype">char</span>  *<a class="code" href="group__SEXPRESSIONS.html#ga1ab30f1f6e475e61e4be43ce96753e19" title="Get a C string from a sexp object.">SEXP_string_cstr</a> (const <a class="code" href="structSEXP.html">SEXP_t</a> *s_exp);
<a name="l00280"></a>00280 
<a name="l00288"></a>00288 <span class="keywordtype">size_t</span> <a class="code" href="group__SEXPRESSIONS.html#gaba4e73db0910e4cdcd05f0954d7c94d8" title="Get a C string from a sexp object.">SEXP_string_cstr_r</a> (const <a class="code" href="structSEXP.html">SEXP_t</a> *s_exp, <span class="keywordtype">char</span> *buf, <span class="keywordtype">size_t</span> len) <a class="code" href="struct____attribute____.html">__attribute__</a> ((nonnull (2)));
<a name="l00289"></a>00289 
<a name="l00293"></a>00293 <span class="keywordtype">char</span>  *<a class="code" href="group__SEXPRESSIONS.html#ga9629a5d0a6bb253d020b3cfe50ab7fb3" title="Obsolete function.">SEXP_string_cstrp</a> (const <a class="code" href="structSEXP.html">SEXP_t</a> *s_exp);
<a name="l00294"></a>00294 
<a name="l00301"></a>00301 <span class="keywordtype">char</span> *<a class="code" href="group__SEXPRESSIONS.html#ga3ba785dac94b723edd3af8d473584419" title="Get a C substring from a sexp object.">SEXP_string_subcstr</a> (const <a class="code" href="structSEXP.html">SEXP_t</a> *s_exp, <span class="keywordtype">size_t</span> beg, <span class="keywordtype">size_t</span> len);
<a name="l00302"></a>00302 
<a name="l00308"></a>00308 <span class="keywordtype">int</span> <a class="code" href="group__SEXPRESSIONS.html#ga3e4383dcb6f96558b5643ad747d501b6" title="Compare two sexp strings.">SEXP_string_cmp</a> (const <a class="code" href="structSEXP.html">SEXP_t</a> *str_a, const <a class="code" href="structSEXP.html">SEXP_t</a> *str_b);
<a name="l00309"></a>00309 
<a name="l00314"></a>00314 <span class="keywordtype">bool</span> <a class="code" href="group__SEXPRESSIONS.html#gae4ef149d9869b6b2f28699d8fce056bb" title="Try to cast the supplied sexp string to a boolean.">SEXP_string_getb</a> (const <a class="code" href="structSEXP.html">SEXP_t</a> *s_exp);
<a name="l00315"></a>00315 
<a name="l00316"></a>00316 <span class="comment">/*</span>
<a name="l00317"></a>00317 <span class="comment"> * list</span>
<a name="l00318"></a>00318 <span class="comment"> */</span>
<a name="l00319"></a>00319 
<a name="l00326"></a>00326 <a class="code" href="structSEXP.html">SEXP_t</a> *<a class="code" href="group__SEXPRESSIONS.html#ga36aba9794dc574feeec66ca58d781e02" title="Create a new sexp list, optionally initialized with the provided sexp arguments.">SEXP_list_new</a> (<a class="code" href="structSEXP.html">SEXP_t</a> *memb, ...);
<a name="l00327"></a>00327 
<a name="l00332"></a>00332 <span class="keywordtype">void</span>    <a class="code" href="group__SEXPRESSIONS.html#ga080ba170147ff68e7c2cbe524d7ef989" title="Free the specified sexp object.">SEXP_list_free</a> (<a class="code" href="structSEXP.html">SEXP_t</a> *s_exp);
<a name="l00333"></a>00333 
<a name="l00338"></a>00338 <span class="keywordtype">bool</span>    <a class="code" href="group__SEXPRESSIONS.html#ga07e8116610a355783f2c6368759b3227" title="Check whether the provided sexp object is a list.">SEXP_listp</a> (const <a class="code" href="structSEXP.html">SEXP_t</a> *s_exp);
<a name="l00339"></a>00339 
<a name="l00344"></a>00344 <span class="keywordtype">size_t</span>  <a class="code" href="group__SEXPRESSIONS.html#ga068f5fbd0f5570d282bbdad6167682fc" title="Get the length of the sexp list.">SEXP_list_length</a> (const <a class="code" href="structSEXP.html">SEXP_t</a> *s_exp);
<a name="l00345"></a>00345 
<a name="l00351"></a>00351 <a class="code" href="structSEXP.html">SEXP_t</a> *<a class="code" href="group__SEXPRESSIONS.html#ga0c9eae056c648b6063ac7509f4369610" title="Get the first element of a list.">SEXP_list_first</a> (const <a class="code" href="structSEXP.html">SEXP_t</a> *list);
<a name="l00352"></a>00352 
<a name="l00358"></a>00358 <a class="code" href="structSEXP.html">SEXP_t</a> *<a class="code" href="group__SEXPRESSIONS.html#gae242e4f24e9e244b40948068a2007ce1" title="Get the rest of a list.">SEXP_list_rest</a>  (const <a class="code" href="structSEXP.html">SEXP_t</a> *list);
<a name="l00359"></a>00359 
<a name="l00365"></a>00365 <a class="code" href="structSEXP.html">SEXP_t</a> *<a class="code" href="group__SEXPRESSIONS.html#ga89ad072663a26aa264c84d23f884569d" title="Get the last element of a list.">SEXP_list_last</a> (const <a class="code" href="structSEXP.html">SEXP_t</a> *list);
<a name="l00366"></a>00366 
<a name="l00373"></a>00373 <a class="code" href="structSEXP.html">SEXP_t</a> *<a class="code" href="group__SEXPRESSIONS.html#ga4a6ada7c87796c997849528e078e1836" title="Get the n-th element of a list.">SEXP_list_nth</a> (const <a class="code" href="structSEXP.html">SEXP_t</a> *list, uint32_t n);
<a name="l00374"></a>00374 
<a name="l00381"></a>00381 <a class="code" href="structSEXP.html">SEXP_t</a> *<a class="code" href="group__SEXPRESSIONS.html#ga8d6b5445b924bb116e0c6f47d3b9a8d9" title="Add an element to a list.">SEXP_list_add</a> (<a class="code" href="structSEXP.html">SEXP_t</a> *list, const <a class="code" href="structSEXP.html">SEXP_t</a> *s_exp);
<a name="l00382"></a>00382 
<a name="l00389"></a>00389 <a class="code" href="structSEXP.html">SEXP_t</a> *<a class="code" href="group__SEXPRESSIONS.html#gabe0fa1d2a80c0941ffeb1c4b142e7523" title="Create a new list containing the concatenated contents of two lists.">SEXP_list_join</a> (const <a class="code" href="structSEXP.html">SEXP_t</a> *list_a, const <a class="code" href="structSEXP.html">SEXP_t</a> *list_b);
<a name="l00390"></a>00390 
<a name="l00397"></a>00397 <a class="code" href="structSEXP.html">SEXP_t</a> *<a class="code" href="group__SEXPRESSIONS.html#gad52880af4d8ab4724b9de155c1df936b" title="Push an element to the head of a list.">SEXP_list_push</a> (<a class="code" href="structSEXP.html">SEXP_t</a> *list, const <a class="code" href="structSEXP.html">SEXP_t</a> *s_exp);
<a name="l00398"></a>00398 
<a name="l00404"></a>00404 <a class="code" href="structSEXP.html">SEXP_t</a> *<a class="code" href="group__SEXPRESSIONS.html#ga9e93b94244c768a11fd686d8c594237d" title="Extract the first element of a list.">SEXP_list_pop</a> (<a class="code" href="structSEXP.html">SEXP_t</a> *list);
<a name="l00405"></a>00405 
<a name="l00409"></a>00409 <a class="code" href="structSEXP.html">SEXP_t</a> *<a class="code" href="group__SEXPRESSIONS.html#ga037116327a4d1cc1e70a520ef7f97ba4" title="Sort a list using `compare&#39; as the comparison function.">SEXP_list_sort</a>(<a class="code" href="structSEXP.html">SEXP_t</a> *list, <span class="keywordtype">int</span>(*compare)(const <a class="code" href="structSEXP.html">SEXP_t</a> *, const SEXP_t *));
<a name="l00410"></a>00410 
<a name="l00419"></a>00419 SEXP_t *<a class="code" href="group__SEXPRESSIONS.html#gadc1ce5bda22ad83a62ad505c7d443f59" title="Replace the n-th element of a list.">SEXP_list_replace</a> (SEXP_t *list, uint32_t n, const SEXP_t *s_exp);
<a name="l00420"></a>00420 
<a name="l00426"></a>00426 SEXP_t *<a class="code" href="group__SEXPRESSIONS.html#ga294b609a1d4bd7e521d25437a192fda7" title="Get the first element of a list.">SEXP_listref_first</a> (SEXP_t *list);
<a name="l00427"></a>00427 
<a name="l00433"></a>00433 SEXP_t *<a class="code" href="group__SEXPRESSIONS.html#gaec63d3a60c2565d4b51e5c483d16cfdf" title="Get the rest of a list.">SEXP_listref_rest</a> (SEXP_t *list);
<a name="l00434"></a>00434 
<a name="l00440"></a>00440 SEXP_t *<a class="code" href="group__SEXPRESSIONS.html#gaf3b36d16e120636314aafd4b14d7880d" title="Get the last element of a list.">SEXP_listref_last</a> (SEXP_t *list);
<a name="l00441"></a>00441 
<a name="l00448"></a>00448 SEXP_t *<a class="code" href="group__SEXPRESSIONS.html#ga12caeefc35e578135c608a6370026be5" title="Get the n-th element of a list.">SEXP_listref_nth</a> (SEXP_t *list, uint32_t n);
<a name="l00449"></a>00449 
<a name="l00450"></a>00450 typedef struct SEXP_it SEXP_it_t;
<a name="l00451"></a>00451 
<a name="l00452"></a>00452 <span class="preprocessor">#define SEXP_IT_RECURSIVE 0x01</span>
<a name="l00453"></a>00453 <span class="preprocessor"></span><span class="preprocessor">#define SEXP_IT_HARDREF   0x02</span>
<a name="l00454"></a>00454 <span class="preprocessor"></span>
<a name="l00455"></a>00455 SEXP_it_t *SEXP_listit_new (<span class="keyword">const</span> SEXP_t *list, <span class="keywordtype">int</span> flags);
<a name="l00456"></a>00456 SEXP_t    *SEXP_listit_next(SEXP_it_t *it);
<a name="l00457"></a>00457 SEXP_t    *SEXP_listit_prev (SEXP_it_t *it);
<a name="l00458"></a>00458 SEXP_t    *SEXP_listit_length (SEXP_it_t *it);
<a name="l00459"></a>00459 SEXP_t    *SEXP_listit_seek (SEXP_it_t *it, uint32_t n);
<a name="l00460"></a>00460 <span class="keywordtype">void</span>       SEXP_listit_free (SEXP_it_t *it);
<a name="l00461"></a>00461 
<a name="l00462"></a>00462 <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structSEXP__list__it.html">SEXP_list_it</a> <a class="code" href="structSEXP__list__it.html">SEXP_list_it</a>;
<a name="l00463"></a>00463 
<a name="l00464"></a>00464 <a class="code" href="structSEXP__list__it.html">SEXP_list_it</a> *SEXP_list_it_new(SEXP_t *list);
<a name="l00465"></a>00465 SEXP_t *SEXP_list_it_next(<a class="code" href="structSEXP__list__it.html">SEXP_list_it</a> *it);
<a name="l00466"></a>00466 <span class="keywordtype">void</span> SEXP_list_it_free(<a class="code" href="structSEXP__list__it.html">SEXP_list_it</a> *it);
<a name="l00467"></a>00467 
<a name="l00468"></a>00468 <span class="preprocessor">#if __STDC_VERSION__ &gt;= 199901L</span>
<a name="l00469"></a>00469 <span class="preprocessor"></span><span class="preprocessor"># include &lt;common/util.h&gt;</span>
<a name="l00470"></a>00470 
<a name="l00471"></a>00471 <span class="comment">/* TODO: use alloca &amp; softref_r here */</span>
<a name="l00477"></a>00477 <span class="preprocessor">#define SEXP_list_foreach(var, list)                                    \</span>
<a name="l00478"></a>00478 <span class="preprocessor">        for (uint32_t OSCAP_CONCAT(i,__LINE__) = 1; ((var) = SEXP_list_nth (list, OSCAP_CONCAT(i,__LINE__))) != NULL; ++OSCAP_CONCAT(i,__LINE__), SEXP_free (var))</span>
<a name="l00479"></a>00479 <span class="preprocessor"></span>
<a name="l00487"></a>00487 <span class="preprocessor">#define SEXP_sublist_foreach(var, list, beg, end)                       \</span>
<a name="l00488"></a>00488 <span class="preprocessor">        for (uint32_t OSCAP_CONCAT(i,__LINE__) = (beg); OSCAP_CONCAT(i,__LINE__) &lt;= ((size_t)(end)) &amp;&amp; ((var) = SEXP_list_nth (list, OSCAP_CONCAT(i,__LINE__))) != NULL; ++OSCAP_CONCAT(i,__LINE__), SEXP_free (var))</span>
<a name="l00489"></a>00489 <span class="preprocessor"></span>
<a name="l00490"></a>00490 <span class="preprocessor">#define SEXP_LIST_END (UINT32_MAX - 1)</span>
<a name="l00491"></a>00491 <span class="preprocessor"></span>
<a name="l00492"></a>00492 <span class="preprocessor">#endif </span><span class="comment">/* __STDC_VERSION__ &gt;= 199901L */</span>
<a name="l00493"></a>00493 
<a name="l00494"></a>00494 <span class="comment">/*</span>
<a name="l00495"></a>00495 <span class="comment"> * generic</span>
<a name="l00496"></a>00496 <span class="comment"> */</span>
<a name="l00497"></a>00497 SEXP_t *SEXP_new (<span class="keywordtype">void</span>);
<a name="l00498"></a>00498 
<a name="l00499"></a>00499 <span class="keywordtype">bool</span> SEXP_emptyp(SEXP_t *sexp);
<a name="l00500"></a>00500 
<a name="l00505"></a>00505 SEXP_t *<a class="code" href="group__SEXPRESSIONS.html#ga476a72113eb75b3f4d1497ecd712c764" title="Create a new reference to a sexp object.">SEXP_ref</a> (<span class="keyword">const</span> SEXP_t *s_exp);
<a name="l00506"></a>00506 
<a name="l00507"></a>00507 SEXP_t *SEXP_unref (SEXP_t *s_exp_o);
<a name="l00508"></a>00508 
<a name="l00513"></a>00513 SEXP_t *<a class="code" href="group__SEXPRESSIONS.html#ga11637915846d57e9c1d14095817efe26" title="Create a new soft reference to a sexp object.">SEXP_softref</a> (SEXP_t *s_exp);
<a name="l00514"></a>00514 
<a name="l00519"></a>00519 <span class="keywordtype">bool</span> <a class="code" href="group__SEXPRESSIONS.html#gacabc0099ec23c4b1d6cbfba655097947" title="Check whether an S-exp reference is a &quot;soft&quot; reference.">SEXP_softrefp</a>(<span class="keyword">const</span> SEXP_t *s_exp);
<a name="l00520"></a>00520 
<a name="l00525"></a>00525 uint32_t <a class="code" href="group__SEXPRESSIONS.html#ga429383918cf56ab5954393d503ee8047" title="Return the value of the reference counter.">SEXP_refs</a> (<span class="keyword">const</span> SEXP_t *ref);
<a name="l00526"></a>00526 
<a name="l00527"></a>00527 <span class="keywordtype">bool</span> SEXP_eq (<span class="keyword">const</span> SEXP_t *a, <span class="keyword">const</span> SEXP_t *b);
<a name="l00528"></a>00528 
<a name="l00532"></a>00532 <span class="keywordtype">int</span> <a class="code" href="group__SEXPRESSIONS.html#ga2578ba953964a634b14722b5546da32f" title="Compare reference pointers.">SEXP_refcmp</a>(<span class="keyword">const</span> SEXP_t *a, <span class="keyword">const</span> SEXP_t *b);
<a name="l00533"></a>00533 
<a name="l00534"></a>00534 <span class="keywordtype">bool</span> SEXP_deepcmp(<span class="keyword">const</span> SEXP_t *a, <span class="keyword">const</span> SEXP_t *b);
<a name="l00535"></a>00535 
<a name="l00536"></a>00536 <span class="preprocessor">#if defined(NDEBUG)</span>
<a name="l00537"></a>00537 <span class="preprocessor"></span>
<a name="l00541"></a>00541 <span class="keywordtype">void</span>     <a class="code" href="group__SEXPRESSIONS.html#gaff9225cc4ff2d1a3459511efe7ebd5e1" title="Free a sexp object.">SEXP_free</a> (SEXP_t *s_exp);
<a name="l00542"></a>00542 
<a name="l00549"></a>00549 <span class="keywordtype">void</span>     <a class="code" href="group__SEXPRESSIONS.html#gacde997ef765f596964f896fbcb2f338c" title="Free multiple sexp objects.">SEXP_vfree</a> (SEXP_t *s_exp, ...);
<a name="l00550"></a>00550 <span class="preprocessor">#else</span>
<a name="l00551"></a>00551 <span class="preprocessor"></span><span class="preprocessor"># define SEXP_free(ptr) __SEXP_free (ptr, __FILE__, __LINE__, __PRETTY_FUNCTION__)</span>
<a name="l00552"></a>00552 <span class="preprocessor"></span><span class="keywordtype">void</span>     __SEXP_free (SEXP_t *s_exp, <span class="keyword">const</span> <span class="keywordtype">char</span> *file, uint32_t line, <span class="keyword">const</span> <span class="keywordtype">char</span> *func);
<a name="l00553"></a>00553 <span class="preprocessor"># define SEXP_vfree(...) __SEXP_vfree (__FILE__, __LINE__, __PRETTY_FUNCTION__, __VA_ARGS__)</span>
<a name="l00554"></a>00554 <span class="preprocessor"></span><span class="keywordtype">void</span>     __SEXP_vfree (<span class="keyword">const</span> <span class="keywordtype">char</span> *file, uint32_t line, <span class="keyword">const</span> <span class="keywordtype">char</span> *func, SEXP_t *s_exp, ...);
<a name="l00555"></a>00555 <span class="preprocessor">#endif</span>
<a name="l00556"></a>00556 <span class="preprocessor"></span>
<a name="l00561"></a>00561 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__SEXPRESSIONS.html#ga6d085d9c44f5b736646ffb8693fa6653" title="Get the user data type of a sexp object.">SEXP_datatype</a> (<span class="keyword">const</span> SEXP_t *s_exp);
<a name="l00562"></a>00562 
<a name="l00567"></a>00567 <span class="keywordtype">int</span> <a class="code" href="group__SEXPRESSIONS.html#gaa4bde669d7e595ea9059b4b6387a15b2" title="Set the user data type of a sexp object.">SEXP_datatype_set</a> (SEXP_t *s_exp, <span class="keyword">const</span> <span class="keywordtype">char</span> *name) <a class="code" href="struct____attribute____.html">__attribute__</a> ((nonnull (2)));
<a name="l00568"></a>00568 
<a name="l00575"></a>00575 <span class="keywordtype">int</span> <a class="code" href="group__SEXPRESSIONS.html#ga722eb1e7c93e22d2b2412983ccb88195" title="Set the user data type of the nth sexp object in a list.">SEXP_datatype_set_nth</a> (SEXP_t *list, uint32_t n, <span class="keyword">const</span> <span class="keywordtype">char</span> *name) <a class="code" href="struct____attribute____.html">__attribute__</a> ((nonnull (3)));
<a name="l00576"></a>00576 
<a name="l00581"></a>00581 SEXP_type_t <a class="code" href="group__SEXPRESSIONS.html#gac20aeb60da4207f9fa0b6bf056864eec" title="Get the type of a sexp object.">SEXP_typeof</a> (<span class="keyword">const</span> SEXP_t *s_exp);
<a name="l00582"></a>00582 
<a name="l00587"></a>00587 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__SEXPRESSIONS.html#ga80b8234d9e6c1eb59443e78147845166" title="Get a text description of the sexp object&#39;s type.">SEXP_strtype</a> (<span class="keyword">const</span> SEXP_t *s_exp);
<a name="l00588"></a>00588 
<a name="l00589"></a>00589 SEXP_t *SEXP_build (<span class="keyword">const</span> <span class="keywordtype">char</span> *s_str, ...);
<a name="l00590"></a>00590 
<a name="l00591"></a>00591 <span class="keywordtype">size_t</span> SEXP_sizeof (<span class="keyword">const</span> SEXP_t *s_exp);
<a name="l00592"></a>00592 
<a name="l00593"></a>00593 <span class="preprocessor">#if !defined(NDEBUG)</span>
<a name="l00594"></a>00594 <span class="preprocessor"></span><span class="preprocessor"># define SEXP_VALIDATE(s) __SEXP_VALIDATE(s, __FILE__, __LINE__, __PRETTY_FUNCTION__)</span>
<a name="l00595"></a>00595 <span class="preprocessor"></span><span class="preprocessor"># include &lt;stdlib.h&gt;</span>
<a name="l00596"></a>00596 
<a name="l00597"></a>00597 <span class="keywordtype">void</span> __SEXP_VALIDATE(<span class="keyword">const</span> SEXP_t *s_exp, <span class="keyword">const</span> <span class="keywordtype">char</span> *file, uint32_t line, <span class="keyword">const</span> <span class="keywordtype">char</span> *func);
<a name="l00598"></a>00598 
<a name="l00599"></a>00599 <span class="preprocessor">#else</span>
<a name="l00600"></a>00600 <span class="preprocessor"></span><span class="preprocessor"># define SEXP_VALIDATE(s)</span>
<a name="l00601"></a>00601 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00602"></a>00602 <span class="preprocessor"></span>
<a name="l00603"></a>00603 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00604"></a>00604 <span class="preprocessor"></span>}
<a name="l00605"></a>00605 <span class="preprocessor">#endif</span>
<a name="l00606"></a>00606 <span class="preprocessor"></span>
<a name="l00607"></a>00607 <span class="preprocessor">#endif </span><span class="comment">/* SEXP_MANIP_H */</span>
<a name="l00608"></a>00608 <span class="comment">/* @}@}@} */</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Mon Jul 25 2011 for Open SCAP Library by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>