Work around MinGW mangling of "host:/path"
[msysgit/historical-msysgit.git] / mingw / info / stabs / Typedefs.html
blobebae3d8b514517ad105bff70bf67d54682f15e40
1 <html lang="en">
2 <head>
3 <title>STABS</title>
4 <meta http-equiv="Content-Type" content="text/html">
5 <meta name="description" content="STABS">
6 <meta name="generator" content="makeinfo 4.3">
7 <link href="http://www.gnu.org/software/texinfo/" rel="generator-home">
8 </head>
9 <body>
10 <div class="node">
11 <p>
12 Node:<a name="Typedefs">Typedefs</a>,
13 Next:<a rel="next" accesskey="n" href="Unions.html#Unions">Unions</a>,
14 Previous:<a rel="previous" accesskey="p" href="Structures.html#Structures">Structures</a>,
15 Up:<a rel="up" accesskey="u" href="Types.html#Types">Types</a>
16 <hr><br>
17 </div>
19 <h3 class="section">Giving a Type a Name</h3>
21 <p>To give a type a name, use the <code>t</code> symbol descriptor. The type
22 is specified by the type information (see <a href="String-Field.html#String%20Field">String Field</a>) for the stab.
23 For example,
25 <pre class="example"> .stabs "s_typedef:t16",128,0,0,0 # 128 is N_LSYM
26 </pre>
28 <p>specifies that <code>s_typedef</code> refers to type number 16. Such stabs
29 have symbol type <code>N_LSYM</code> (or <code>C_DECL</code> for XCOFF). (The Sun
30 documentation mentions using <code>N_GSYM</code> in some cases).
32 <p>If you are specifying the tag name for a structure, union, or
33 enumeration, use the <code>T</code> symbol descriptor instead. I believe C is
34 the only language with this feature.
36 <p>If the type is an opaque type (I believe this is a Modula-2 feature),
37 AIX provides a type descriptor to specify it. The type descriptor is
38 <code>o</code> and is followed by a name. I don't know what the name
39 means--is it always the same as the name of the type, or is this type
40 descriptor used with a nameless stab (see <a href="String-Field.html#String%20Field">String Field</a>)? There
41 optionally follows a comma followed by type information which defines
42 the type of this type. If omitted, a semicolon is used in place of the
43 comma and the type information, and the type is much like a generic
44 pointer type--it has a known size but little else about it is
45 specified.
47 </body></html>