Sophie

Sophie

distrib > Mandriva > 9.0 > i586 > by-pkgid > 2269bb274471fd2722517c2c0b740d7f > files > 320

rpm-devel-4.0.4-19mdk.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>stringbuf.c File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.17 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="modules.html">Modules</a> &nbsp; <a class="qindex" href="annotated.html">Data Structures</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Data Fields</a> &nbsp; <a class="qindex" href="globals.html">Globals</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; </center>
<hr><h1>lib/stringbuf.c File Reference</h1> 
<a href="#_details">More...</a>
<p>
<code>#include "<a class="el" href="system_8h-source.html">system.h</a>"</code><br>
<code>#include "<a class="el" href="stringbuf_8h-source.html">stringbuf.h</a>"</code><br>
<code>#include "<a class="el" href="debug_8h-source.html">debug.h</a>"</code><br>

<p>
<a href="stringbuf_8c-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Data Structures</h2></td></tr>
<tr><td nowrap align=right valign=top>struct &nbsp;</td><td valign=bottom><a class="el" href="structStringBufRec.html">StringBufRec</a></td></tr>
<tr><td colspan=2><br><h2>Defines</h2></td></tr>
<tr><td nowrap align=right valign=top>#define&nbsp;</td><td valign=bottom><a class="el" href="stringbuf_8c.html#a0">BUF_CHUNK</a>&nbsp;&nbsp;&nbsp;1024</td></tr>
<tr><td colspan=2><br><h2>Functions</h2></td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="stringbuf_8c.html#a1">xisspace</a> (int c)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Locale insensitive isspace(3).</em> <a href="#a1"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void *&nbsp;</td><td valign=bottom><a class="el" href="stringbuf_8c.html#a2">_free</a> (const void *p)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.</em> <a href="#a2"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="stringbuf_8h.html#a2">StringBuf</a>&nbsp;</td><td valign=bottom><a class="el" href="stringbuf_8c.html#a3">newStringBuf</a> (void)</td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="stringbuf_8h.html#a2">StringBuf</a>&nbsp;</td><td valign=bottom><a class="el" href="stringbuf_8c.html#a4">freeStringBuf</a> (<a class="el" href="stringbuf_8h.html#a2">StringBuf</a> sb)</td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="stringbuf_8c.html#a5">truncStringBuf</a> (<a class="el" href="stringbuf_8h.html#a2">StringBuf</a> sb)</td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="stringbuf_8c.html#a6">stripTrailingBlanksStringBuf</a> (<a class="el" href="stringbuf_8h.html#a2">StringBuf</a> sb)</td></tr>
<tr><td nowrap align=right valign=top>char *&nbsp;</td><td valign=bottom><a class="el" href="stringbuf_8c.html#a7">getStringBuf</a> (<a class="el" href="stringbuf_8h.html#a2">StringBuf</a> sb)</td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="stringbuf_8c.html#a8">appendStringBufAux</a> (<a class="el" href="stringbuf_8h.html#a2">StringBuf</a> sb, const char *s, int nl)</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>

<p>

<p>
Definition in file <a class="el" href="stringbuf_8c-source.html">stringbuf.c</a>.<hr><h2>Define Documentation</h2>
<a name="a0" doxytag="stringbuf.c::BUF_CHUNK"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> #define BUF_CHUNK&nbsp;&nbsp;&nbsp;1024
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="stringbuf_8c-source.html#l00010">10</a> of file <a class="el" href="stringbuf_8c-source.html">stringbuf.c</a>.
<p>
Referenced by <a class="el" href="stringbuf_8c-source.html#l00083">appendStringBufAux</a>(), and <a class="el" href="stringbuf_8c-source.html#l00038">newStringBuf</a>().    </td>
  </tr>
</table>
<hr><h2>Function Documentation</h2>
<a name="a2" doxytag="stringbuf.c::_free"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void* _free </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const void *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>p</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap><code> [inline, static]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.
<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>p</em>&nbsp;</td><td>
memory to free </td></tr>
</table>
</dl><dl compact><dt><b>Returns :</b></dt><dd>
NULL always </dl>
<p>
Definition at line <a class="el" href="stringbuf_8c-source.html#l00032">32</a> of file <a class="el" href="stringbuf_8c-source.html">stringbuf.c</a>.    </td>
  </tr>
