Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > cd14cddf3b3ceaf1193157472227757a > files > 107

parrot-doc-1.6.0-1mdv2010.0.i586.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>
        <title>Parrot  - The Headerizer</title>
        <link rel="stylesheet" type="text/css"
            href="../../../resources/parrot.css"
            media="all">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    </head>
    <body>
        <div id="wrapper">
            <div id="header">

                <a href="http://www.parrot.org">
                <img border=0 src="../../../resources/parrot_logo.png" id="logo" alt="parrot">
                </a>
            </div> <!-- "header" -->
            <div id="divider"></div>
            <div id="mainbody">
                <div id="breadcrumb">
                    <a href="../../../html/index.html">Home</a> &raquo; <a href="../../../html/developer.html">Developer Documentation</a> &raquo; The Headerizer
                </div>

<h1><a name="TITLE"
>TITLE</a></h1>

<p>The Headerizer</p>

<h1><a name="AUTHOR"
>AUTHOR</a></h1>

<p>Andy Lester <code>andy@petdance.com</code></p>

<h1><a name="INTRODUCTION"
>INTRODUCTION</a></h1>

<p>The Headerizer (<em><a href="../../tools/build/headerizer.pl.html">tools/build/headerizer.pl</a></em>) is a tool that generates chunks of <em>.h</em> header files based on C source code.</p>

<p>The long&#45;term plan for the headerizer is that it will take all the prototypes for all the functions and populate all the .h files automatically.
No need to worry about differences between header and source,
because the header comes from it.
It&#39;ll also auto&#45;generate attributes for each of the functions that work with GCC.</p>

<h1><a name="RUNNING_THE_HEADERIZER"
>RUNNING THE HEADERIZER</a></h1>

<p>Yesterday there was a problem where I forgot to put PARROT_EXPORT on the function in source,
so linking on Windows broke.
If that happens again,
here&#39;s what you do:</p>

<ul>
<li>Run Configure.pl</li>

<li>Update the source with PARROT_EXPORT above the return type</li>

<li>Run &#34;make headerizer&#34;</li>
</ul>

<p>The .h file should now have PARROT_EXPORT for the function in question.</p>
            </div> <!-- "mainbody" -->
            <div id="divider"></div>
            <div id="footer">
	        Copyright &copy; 2002-2009, Parrot Foundation.
            </div>
        </div> <!-- "wrapper" -->
    </body>
</html>