<!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 Page</span></a></li> <li><a href="pages.html"><span>Related 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 List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> </div> <div class="contents"> <h1>PSDev.cpp File Reference</h1><code>#include "<a class="el" href="PSDev_8h_source.html">PSDev.h</a>"</code><br/> <code>#include "string.h"</code><br/> <code>#include "math.h"</code><br/> <code>#include "<a class="el" href="compatibility_8hh_source.html">compatibility.hh</a>"</code><br/> <code>#include <iostream></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 * </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 </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 * </td> <td class="paramname"> <em>fname</em></td> <td> ) </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) && (fname[i] != <span class="charliteral">'.'</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">"%s-%d.ps"</span>, f, ++<a class="code" href="PSDev_8cpp.html#a984d97be8dbec1ff236dc78d70f5c44f">gFileNum</a>); <a name="l00050"></a>00050 <span class="comment">//cerr << "file name " << s << 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 <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address> </body> </html>