</table>
<a name="a8" doxytag="stringbuf.c::appendStringBufAux"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void appendStringBufAux </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="stringbuf_8h.html#a2">StringBuf</a>&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>sb</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const char *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>s</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>nl</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="stringbuf_8c-source.html#l00083">83</a> of file <a class="el" href="stringbuf_8c-source.html">stringbuf.c</a>.
<p>
References <a class="el" href="stringbuf_8c-source.html#l00015">StringBufRec::allocated</a>, <a class="el" href="stringbuf_8c-source.html#l00013">StringBufRec::buf</a>, <a class="el" href="stringbuf_8c-source.html#l00010">BUF_CHUNK</a>, <a class="el" href="stringbuf_8c-source.html#l00016">StringBufRec::free</a>, <a class="el" href="stringbuf_8c-source.html#l00014">StringBufRec::tail</a>, and <a class="el" href="rpmmalloc_8c-source.html#l00045">xrealloc</a>().    </td>
  </tr>
</table>
<a name="a4" doxytag="stringbuf.c::freeStringBuf"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="stringbuf_8h.html#a2">StringBuf</a> freeStringBuf </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="stringbuf_8h.html#a2">StringBuf</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>sb</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="stringbuf_8c-source.html#l00050">50</a> of file <a class="el" href="stringbuf_8c-source.html">stringbuf.c</a>.
<p>
References <a class="el" href="poptint_8h-source.html#l00018">_free</a>(), and <a class="el" href="stringbuf_8c-source.html#l00013">StringBufRec::buf</a>.
<p>
Referenced by <a class="el" href="pack_8c-source.html#l00187">addFileToArrayTag</a>(), <a class="el" href="pack_8c-source.html#l00162">addFileToTag</a>(), <a class="el" href="pack_8c-source.html#l00123">addFileToTagAux</a>(), <a class="el" href="parsePrep_8c-source.html#l00275">doSetupMacro</a>(), <a class="el" href="spec_8c-source.html#l00149">freePackage</a>(), <a class="el" href="spec_8c-source.html#l00463">freeSpec</a>(), <a class="el" href="files_8c-source.html#l02402">generateDepends</a>(), <a class="el" href="parseChangelog_8c-source.html#l00205">parseChangelog</a>(), <a class="el" href="parseDescription_8c-source.html#l00029">parseDescription</a>(), <a class="el" href="parsePrep_8c-source.html#l00539">parsePrep</a>(), <a class="el" href="parseScript_8c-source.html#l00069">parseScript</a>(), <a class="el" href="files_8c-source.html#l02068">processSourceFiles</a>(), and <a class="el" href="manifest_8c-source.html#l00059">rpmReadPackageManifest</a>().    </td>
  </tr>
</table>
<a name="a7" doxytag="stringbuf.c::getStringBuf"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> char* getStringBuf </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="stringbuf_8h.html#a2">StringBuf</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>sb</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="stringbuf_8c-source.html#l00078">78</a> of file <a class="el" href="stringbuf_8c-source.html">stringbuf.c</a>.
<p>
References <a class="el" href="stringbuf_8c-source.html#l00013">StringBufRec::buf</a>.
<p>
Referenced by <a class="el" href="parseChangelog_8c-source.html#l00108">addChangelog</a>(), <a class="el" href="pack_8c-source.html#l00187">addFileToArrayTag</a>(), <a class="el" href="pack_8c-source.html#l00162">addFileToTag</a>(), <a class="el" href="build_2build_8c-source.html#l00057">doScript</a>(), <a class="el" href="files_8c-source.html#l02402">generateDepends</a>(), <a class="el" href="parsePrep_8c-source.html#l00539">parsePrep</a>(), <a class="el" href="parseScript_8c-source.html#l00069">parseScript</a>(), <a class="el" href="files_8c-source.html#l01740">processPackageFiles</a>(), <a class="el" href="files_8c-source.html#l02068">processSourceFiles</a>(), and <a class="el" href="manifest_8c-source.html#l00059">rpmReadPackageManifest</a>().    </td>
  </tr>
