Annotation of embedaddon/libnet/doc/html/gnuc_8h-source.html, revision 1.1.1.1
1.1 misho 1: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2: <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3: <title>libnet: gnuc.h Source File</title>
4: <link href="doxygen.css" rel="stylesheet" type="text/css">
5: </head><body>
6: <!-- Generated by Doxygen 1.3.4 -->
7: <div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a></div>
8: <h1>gnuc.h</h1><div class="fragment"><pre>00001 <span class="comment">/* @(#) $Header: /usr/local/CVS/libnet/include/gnuc.h,v 1.1.1.1 2003/06/26 21:55:10 route Exp $ (LBL) */</span>
9: 00002
10: 00003 <span class="comment">/* Define __P() macro, if necessary */</span>
11: 00004 <span class="preprocessor">#ifndef __P</span>
12: 00005 <span class="preprocessor"></span><span class="preprocessor">#if __STDC__</span>
13: 00006 <span class="preprocessor"></span><span class="preprocessor">#define __P(protos) protos</span>
14: 00007 <span class="preprocessor"></span><span class="preprocessor">#else</span>
15: 00008 <span class="preprocessor"></span><span class="preprocessor">#define __P(protos) ()</span>
16: 00009 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
17: 00010 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
18: 00011 <span class="preprocessor"></span>
19: 00012 <span class="comment">/* inline foo */</span>
20: 00013 <span class="preprocessor">#ifdef __GNUC__</span>
21: 00014 <span class="preprocessor"></span><span class="preprocessor">#define inline __inline</span>
22: 00015 <span class="preprocessor"></span><span class="preprocessor">#else</span>
23: 00016 <span class="preprocessor"></span><span class="preprocessor">#define inline</span>
24: 00017 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
25: 00018 <span class="preprocessor"></span>
26: 00019 <span class="comment">/*</span>
27: 00020 <span class="comment"> * Handle new and old "dead" routine prototypes</span>
28: 00021 <span class="comment"> *</span>
29: 00022 <span class="comment"> * For example:</span>
30: 00023 <span class="comment"> *</span>
31: 00024 <span class="comment"> * __dead void foo(void) __attribute__((volatile));</span>
32: 00025 <span class="comment"> *</span>
33: 00026 <span class="comment"> */</span>
34: 00027 <span class="preprocessor">#ifdef __GNUC__</span>
35: 00028 <span class="preprocessor"></span><span class="preprocessor">#ifndef __dead</span>
36: 00029 <span class="preprocessor"></span><span class="preprocessor">#define __dead volatile</span>
37: 00030 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
38: 00031 <span class="preprocessor"></span><span class="preprocessor">#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5)</span>
39: 00032 <span class="preprocessor"></span><span class="preprocessor">#ifndef __attribute__</span>
40: 00033 <span class="preprocessor"></span><span class="preprocessor">#define __attribute__(args)</span>
41: 00034 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
42: 00035 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
43: 00036 <span class="preprocessor"></span><span class="preprocessor">#else</span>
44: 00037 <span class="preprocessor"></span><span class="preprocessor">#ifndef __dead</span>
45: 00038 <span class="preprocessor"></span><span class="preprocessor">#define __dead</span>
46: 00039 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
47: 00040 <span class="preprocessor"></span><span class="preprocessor">#ifndef __attribute__</span>
48: 00041 <span class="preprocessor"></span><span class="preprocessor">#define __attribute__(args)</span>
49: 00042 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
50: 00043 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
51: </pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Mar 10 13:23:37 2004 for libnet by
52: <a href="http://www.doxygen.org/index.html">
53: <img src="doxygen.png" alt="doxygen" align="middle" border=0 >
54: </a>1.3.4 </small></address>
55: </body>
56: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>