&My::Web::footer call is deprecated now, use just: exit;
[www.jankratochvil.net.git] / project / captive / doc / CallType.pm
index 8f80e99..ce3b7cc 100755 (executable)
@@ -24,12 +24,11 @@ use strict;
 use warnings;
 
 use My::Web;
-require CGI;
-BEGIN { Wuse 'project::captive::doc::Macros'; }
 
 
 sub handler
 {
+       BEGIN { Wuse 'project::captive::doc::Macros'; }
 project::captive::doc::Macros->init(
                "title"=>'Captive NTFS Developer Documentation: API Calling Conventions',
                "rel_prev"=>'APITypes.pm',
@@ -84,13 +83,13 @@ print <<"HERE";
                @{[ doc_img 'fig/calltype_cdecl',
                                'W32 Calling Convention <span class="constant">cdecl</span> Scheme' ]}
 
-               <table border="0" width="100%"><tr><td align="center"><table border="1">
+               <table border="1" class="margin-center">
                        <caption>Calling Convention <span class="constant">cdecl</span> Characteristics</caption>
                        <tr><td>Arguments freed by         </td><td>caller</td></tr>
                        <tr><td>Arguments on the stack     </td><td>#0 ... #(n-1)</td></tr>
                        <tr><td>Arguments in the registers </td><td>none</td></tr>
                        <tr><td>GCC attribute              </td><td><span class="command">__attribute__((__cdecl__))</span> (default)</td></tr>
-               </table></td></tr></table>
+               </table>
 
        <h2 id="calltype_stdcall">W32 Calling Convention &quot;stdcall&quot;</h2>
 
@@ -105,13 +104,13 @@ print <<"HERE";
                passed by this convention &ndash; use @{[ a_href 'CallType.pm#calltype_cdecl','cdecl' ]}
                instead.</p>
 
-               <table border="0" width="100%"><tr><td align="center"><table border="1">
+               <table border="1" class="margin-center">
                        <caption>Calling Convention <span class="constant">stdcall</span> Characteristics</caption>
                        <tr><td>Arguments freed by         </td><td>callee</td></tr>
                        <tr><td>Arguments on the stack     </td><td>#0 ... #(n-1)</td></tr>
                        <tr><td>Arguments in the registers </td><td>none</td></tr>
                        <tr><td>GCC attribute              </td><td><span class="command">__attribute__((__stdcall__))</span></td></tr>
-               </table></td></tr></table>
+               </table>
 
        <h2 id="calltype_fastcall">W32 Calling Convention &quot;fastcall&quot;</h2>
 
@@ -143,7 +142,7 @@ print <<"HERE";
                @{[ doc_img 'fig/calltype_fastcall',
                                'W32 Calling Convention <span class="constant">fastcall</span> Scheme' ]}
 
-               <table border="0" width="100%"><tr><td align="center"><table border="1">
+               <table border="1" class="margin-center">
                        <caption>Calling Convention <span class="constant">fastcall</span> Characteristics</caption>
                        <tr><td>Arguments freed by         </td><td>callee</td></tr>
                        <tr><td>Arguments on the stack     </td><td>#2 ... #(n-1)</td></tr>
@@ -152,12 +151,12 @@ print <<"HERE";
                        <tr><td>GCC &ge;3.4 attribute      </td><td><span class="command">__attribute__((__fastcall__))</span></td></tr>
                        <tr><td>GCC &lt;3.4 attr. emulation</td><td><span class="command">__attribute__((__stdcall__))</span></td></tr>
                        <tr><td>                           </td><td><span class="command">__attribute__((__regparm__(3) /* EAX,EDX,ECX */))</span></td></tr>
-               </table></td></tr></table>
+               </table>
 
 
 HERE
 
 
-project::captive::doc::Macros->footer();
+exit;
 }
 1;