</table>
<a name="a3" doxytag="stringbuf.c::newStringBuf"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="stringbuf_8h.html#a2">StringBuf</a> newStringBuf </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="stringbuf_8c-source.html#l00038">38</a> of file <a class="el" href="stringbuf_8c-source.html">stringbuf.c</a>.
<p>
References <a class="el" href="stringbuf_8c-source.html#l00015">StringBufRec::allocated</a>, <a class="el" href="stringbuf_8c-source.html#l00013">StringBufRec::buf</a>, <a class="el" href="stringbuf_8c-source.html#l00010">BUF_CHUNK</a>, <a class="el" href="stringbuf_8c-source.html#l00016">StringBufRec::free</a>, <a class="el" href="stringbuf_8c-source.html#l00014">StringBufRec::tail</a>, <a class="el" href="rpmmalloc_8c-source.html#l00034">xcalloc</a>(), and <a class="el" href="rpmmalloc_8c-source.html#l00024">xmalloc</a>().
<p>
Referenced by <a class="el" href="pack_8c-source.html#l00187">addFileToArrayTag</a>(), <a class="el" href="pack_8c-source.html#l00162">addFileToTag</a>(), <a class="el" href="parsePrep_8c-source.html#l00275">doSetupMacro</a>(), <a class="el" href="files_8c-source.html#l02402">generateDepends</a>(), <a class="el" href="files_8c-source.html#l02205">getOutputFrom</a>(), <a class="el" href="parseBuildInstallClean_8c-source.html#l00012">parseBuildInstallClean</a>(), <a class="el" href="parseChangelog_8c-source.html#l00205">parseChangelog</a>(), <a class="el" href="parseDescription_8c-source.html#l00029">parseDescription</a>(), <a class="el" href="parseFiles_8c-source.html#l00026">parseFiles</a>(), <a class="el" href="files_8c-source.html#l00885">parseForSimple</a>(), <a class="el" href="parsePrep_8c-source.html#l00539">parsePrep</a>(), <a class="el" href="parseScript_8c-source.html#l00069">parseScript</a>(), <a class="el" href="files_8c-source.html#l02068">processSourceFiles</a>(), and <a class="el" href="manifest_8c-source.html#l00059">rpmReadPackageManifest</a>().    </td>
  </tr>
</table>
<a name="a6" doxytag="stringbuf.c::stripTrailingBlanksStringBuf"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void stripTrailingBlanksStringBuf </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="stringbuf_8h.html#a2">StringBuf</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>sb</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="stringbuf_8c-source.html#l00066">66</a> of file <a class="el" href="stringbuf_8c-source.html">stringbuf.c</a>.
<p>
References <a class="el" href="stringbuf_8c-source.html#l00015">StringBufRec::allocated</a>, <a class="el" href="stringbuf_8c-source.html#l00016">StringBufRec::free</a>, <a class="el" href="stringbuf_8c-source.html#l00014">StringBufRec::tail</a>, and <a class="el" href="rpmio_8h-source.html#l00633">xisspace</a>().
<p>
Referenced by <a class="el" href="parseDescription_8c-source.html#l00029">parseDescription</a>(), and <a class="el" href="parseScript_8c-source.html#l00069">parseScript</a>().    </td>
  </tr>
</table>
<a name="a5" doxytag="stringbuf.c::truncStringBuf"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void truncStringBuf </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="stringbuf_8h.html#a2">StringBuf</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>sb</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="stringbuf_8c-source.html#l00059">59</a> of file <a class="el" href="stringbuf_8c-source.html">stringbuf.c</a>.
<p>
References <a class="el" href="stringbuf_8c-source.html#l00015">StringBufRec::allocated</a>, <a class="el" href="stringbuf_8c-source.html#l00013">StringBufRec::buf</a>, <a class="el" href="stringbuf_8c-source.html#l00016">StringBufRec::free</a>, and <a class="el" href="stringbuf_8c-source.html#l00014">StringBufRec::tail</a>.    </td>
  </tr>
</table>
<a name="a1" doxytag="stringbuf.c::xisspace"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int xisspace </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">int&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>c</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap><code> [inline, static]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Locale insensitive isspace(3).
<p>

<p>
Definition at line <a class="el" href="stringbuf_8c-source.html#l00022">22</a> of file <a class="el" href="stringbuf_8c-source.html">stringbuf.c</a>.    </td>
  </tr>
</table>
<hr><address style="align: right;"><small>Generated on Thu Sep 12 22:15:06 2002 for rpm by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.2.17 </small></address>
</body>
</html>