Deleted Added
full compact
cdefs.html (90792) cdefs.html (95154)
1<html>
2<head>
3 <title>libsm : C Language Portability Macros</title>
4</head>
5<body>
6
7<a href="index.html">Back to libsm overview</a>
8
9<center>
10 <h1> libsm : C Language Portability Macros </h1>
1<html>
2<head>
3 <title>libsm : C Language Portability Macros</title>
4</head>
5<body>
6
7<a href="index.html">Back to libsm overview</a>
8
9<center>
10 <h1> libsm : C Language Portability Macros </h1>
11 <br> $Id: cdefs.html,v 1.2 2000/12/07 17:33:09 dmoen Exp $
11 <br> $Id: cdefs.html,v 1.1.1.1 2002/02/17 21:56:43 gshapiro Exp $
12</center>
13
14<h2> Description </h2>
15
16The header file <tt>&lt;sm/cdefs.h&gt;</tt>
17defines portable interfaces to non-portable features
18of various C compilers.
19It also assists you in writing C header files that are compatible

--- 61 unchanged lines hidden (view full) ---

81<tt> SM_UNUSED(variable_declaration) </tt>
82<dd>
83 This macro modifies a definition of an unused
84 local variable, global variable or function parameter
85 in order to suppress compiler warnings.
86 Examples:
87
88<blockquote><pre>
12</center>
13
14<h2> Description </h2>
15
16The header file <tt>&lt;sm/cdefs.h&gt;</tt>
17defines portable interfaces to non-portable features
18of various C compilers.
19It also assists you in writing C header files that are compatible

--- 61 unchanged lines hidden (view full) ---

81<tt> SM_UNUSED(variable_declaration) </tt>
82<dd>
83 This macro modifies a definition of an unused
84 local variable, global variable or function parameter
85 in order to suppress compiler warnings.
86 Examples:
87
88<blockquote><pre>
89SM_UNUSED(static const char Id[]) = "@(#)$Id: cdefs.html,v 1.2 2000/12/07 17:33:09 dmoen Exp $";
89SM_UNUSED(static const char Id[]) = "@(#)$Id: cdefs.html,v 1.1.1.1 2002/02/17 21:56:43 gshapiro Exp $";
90void
91foo(x)
92 SM_UNUSED(int x);
93{
94 SM_UNUSED(int y) = 0;
95 return 0;
96}
97void
98bar(SM_UNUSED(int x))
99{
100 return 0;
101}
102</pre></blockquote>
103
104</dl>
105
106</body>
107</html>
90void
91foo(x)
92 SM_UNUSED(int x);
93{
94 SM_UNUSED(int y) = 0;
95 return 0;
96}
97void
98bar(SM_UNUSED(int x))
99{
100 return 0;
101}
102</pre></blockquote>
103
104</dl>
105
106</body>
107</html>