Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > aaf33964de706a538481c929c1da6a44 > files > 6

faust-doc-0.9.10-5mdv2010.1.x86_64.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>FAUST compiler: PSDev.cpp File Reference</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.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>PSDev.cpp File Reference</h1><code>#include &quot;<a class="el" href="PSDev_8h_source.html">PSDev.h</a>&quot;</code><br/>
<code>#include &quot;string.h&quot;</code><br/>
<code>#include &quot;math.h&quot;</code><br/>
<code>#include &quot;<a class="el" href="compatibility_8hh_source.html">compatibility.hh</a>&quot;</code><br/>
<code>#include &lt;iostream&gt;</code><br/>
<div class="dynheader">
Include dependency graph for PSDev.cpp:</div>
<div class="dynsection">
</div>

<p><a href="PSDev_8cpp_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="PSDev_8cpp.html#a6b5ed85a00614a005e92c6b2bb7818ce">addFileNum</a> (const char *fname)</td></tr>
<tr><td colspan="2"><h2>Variables</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="PSDev_8cpp.html#a984d97be8dbec1ff236dc78d70f5c44f">gFileNum</a> = 0</td></tr>
</table>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="a6b5ed85a00614a005e92c6b2bb7818ce"></a><!-- doxytag: member="PSDev.cpp::addFileNum" ref="a6b5ed85a00614a005e92c6b2bb7818ce" args="(const char *fname)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static char* addFileNum </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>fname</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="PSDev_8cpp_source.html#l00036">36</a> of file <a class="el" href="PSDev_8cpp_source.html">PSDev.cpp</a>.</p>

<p>References <a class="el" href="PSDev_8cpp_source.html#l00034">gFileNum</a>.</p>

<p>Referenced by <a class="el" href="PSDev_8cpp_source.html#l00054">PSDev::PSDev()</a>.</p>

<p><div class="fragment"><pre class="fragment"><a name="l00037"></a>00037 {
<a name="l00038"></a>00038     <span class="keywordtype">char</span>    f[256];
<a name="l00039"></a>00039     <span class="keywordtype">char</span>    s[256]; 
<a name="l00040"></a>00040     <span class="keywordtype">int</span>     i;
<a name="l00041"></a>00041 
<a name="l00042"></a>00042     <span class="comment">// remove suffixes (.xxx.yyy)</span>
<a name="l00043"></a>00043     <span class="keywordflow">for</span> (i=0; (fname[i] != 0) &amp;&amp; (fname[i] != <span class="charliteral">&#39;.&#39;</span>); i++) {
<a name="l00044"></a>00044         f[i] = fname[i];
<a name="l00045"></a>00045     }
<a name="l00046"></a>00046     f[i] = 0;
<a name="l00047"></a>00047 
<a name="l00048"></a>00048     <span class="comment">// add number and .ps suffix</span>
<a name="l00049"></a>00049     snprintf(s, 255, <span class="stringliteral">&quot;%s-%d.ps&quot;</span>, f, ++<a class="code" href="PSDev_8cpp.html#a984d97be8dbec1ff236dc78d70f5c44f">gFileNum</a>);
<a name="l00050"></a>00050     <span class="comment">//cerr &lt;&lt; &quot;file name &quot; &lt;&lt; s &lt;&lt; endl;</span>
<a name="l00051"></a>00051     <span class="keywordflow">return</span> strdup(s);
<a name="l00052"></a>00052 }
</pre></div></p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dynsection">
</div>
</p>

</div>
</div>
<hr/><h2>Variable Documentation</h2>
<a class="anchor" id="a984d97be8dbec1ff236dc78d70f5c44f"></a><!-- doxytag: member="PSDev.cpp::gFileNum" ref="a984d97be8dbec1ff236dc78d70f5c44f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="PSDev_8cpp.html#a984d97be8dbec1ff236dc78d70f5c44f">gFileNum</a> = 0<code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="PSDev_8cpp_source.html#l00034">34</a> of file <a class="el" href="PSDev_8cpp_source.html">PSDev.cpp</a>.</p>

<p>Referenced by <a class="el" href="PSDev_8cpp_source.html#l00036">addFileNum()</a>.</p>

</div>
</div>
</div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Thu Apr 29 00:00:10 2010 for FAUST compiler by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>