x11drv: Allow xvidmode to always initialize at least for the gamma functions.
[wine/dibdrv.git] / tools / winedump / cvinclude.h
blob35fa1153ae52e41882b524e454bb7d33427232b5
1 /*
2 * CodeView 4 Debug format - declarations
4 * (based on cvinfo.h and cvexefmt.h from the Win32 SDK)
6 * Copyright 2000 John R. Sheets for CodeWeavers
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 #define sstModule 0x120
24 #define sstAlignSym 0x125
25 #define sstSrcModule 0x127
26 #define sstLibraries 0x128
27 #define sstGlobalSym 0x129
28 #define sstGlobalPub 0x12a
29 #define sstGlobalTypes 0x12b
30 #define sstSegMap 0x12d
31 #define sstFileIndex 0x133
32 #define sstStaticSym 0x134
34 #if 0
35 /* Old, crusty value */
36 #define S_PUB32 0x0203
37 #endif
39 #define S_PUB32 0x1009
41 #include "pshpack1.h"
44 * CodeView headers
47 typedef struct OMFSignature
49 char Signature[4];
50 long filepos;
51 } OMFSignature;
53 typedef struct OMFDirHeader
55 unsigned short cbDirHeader;
56 unsigned short cbDirEntry;
57 unsigned long cDir;
58 long lfoNextDir;
59 unsigned long flags;
60 } OMFDirHeader;
62 typedef struct OMFDirEntry
64 unsigned short SubSection;
65 unsigned short iMod;
66 long lfo;
67 unsigned long cb;
68 } OMFDirEntry;
72 * sstModule subsection
75 typedef struct OMFSegDesc
77 unsigned short Seg;
78 unsigned short pad;
79 unsigned long Off;
80 unsigned long cbSeg;
81 } OMFSegDesc;
83 /* Must chop off the OMFSegDesc* field, because we need to write this
84 * struct out to a file. If we write the whole struct out, we'll end up
85 * with (*OMFSegDesc), not (OMFSegDesc). See OMFModuleFull.
87 typedef struct OMFModule
89 unsigned short ovlNumber;
90 unsigned short iLib;
91 unsigned short cSeg;
92 char Style[2];
93 } OMFModule;
95 /* Full version, with memory pointers, too. Use OMFModule for writing out to
96 * a file, and OMFModuleFull for reading. If offsetof() were available, we
97 * could use that instead.
99 typedef struct OMFModuleFull
101 unsigned short ovlNumber;
102 unsigned short iLib;
103 unsigned short cSeg;
104 char Style[2];
105 OMFSegDesc *SegInfo;
106 char *Name;
107 } OMFModuleFull;
111 * sstGlobalPub section
114 /* Header for symbol table.
116 typedef struct OMFSymHash
118 unsigned short symhash;
119 unsigned short addrhash;
120 unsigned long cbSymbol;
121 unsigned long cbHSym;
122 unsigned long cbHAddr;
123 } OMFSymHash;
125 /* Symbol table entry.
127 typedef struct DATASYM32
129 unsigned short reclen;
130 unsigned short rectyp;
131 unsigned long typind;
132 unsigned long off;
133 unsigned short seg;
134 } DATASYM32;
135 typedef DATASYM32 PUBSYM32;
138 * sstSegMap section
141 typedef struct OMFSegMapDesc
143 unsigned short flags;
144 unsigned short ovl;
145 unsigned short group;
146 unsigned short frame;
147 unsigned short iSegName;
148 unsigned short iClassName;
149 unsigned long offset;
150 unsigned long cbSeg;
151 } OMFSegMapDesc;
153 typedef struct OMFSegMap
155 unsigned short cSeg;
156 unsigned short cSegLog;
157 /* OMFSegMapDesc rgDesc[0];*/
158 } OMFSegMap;
162 * sstSrcModule section
165 typedef struct OMFSourceLine
167 unsigned short Seg;
168 unsigned short cLnOff;
169 unsigned long offset[1];
170 unsigned short lineNbr[1];
171 } OMFSourceLine;
173 typedef struct OMFSourceFile
175 unsigned short cSeg;
176 unsigned short reserved;
177 unsigned long baseSrcLn[1];
178 unsigned short cFName;
179 char Name;
180 } OMFSourceFile;
182 typedef struct OMFSourceModule
184 unsigned short cFile;
185 unsigned short cSeg;
186 unsigned long baseSrcFile[1];
187 } OMFSourceModule;