3 Copyright 1991, 1998 The Open Group
5 Permission to use, copy, modify, distribute, and sell this software and its
6 documentation for any purpose is hereby granted without fee, provided that
7 the above copyright notice appear in all copies and that both that
8 copyright notice and this permission notice appear in supporting
11 The above copyright notice and this permission notice shall be included in
12 all copies or substantial portions of the Software.
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 Except as contained in this notice, the name of The Open Group shall not be
22 used in advertising or otherwise to promote the sale, use or other dealings
23 in this Software without prior written authorization from The Open Group.
25 * Author: Keith Packard, MIT X Consortium
30 * Map names around so that multiple depths can be supported simultaneously
34 #undef QuartetBitsTable
35 #undef QuartetPixelMaskTable
36 #undef cfb8ClippedLineCopy
37 #undef cfb8ClippedLineGeneral
38 #undef cfb8ClippedLineXor
39 #undef cfb8LineSS1Rect
40 #undef cfb8LineSS1RectCopy
41 #undef cfb8LineSS1RectGeneral
42 #undef cfb8LineSS1RectPreviousCopy
43 #undef cfb8LineSS1RectXor
44 #undef cfb8SegmentSS1Rect
45 #undef cfb8SegmentSS1RectCopy
46 #undef cfb8SegmentSS1RectGeneral
47 #undef cfb8SegmentSS1RectShiftCopy
48 #undef cfb8SegmentSS1RectXor
49 #undef cfbAllocatePrivates
54 #undef cfbChangeWindowAttributes
57 #undef cfbCopyImagePlane
60 #undef cfbCopyPlaneReduce
61 #undef cfbCopyRotatePixmap
64 #undef cfbCreatePixmap
65 #undef cfbCreateScreenResources
66 #undef cfbCreateWindow
67 #undef cfbDestroyPixmap
68 #undef cfbDestroyWindow
70 #undef cfbDoBitbltCopy
71 #undef cfbDoBitbltGeneral
74 #undef cfbFillBoxSolid
75 #undef cfbFillBoxTile32
76 #undef cfbFillBoxTile32sCopy
77 #undef cfbFillBoxTile32sGeneral
78 #undef cfbFillBoxTileOdd
79 #undef cfbFillBoxTileOddCopy
80 #undef cfbFillBoxTileOddGeneral
81 #undef cfbFillPoly1RectCopy
82 #undef cfbFillPoly1RectGeneral
83 #undef cfbFillRectSolidCopy
84 #undef cfbFillRectSolidGeneral
85 #undef cfbFillRectSolidXor
86 #undef cfbFillRectTile32Copy
87 #undef cfbFillRectTile32General
88 #undef cfbFillRectTileOdd
89 #undef cfbFillSpanTile32sCopy
90 #undef cfbFillSpanTile32sGeneral
91 #undef cfbFillSpanTileOddCopy
92 #undef cfbFillSpanTileOddGeneral
93 #undef cfbFinishScreenInit
95 #undef cfbGCPrivateIndex
97 #undef cfbGetScreenPixmap
100 #undef cfbImageGlyphBlt8
101 #undef cfbInitializeColormap
102 #undef cfbInstallColormap
105 #undef cfbListInstalledColormaps
107 #undef cfbMatchCommon
109 #undef cfbNonTEOps1Rect
111 #undef cfbPaintWindow
112 #undef cfbPolyFillArcSolidCopy
113 #undef cfbPolyFillArcSolidGeneral
114 #undef cfbPolyFillRect
115 #undef cfbPolyGlyphBlt8
116 #undef cfbPolyGlyphRop8
118 #undef cfbPositionWindow
120 #undef cfbReduceRasterOp
121 #undef cfbResolveColor
122 #undef cfbRestoreAreas
125 #undef cfbScreenPrivateIndex
128 #undef cfbSetScanline
129 #undef cfbSetScreenPixmap
131 #undef cfbSetupScreen
132 #undef cfbSolidSpansCopy
133 #undef cfbSolidSpansGeneral
134 #undef cfbSolidSpansXor
135 #undef cfbStippleStack
136 #undef cfbStippleStackTE
140 #undef cfbTile32FSCopy
141 #undef cfbTile32FSGeneral
142 #undef cfbUninstallColormap
143 #undef cfbUnmapWindow
144 #undef cfbUnnaturalStippleFS
145 #undef cfbUnnaturalTileFS
148 #undef cfbWindowPrivateIndex
149 #undef cfbXRotatePixmap
150 #undef cfbYRotatePixmap
151 #undef cfbZeroPolyArcSS8Copy
152 #undef cfbZeroPolyArcSS8General
153 #undef cfbZeroPolyArcSS8Xor
158 #undef cfbstartpartial
162 /* a losing vendor cpp dumps core if we define CFBNAME in terms of CATNAME */
167 #if !defined(UNIXCPP) || defined(ANSICPP)
168 #define CFBNAME(subname) cfb32##subname
170 #define CFBNAME(subname) cfb32/**/subname
175 #if !defined(UNIXCPP) || defined(ANSICPP)
176 #define CFBNAME(subname) cfb24##subname
178 #define CFBNAME(subname) cfb24/**/subname
183 #if !defined(UNIXCPP) || defined(ANSICPP)
184 #define CFBNAME(subname) cfb16##subname
186 #define CFBNAME(subname) cfb16/**/subname
191 #if !defined(UNIXCPP) || defined(ANSICPP)
192 #define CFBNAME(subname) cfb4##subname
194 #define CFBNAME(subname) cfb4/**/subname
199 cfb can
not hack PSZ yet
204 #if !defined(UNIXCPP) || defined(ANSICPP)
205 #define CATNAME(prefix,subname) prefix##subname
207 #define CATNAME(prefix,subname) prefix/**/subname
210 #define QuartetBitsTable CFBNAME(QuartetBitsTable)
211 #define QuartetPixelMaskTable CFBNAME(QuartetPixelMaskTable)
212 #define cfb8ClippedLineCopy CFBNAME(ClippedLineCopy)
213 #define cfb8ClippedLineGeneral CFBNAME(ClippedLineGeneral )
214 #define cfb8ClippedLineXor CFBNAME(ClippedLineXor)
215 #define cfb8LineSS1Rect CFBNAME(LineSS1Rect)
216 #define cfb8LineSS1RectCopy CFBNAME(LineSS1RectCopy)
217 #define cfb8LineSS1RectGeneral CFBNAME(LineSS1RectGeneral )
218 #define cfb8LineSS1RectPreviousCopy CFBNAME(LineSS1RectPreviousCopy)
219 #define cfb8LineSS1RectXor CFBNAME(LineSS1RectXor)
220 #define cfb8SegmentSS1Rect CFBNAME(SegmentSS1Rect)
221 #define cfb8SegmentSS1RectCopy CFBNAME(SegmentSS1RectCopy)
222 #define cfb8SegmentSS1RectGeneral CFBNAME(SegmentSS1RectGeneral )
223 #define cfb8SegmentSS1RectShiftCopy CFBNAME(SegmentSS1RectShiftCopy)
224 #define cfb8SegmentSS1RectXor CFBNAME(SegmentSS1RectXor)
225 #define cfbAllocatePrivates CFBNAME(AllocatePrivates)
226 #define cfbBSFuncRec CFBNAME(BSFuncRec)
227 #define cfbBitBlt CFBNAME(BitBlt)
228 #define cfbBresD CFBNAME(BresD)
229 #define cfbBresS CFBNAME(BresS)
230 #define cfbChangeWindowAttributes CFBNAME(ChangeWindowAttributes)
231 #define cfbClearVisualTypes CFBNAME(cfbClearVisualTypes)
232 #define cfbCloseScreen CFBNAME(CloseScreen)
233 #define cfbCreateDefColormap CFBNAME (cfbCreateDefColormap)
234 #define cfbCopyArea CFBNAME(CopyArea)
235 #define cfbCopyImagePlane CFBNAME(CopyImagePlane)
236 #define cfbCopyPixmap CFBNAME(CopyPixmap)
237 #define cfbCopyPlane CFBNAME(CopyPlane)
238 #define cfbCopyPlaneReduce CFBNAME(CopyPlaneReduce)
239 #define cfbCopyRotatePixmap CFBNAME(CopyRotatePixmap)
240 #define cfbCopyWindow CFBNAME(CopyWindow)
241 #define cfbCreateGC CFBNAME(CreateGC)
242 #define cfbCreatePixmap CFBNAME(CreatePixmap)
243 #define cfbCreateScreenResources CFBNAME(CreateScreenResources)
244 #define cfbCreateWindow CFBNAME(CreateWindow)
245 #define cfbDestroyPixmap CFBNAME(DestroyPixmap)
246 #define cfbDestroyWindow CFBNAME(DestroyWindow)
247 #define cfbDoBitblt CFBNAME(DoBitblt)
248 #define cfbDoBitbltCopy CFBNAME(DoBitbltCopy)
249 #define cfbDoBitbltGeneral CFBNAME(DoBitbltGeneral)
250 #define cfbDoBitbltOr CFBNAME(DoBitbltOr)
251 #define cfbDoBitbltXor CFBNAME(DoBitbltXor)
252 #define cfbExpandDirectColors CFBNAME(cfbExpandDirectColors)
253 #define cfbFillBoxSolid CFBNAME(FillBoxSolid)
254 #define cfbFillBoxTile32 CFBNAME(FillBoxTile32)
255 #define cfbFillBoxTile32sCopy CFBNAME(FillBoxTile32sCopy)
256 #define cfbFillBoxTile32sGeneral CFBNAME(FillBoxTile32sGeneral)
257 #define cfbFillBoxTileOdd CFBNAME(FillBoxTileOdd)
258 #define cfbFillBoxTileOddCopy CFBNAME(FillBoxTileOddCopy)
259 #define cfbFillBoxTileOddGeneral CFBNAME(FillBoxTileOddGeneral)
260 #define cfbFillPoly1RectCopy CFBNAME(FillPoly1RectCopy)
261 #define cfbFillPoly1RectGeneral CFBNAME(FillPoly1RectGeneral)
262 #define cfbFillRectSolidCopy CFBNAME(FillRectSolidCopy)
263 #define cfbFillRectSolidGeneral CFBNAME(FillRectSolidGeneral)
264 #define cfbFillRectSolidXor CFBNAME(FillRectSolidXor)
265 #define cfbFillRectTile32Copy CFBNAME(FillRectTile32Copy)
266 #define cfbFillRectTile32General CFBNAME(FillRectTile32General)
267 #define cfbFillRectTileOdd CFBNAME(FillRectTileOdd)
268 #define cfbFillSpanTile32sCopy CFBNAME(FillSpanTile32sCopy)
269 #define cfbFillSpanTile32sGeneral CFBNAME(FillSpanTile32sGeneral)
270 #define cfbFillSpanTileOddCopy CFBNAME(FillSpanTileOddCopy)
271 #define cfbFillSpanTileOddGeneral CFBNAME(FillSpanTileOddGeneral)
272 #define cfbFinishScreenInit CFBNAME(FinishScreenInit)
273 #define cfbGCFuncs CFBNAME(GCFuncs)
274 #define cfbGCPrivateIndex CFBNAME(GCPrivateIndex)
275 #define cfbGetImage CFBNAME(GetImage)
276 #define cfbGetScreenPixmap CFBNAME(GetScreenPixmap)
277 #define cfbGetSpans CFBNAME(GetSpans)
278 #define cfbHorzS CFBNAME(HorzS)
279 #define cfbImageGlyphBlt8 CFBNAME(ImageGlyphBlt8)
280 #define cfbInitializeColormap CFBNAME(InitializeColormap)
281 #define cfbInitVisuals CFBNAME(cfbInitVisuals)
282 #define cfbInstallColormap CFBNAME(InstallColormap)
283 #define cfbLineSD CFBNAME(LineSD)
284 #define cfbLineSS CFBNAME(LineSS)
285 #define cfbListInstalledColormaps CFBNAME(ListInstalledColormaps)
286 #define cfbMapWindow CFBNAME(MapWindow)
287 #define cfbMatchCommon CFBNAME(MatchCommon)
288 #define cfbNonTEOps CFBNAME(NonTEOps)
289 #define cfbNonTEOps1Rect CFBNAME(NonTEOps1Rect)
290 #define cfbPadPixmap CFBNAME(PadPixmap)
291 #define cfbPaintWindow CFBNAME(PaintWindow)
292 #define cfbPolyFillArcSolidCopy CFBNAME(PolyFillArcSolidCopy)
293 #define cfbPolyFillArcSolidGeneral CFBNAME(PolyFillArcSolidGeneral)
294 #define cfbPolyFillRect CFBNAME(PolyFillRect)
295 #define cfbPolyGlyphBlt8 CFBNAME(PolyGlyphBlt8)
296 #define cfbPolyGlyphRop8 CFBNAME(PolyGlyphRop8)
297 #define cfbPolyPoint CFBNAME(PolyPoint)
298 #define cfbPositionWindow CFBNAME(PositionWindow)
299 #define cfbPutImage CFBNAME(PutImage)
300 #define cfbReduceRasterOp CFBNAME(ReduceRasterOp)
301 #define cfbResolveColor CFBNAME(ResolveColor)
302 #define cfbRestoreAreas CFBNAME(RestoreAreas)
303 #define cfbSaveAreas CFBNAME(SaveAreas)
304 #define cfbScreenInit CFBNAME(ScreenInit)
305 #define cfbScreenPrivateIndex CFBNAME(ScreenPrivateIndex)
306 #define cfbSegmentSD CFBNAME(SegmentSD)
307 #define cfbSegmentSS CFBNAME(SegmentSS)
308 #define cfbSetScanline CFBNAME(SetScanline)
309 #define cfbSetScreenPixmap CFBNAME(SetScreenPixmap)
310 #define cfbSetSpans CFBNAME(SetSpans)
311 #define cfbSetVisualTypes CFBNAME(cfbSetVisualTypes)
312 #define cfbSetupScreen CFBNAME(SetupScreen)
313 #define cfbSolidSpansCopy CFBNAME(SolidSpansCopy)
314 #define cfbSolidSpansGeneral CFBNAME(SolidSpansGeneral)
315 #define cfbSolidSpansXor CFBNAME(SolidSpansXor)
316 #define cfbStippleStack CFBNAME(StippleStack)
317 #define cfbStippleStackTE CFBNAME(StippleStackTE)
318 #define cfbTEGlyphBlt CFBNAME(TEGlyphBlt)
319 #define cfbTEOps CFBNAME(TEOps)
320 #define cfbTEOps1Rect CFBNAME(TEOps1Rect)
321 #define cfbTile32FSCopy CFBNAME(Tile32FSCopy)
322 #define cfbTile32FSGeneral CFBNAME(Tile32FSGeneral)
323 #define cfbUninstallColormap CFBNAME(UninstallColormap)
324 #define cfbUnmapWindow CFBNAME(UnmapWindow)
325 #define cfbUnnaturalStippleFS CFBNAME(UnnaturalStippleFS)
326 #define cfbUnnaturalTileFS CFBNAME(UnnaturalTileFS)
327 #define cfbValidateGC CFBNAME(ValidateGC)
328 #define cfbVertS CFBNAME(VertS)
329 #define cfbWindowPrivateIndex CFBNAME(WindowPrivateIndex)
330 #define cfbXRotatePixmap CFBNAME(XRotatePixmap)
331 #define cfbYRotatePixmap CFBNAME(YRotatePixmap)
332 #define cfbZeroPolyArcSS8Copy CFBNAME(ZeroPolyArcSSCopy)
333 #define cfbZeroPolyArcSS8General CFBNAME(ZeroPolyArcSSGeneral)
334 #define cfbZeroPolyArcSS8Xor CFBNAME(ZeroPolyArcSSXor)
335 #define cfbendpartial CFBNAME(endpartial)
336 #define cfbendtab CFBNAME(endtab)
337 #define cfbmask CFBNAME(mask)
338 #define cfbrmask CFBNAME(rmask)
339 #define cfbstartpartial CFBNAME(startpartial)
340 #define cfbstarttab CFBNAME(starttab)
342 #endif /* PSZ != 8 */