From c3d14036729fd186d4ec7ca1de603e1f2d174e2f Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 10 Feb 2006 22:00:30 +0000 Subject: [PATCH] Remove libcwrapper usage from xorg server modules. The libcwrapper is only of (marginal) use in the drivers, and that usage remains. --- ChangeLog | 195 ++++++++++++++++++ GL/glx/glxcmds.c | 2 + GL/glx/glximports.c | 4 + GL/glx/glxscreens.c | 4 +- GL/glx/glxutil.c | 2 + GL/glx/indirect_util.c | 2 + GL/glx/single2.c | 4 + GL/include/GL/glx_ansic.h | 3 - GL/include/GL/xf86glx.h | 4 - GL/mesa/X/xf86glx_util.c | 2 + XTrap/xtrapddmi.c | 2 - XTrap/xtrapdi.c | 4 +- XTrap/xtrapditbl.c | 2 + Xext/cup.c | 4 - Xext/mbuf.c | 4 - Xext/saver.c | 6 +- Xext/shape.c | 7 +- Xext/shm.c | 3 - Xext/sync.c | 6 +- Xext/xtest.c | 5 +- Xext/xvdisp.c | 8 +- Xext/xvmain.c | 8 +- Xext/xvmc.c | 2 + afb/afb.h | 5 - afb/afbbitblt.c | 2 + afb/afbblt.c | 2 + afb/afbclip.c | 2 + afb/afbgc.c | 2 + afb/afbimage.c | 2 + afb/afbpixmap.c | 2 + afb/afbply1rct.c | 2 + afb/afbpushpxl.c | 2 + afb/afbscrinit.c | 2 + afb/afbwindow.c | 2 + cfb/cfb.h | 6 - cfb/cfb8line.c | 1 + cfb/cfbbitblt.c | 2 + cfb/cfbblt.c | 2 + cfb/cfbcppl.c | 1 + cfb/cfbfillarc.c | 4 +- cfb/cfbgc.c | 2 + cfb/cfbimage.c | 2 + cfb/cfbline.c | 1 + cfb/cfbmskbits.h | 1 - cfb/cfbpixmap.c | 2 + cfb/cfbply1rct.c | 2 + cfb/cfbwindow.c | 2 + cfb/cfbzerarc.c | 4 +- configure.ac | 2 +- dbe/dbe.c | 8 +- dbe/midbe.c | 4 - exa/exa_migration.c | 3 + exa/exa_offscreen.c | 6 +- fb/fb24_32.c | 2 +- fb/fbarc.c | 6 +- fb/fbcompose.c | 8 +- fb/fbcopy.c | 5 +- fb/fbgc.c | 7 +- fb/fbimage.c | 7 +- fb/fboverlay.c | 5 +- fb/fbpict.c | 2 + fb/fbpixmap.c | 5 +- fb/fbpseudocolor.c | 2 + fb/fbseg.c | 2 + fb/fbwindow.c | 7 +- hw/xfree86/common/compiler.h | 4 - hw/xfree86/common/xf86.h | 4 - hw/xfree86/ddc/ddcProperty.c | 2 +- hw/xfree86/ddc/edid.c | 2 +- hw/xfree86/ddc/interpret_edid.c | 2 +- hw/xfree86/ddc/print_edid.c | 1 - hw/xfree86/ddc/xf86DDC.c | 2 +- hw/xfree86/dixmods/extmod/modinit.c | 1 - hw/xfree86/dixmods/extmod/xf86dga2.c | 4 - hw/xfree86/dixmods/extmod/xf86misc.c | 4 - hw/xfree86/dixmods/extmod/xf86vmode.c | 6 +- hw/xfree86/dri/dri.c | 4 - hw/xfree86/dri/xf86dri.c | 5 +- hw/xfree86/exa/exa_migration.c | 3 + hw/xfree86/exa/exa_offscreen.c | 6 +- hw/xfree86/fbdevhw/fbdevhw.c | 1 - hw/xfree86/i2c/bt829.c | 4 + hw/xfree86/i2c/fi1236.c | 7 +- hw/xfree86/i2c/msp3430.c | 3 + hw/xfree86/i2c/xf86i2c.c | 25 +-- hw/xfree86/int10/generic.c | 4 +- hw/xfree86/int10/helper_exec.c | 17 +- hw/xfree86/int10/helper_mem.c | 4 +- hw/xfree86/int10/pci.c | 3 +- hw/xfree86/int10/x86emu.c | 4 - hw/xfree86/int10/xf86int10.c | 1 - hw/xfree86/int10/xf86x86emu.c | 2 - hw/xfree86/os-support/bsd/bsd_jstk.c | 1 - hw/xfree86/os-support/bsd/bsd_kmod.c | 1 - hw/xfree86/os-support/drm/xf86drm.c | 44 ++-- hw/xfree86/os-support/drm/xf86drmHash.c | 11 +- hw/xfree86/os-support/drm/xf86drmRandom.c | 11 +- hw/xfree86/os-support/drm/xf86drmSL.c | 1 - hw/xfree86/os-support/linux/int10/linux.c | 1 - .../os-support/linux/int10/vm86/linux_vm86.c | 1 - hw/xfree86/os-support/linux/lnx_jstk.c | 1 - hw/xfree86/rac/xf86RAC.c | 1 - hw/xfree86/ramdac/BT.c | 1 - hw/xfree86/ramdac/IBM.c | 1 - hw/xfree86/ramdac/TI.c | 1 - hw/xfree86/ramdac/xf86Cursor.c | 1 - hw/xfree86/ramdac/xf86HWCurs.c | 3 +- hw/xfree86/ramdac/xf86RamDac.c | 1 - hw/xfree86/ramdac/xf86RamDacCmap.c | 1 - hw/xfree86/scanpci/xf86ScanPci.c | 4 - hw/xfree86/utils/xorgcfg/loader.h | 1 - hw/xfree86/vbe/vbe.c | 3 +- hw/xfree86/vbe/vbeModes.c | 4 +- hw/xfree86/vgahw/vgaCmap.c | 1 - hw/xfree86/vgahw/vgaHW.c | 5 +- hw/xfree86/x86emu/decode.c | 2 +- hw/xfree86/x86emu/prim_ops.c | 2 + hw/xfree86/xaa/xaaBitBlt.c | 1 - hw/xfree86/xaa/xaaBitmap.c | 2 - hw/xfree86/xaa/xaaCpyArea.c | 1 - hw/xfree86/xaa/xaaCpyPlane.c | 3 +- hw/xfree86/xaa/xaaCpyWin.c | 1 - hw/xfree86/xaa/xaaDashLine.c | 3 +- hw/xfree86/xaa/xaaFallback.c | 1 - hw/xfree86/xaa/xaaFillArc.c | 5 +- hw/xfree86/xaa/xaaFillPoly.c | 1 - hw/xfree86/xaa/xaaFillRect.c | 1 - hw/xfree86/xaa/xaaGC.c | 3 +- hw/xfree86/xaa/xaaGCmisc.c | 1 - hw/xfree86/xaa/xaaImage.c | 1 - hw/xfree86/xaa/xaaInit.c | 1 - hw/xfree86/xaa/xaaInitAccel.c | 3 +- hw/xfree86/xaa/xaaLine.c | 3 +- hw/xfree86/xaa/xaaLineMisc.c | 1 - hw/xfree86/xaa/xaaNonTEGlyph.c | 1 - hw/xfree86/xaa/xaaNonTEText.c | 3 +- hw/xfree86/xaa/xaaOffscreen.c | 1 - hw/xfree86/xaa/xaaOverlay.c | 3 +- hw/xfree86/xaa/xaaOverlayDF.c | 1 - hw/xfree86/xaa/xaaPCache.c | 3 +- hw/xfree86/xaa/xaaPaintWin.c | 3 +- hw/xfree86/xaa/xaaPict.c | 3 +- hw/xfree86/xaa/xaaROP.c | 1 - hw/xfree86/xaa/xaaRect.c | 1 - hw/xfree86/xaa/xaaSpans.c | 1 - hw/xfree86/xaa/xaaStateChange.c | 1 - hw/xfree86/xaa/xaaStipple.c | 1 - hw/xfree86/xaa/xaaTEGlyph.c | 2 - hw/xfree86/xaa/xaaTEText.c | 1 - hw/xfree86/xaa/xaaWideLine.c | 12 +- hw/xfree86/xf4bpp/OScompiler.h | 1 - hw/xfree86/xf4bpp/mfbline.c | 2 + hw/xfree86/xf4bpp/ppcClip.c | 2 + hw/xfree86/xf4bpp/ppcCpArea.c | 2 + hw/xfree86/xf4bpp/ppcGC.c | 2 + hw/xfree86/xf4bpp/ppcIO.c | 2 + hw/xfree86/xf4bpp/ppcImg.c | 2 + hw/xfree86/xf4bpp/ppcPixmap.c | 2 + hw/xfree86/xf4bpp/ppcSetSp.c | 2 + hw/xfree86/xf4bpp/ppcWindow.c | 2 + hw/xfree86/xf8_32bpp/cfbcpyarea.c | 2 + hw/xfree86/xf8_32bpp/cfbgcmisc.c | 2 + hw/xfree86/xf8_32bpp/cfbimage.c | 2 + hw/xfree86/xf8_32bpp/cfbwindow.c | 2 + hw/xfree86/xf8_32bpp/xf86overlay.c | 1 - include/os.h | 4 - mfb/mfb.h | 7 - mfb/mfbbitblt.c | 2 + mfb/mfbblt.c | 2 + mfb/mfbclip.c | 2 + mfb/mfbfillarc.c | 4 +- mfb/mfbgc.c | 2 + mfb/mfbimage.c | 2 + mfb/mfbline.c | 2 + mfb/mfbpixmap.c | 2 + mfb/mfbply1rct.c | 2 + mfb/mfbpushpxl.c | 2 + mfb/mfbscrinit.c | 2 + mfb/mfbwindow.c | 2 + mfb/mfbzerarc.c | 4 +- miext/cw/cw.c | 2 + miext/cw/cw_ops.c | 2 + miext/cw/cw_render.c | 2 + miext/damage/damage.c | 2 + miext/shadow/shadow.c | 2 + miext/shadow/shpacked.c | 2 + miext/shadow/shplanar.c | 2 + miext/shadow/shplanar8.c | 2 + miext/shadow/shrotpack.h | 2 + randr/randr.c | 3 - record/record.c | 6 +- record/set.c | 8 +- render/render.c | 5 +- 193 files changed, 508 insertions(+), 321 deletions(-) diff --git a/ChangeLog b/ChangeLog index fa2593728a..9a619ed280 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,198 @@ +2006-02-10 Eric Anholt + + * GL/glx/glxcmds.c: + * GL/glx/glximports.c: + * GL/glx/glxscreens.c: + * GL/glx/glxutil.c: + * GL/glx/indirect_util.c: + * GL/glx/single2.c: + * GL/include/GL/glx_ansic.h: + * GL/include/GL/xf86glx.h: + * GL/mesa/X/xf86glx_util.c: + * XTrap/xtrapddmi.c: + * XTrap/xtrapdi.c: + * XTrap/xtrapditbl.c: + * Xext/cup.c: + * Xext/mbuf.c: + * Xext/saver.c: + * Xext/shape.c: + * Xext/shm.c: + * Xext/sync.c: + * Xext/xtest.c: + * Xext/xvdisp.c: + * Xext/xvmain.c: + * Xext/xvmc.c: + * afb/afb.h: + * afb/afbbitblt.c: + * afb/afbblt.c: + * afb/afbclip.c: + * afb/afbgc.c: + * afb/afbimage.c: + * afb/afbpixmap.c: + * afb/afbply1rct.c: + * afb/afbpushpxl.c: + * afb/afbscrinit.c: + * afb/afbwindow.c: + * cfb/cfb.h: + * cfb/cfb8line.c: + * cfb/cfbbitblt.c: + * cfb/cfbblt.c: + * cfb/cfbcppl.c: + * cfb/cfbfillarc.c: + * cfb/cfbgc.c: + * cfb/cfbimage.c: + * cfb/cfbline.c: + * cfb/cfbmskbits.h: + * cfb/cfbpixmap.c: + * cfb/cfbply1rct.c: + * cfb/cfbwindow.c: + * cfb/cfbzerarc.c: + * configure.ac: + * dbe/dbe.c: + * dbe/midbe.c: + * fb/fb24_32.c: + * fb/fbarc.c: (fbPolyArc): + * fb/fbcompose.c: + * fb/fbcopy.c: + * fb/fbgc.c: + * fb/fbimage.c: + * fb/fboverlay.c: + * fb/fbpict.c: + * fb/fbpixmap.c: + * fb/fbpseudocolor.c: + * fb/fbseg.c: + * fb/fbwindow.c: + * hw/xfree86/common/compiler.h: + * hw/xfree86/common/xf86.h: + * hw/xfree86/ddc/ddcProperty.c: + * hw/xfree86/ddc/edid.c: + * hw/xfree86/ddc/interpret_edid.c: + * hw/xfree86/ddc/print_edid.c: + * hw/xfree86/ddc/xf86DDC.c: + * hw/xfree86/dixmods/extmod/modinit.c: + * hw/xfree86/dixmods/extmod/xf86dga2.c: + * hw/xfree86/dixmods/extmod/xf86misc.c: + * hw/xfree86/dixmods/extmod/xf86vmode.c: + * hw/xfree86/dri/dri.c: + * hw/xfree86/dri/xf86dri.c: + * hw/xfree86/exa/exa_migration.c: + * hw/xfree86/exa/exa_offscreen.c: (exaOffscreenAlloc): + * hw/xfree86/fbdevhw/fbdevhw.c: + * hw/xfree86/i2c/bt829.c: + * hw/xfree86/i2c/fi1236.c: + * hw/xfree86/i2c/msp3430.c: + * hw/xfree86/i2c/xf86i2c.c: (I2CUDelay): + * hw/xfree86/int10/generic.c: + * hw/xfree86/int10/helper_exec.c: (x_inw), (x_outb): + * hw/xfree86/int10/helper_mem.c: + * hw/xfree86/int10/pci.c: + * hw/xfree86/int10/x86emu.c: + * hw/xfree86/int10/xf86int10.c: + * hw/xfree86/int10/xf86x86emu.c: + * hw/xfree86/os-support/bsd/bsd_jstk.c: + * hw/xfree86/os-support/bsd/bsd_kmod.c: + * hw/xfree86/os-support/drm/xf86drm.c: + * hw/xfree86/os-support/drm/xf86drmHash.c: + * hw/xfree86/os-support/drm/xf86drmRandom.c: + * hw/xfree86/os-support/drm/xf86drmSL.c: + * hw/xfree86/os-support/linux/int10/linux.c: + * hw/xfree86/os-support/linux/int10/vm86/linux_vm86.c: + * hw/xfree86/os-support/linux/lnx_jstk.c: + * hw/xfree86/rac/xf86RAC.c: + * hw/xfree86/ramdac/BT.c: + * hw/xfree86/ramdac/IBM.c: + * hw/xfree86/ramdac/TI.c: + * hw/xfree86/ramdac/xf86Cursor.c: + * hw/xfree86/ramdac/xf86HWCurs.c: + * hw/xfree86/ramdac/xf86RamDac.c: + * hw/xfree86/ramdac/xf86RamDacCmap.c: + * hw/xfree86/scanpci/xf86ScanPci.c: + * hw/xfree86/utils/xorgcfg/loader.h: + * hw/xfree86/vbe/vbe.c: + * hw/xfree86/vbe/vbeModes.c: + * hw/xfree86/vgahw/vgaCmap.c: + * hw/xfree86/vgahw/vgaHW.c: + * hw/xfree86/x86emu/decode.c: + * hw/xfree86/x86emu/prim_ops.c: + * hw/xfree86/xaa/xaaBitBlt.c: + * hw/xfree86/xaa/xaaBitmap.c: + * hw/xfree86/xaa/xaaCpyArea.c: + * hw/xfree86/xaa/xaaCpyPlane.c: + * hw/xfree86/xaa/xaaCpyWin.c: + * hw/xfree86/xaa/xaaDashLine.c: + * hw/xfree86/xaa/xaaFallback.c: + * hw/xfree86/xaa/xaaFillArc.c: + * hw/xfree86/xaa/xaaFillPoly.c: + * hw/xfree86/xaa/xaaFillRect.c: + * hw/xfree86/xaa/xaaGC.c: + * hw/xfree86/xaa/xaaGCmisc.c: + * hw/xfree86/xaa/xaaImage.c: + * hw/xfree86/xaa/xaaInit.c: + * hw/xfree86/xaa/xaaInitAccel.c: + * hw/xfree86/xaa/xaaLine.c: + * hw/xfree86/xaa/xaaLineMisc.c: + * hw/xfree86/xaa/xaaNonTEGlyph.c: + * hw/xfree86/xaa/xaaNonTEText.c: + * hw/xfree86/xaa/xaaOffscreen.c: + * hw/xfree86/xaa/xaaOverlay.c: + * hw/xfree86/xaa/xaaOverlayDF.c: + * hw/xfree86/xaa/xaaPCache.c: + * hw/xfree86/xaa/xaaPaintWin.c: + * hw/xfree86/xaa/xaaPict.c: + * hw/xfree86/xaa/xaaROP.c: + * hw/xfree86/xaa/xaaRect.c: + * hw/xfree86/xaa/xaaSpans.c: + * hw/xfree86/xaa/xaaStateChange.c: + * hw/xfree86/xaa/xaaStipple.c: + * hw/xfree86/xaa/xaaTEGlyph.c: + * hw/xfree86/xaa/xaaTEText.c: + * hw/xfree86/xaa/xaaWideLine.c: + * hw/xfree86/xf4bpp/OScompiler.h: + * hw/xfree86/xf4bpp/mfbline.c: + * hw/xfree86/xf4bpp/ppcClip.c: + * hw/xfree86/xf4bpp/ppcCpArea.c: + * hw/xfree86/xf4bpp/ppcGC.c: + * hw/xfree86/xf4bpp/ppcIO.c: + * hw/xfree86/xf4bpp/ppcImg.c: + * hw/xfree86/xf4bpp/ppcPixmap.c: + * hw/xfree86/xf4bpp/ppcSetSp.c: + * hw/xfree86/xf4bpp/ppcWindow.c: + * hw/xfree86/xf8_32bpp/cfbcpyarea.c: + * hw/xfree86/xf8_32bpp/cfbgcmisc.c: + * hw/xfree86/xf8_32bpp/cfbimage.c: + * hw/xfree86/xf8_32bpp/cfbwindow.c: + * hw/xfree86/xf8_32bpp/xf86overlay.c: + * include/os.h: + * mfb/mfb.h: + * mfb/mfbbitblt.c: + * mfb/mfbblt.c: + * mfb/mfbclip.c: + * mfb/mfbfillarc.c: + * mfb/mfbgc.c: + * mfb/mfbimage.c: + * mfb/mfbline.c: + * mfb/mfbpixmap.c: + * mfb/mfbply1rct.c: + * mfb/mfbpushpxl.c: + * mfb/mfbscrinit.c: + * mfb/mfbwindow.c: + * mfb/mfbzerarc.c: + * miext/cw/cw.c: + * miext/cw/cw_ops.c: + * miext/cw/cw_render.c: + * miext/damage/damage.c: + * miext/shadow/shadow.c: + * miext/shadow/shpacked.c: + * miext/shadow/shplanar.c: + * miext/shadow/shplanar8.c: + * miext/shadow/shrotpack.h: + * randr/randr.c: + * record/record.c: + * record/set.c: + * render/render.c: + Remove libcwrapper usage from xorg server modules. The libcwrapper is + only of (marginal) use in the drivers, and that usage remains. + 2006-02-09 Eric Anholt * configure.ac: diff --git a/GL/glx/glxcmds.c b/GL/glx/glxcmds.c index f889d4286b..c63b17008e 100644 --- a/GL/glx/glxcmds.c +++ b/GL/glx/glxcmds.c @@ -40,6 +40,8 @@ #include #endif +#include + #include "glxserver.h" #include #include diff --git a/GL/glx/glximports.c b/GL/glx/glximports.c index fae2346b96..a443495c4c 100644 --- a/GL/glx/glximports.c +++ b/GL/glx/glximports.c @@ -38,6 +38,10 @@ #include #endif +#include +#include +#include + #include "glxserver.h" #include "glxcontext.h" #include "glximports.h" diff --git a/GL/glx/glxscreens.c b/GL/glx/glxscreens.c index 58b38b1a2c..ffe1935e39 100644 --- a/GL/glx/glxscreens.c +++ b/GL/glx/glxscreens.c @@ -38,9 +38,7 @@ #include #endif -#ifdef IN_MODULE -#include -#else +#ifndef IN_MODULE #include #include #endif diff --git a/GL/glx/glxutil.c b/GL/glx/glxutil.c index 03bc19f63e..25586433f6 100644 --- a/GL/glx/glxutil.c +++ b/GL/glx/glxutil.c @@ -40,6 +40,8 @@ #include #endif +#include + #include "glxserver.h" #include #include diff --git a/GL/glx/indirect_util.c b/GL/glx/indirect_util.c index bf0ba66f20..706d43864c 100644 --- a/GL/glx/indirect_util.c +++ b/GL/glx/indirect_util.c @@ -23,6 +23,8 @@ * SOFTWARE. */ +#include + #include #include #include diff --git a/GL/glx/single2.c b/GL/glx/single2.c index fc6cdf160b..c44336af43 100644 --- a/GL/glx/single2.c +++ b/GL/glx/single2.c @@ -39,6 +39,10 @@ #include #endif +#include +#include +#include + #include "glxserver.h" #include "glxutil.h" #include "glxext.h" diff --git a/GL/include/GL/glx_ansic.h b/GL/include/GL/glx_ansic.h index c94393fd13..9085a08fe8 100644 --- a/GL/include/GL/glx_ansic.h +++ b/GL/include/GL/glx_ansic.h @@ -56,9 +56,6 @@ #ifdef XFree86Server -#ifdef XFree86LOADER -#include "xf86_ansic.h" -#endif #ifndef assert #define assert(a) #endif diff --git a/GL/include/GL/xf86glx.h b/GL/include/GL/xf86glx.h index 66f096a981..5d018d72b0 100644 --- a/GL/include/GL/xf86glx.h +++ b/GL/include/GL/xf86glx.h @@ -37,7 +37,3 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #endif #include "miscstruct.h" - -#ifdef XFree86LOADER -#include "xf86_ansic.h" -#endif diff --git a/GL/mesa/X/xf86glx_util.c b/GL/mesa/X/xf86glx_util.c index 6441a4b4fa..d8afcbcb55 100644 --- a/GL/mesa/X/xf86glx_util.c +++ b/GL/mesa/X/xf86glx_util.c @@ -36,6 +36,8 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include #endif +#include + #include #include "pixmapstr.h" #include "xf86glx_util.h" diff --git a/XTrap/xtrapddmi.c b/XTrap/xtrapddmi.c index 2dba356b7c..afaf105f24 100644 --- a/XTrap/xtrapddmi.c +++ b/XTrap/xtrapddmi.c @@ -50,8 +50,6 @@ SOFTWARE. # include "io.h" # define O_NDELAY 0L #endif -#else -#include "xf86_ansic.h" #endif #define NEED_REPLIES diff --git a/XTrap/xtrapdi.c b/XTrap/xtrapdi.c index f08c6155ad..8b045cd19f 100644 --- a/XTrap/xtrapdi.c +++ b/XTrap/xtrapdi.c @@ -1,4 +1,4 @@ -/* $XdotOrg: xc/programs/Xserver/XTrap/xtrapdi.c,v 1.2 2004/04/23 18:44:40 eich Exp $ */ +/* $XdotOrg: xserver/xorg/XTrap/xtrapdi.c,v 1.5 2005/07/03 08:53:36 daniels Exp $ */ /* $XFree86: xc/programs/Xserver/XTrap/xtrapdi.c,v 1.6tsi Exp $ */ /***************************************************************************** Copyright 1987, 1988, 1989, 1990, 1991 by Digital Equipment Corp., Maynard, MA @@ -59,8 +59,6 @@ CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include #include #include -#else -#include "xf86_ansic.h" #endif #include #include diff --git a/XTrap/xtrapditbl.c b/XTrap/xtrapditbl.c index a9ceddb3d1..27cfc362b8 100644 --- a/XTrap/xtrapditbl.c +++ b/XTrap/xtrapditbl.c @@ -39,6 +39,8 @@ SOFTWARE. #include #endif +#include + #include #define NEED_REPLIES #define NEED_EVENTS diff --git a/Xext/cup.c b/Xext/cup.c index 4db62cf158..879130ece6 100644 --- a/Xext/cup.c +++ b/Xext/cup.c @@ -45,11 +45,7 @@ in this Software without prior written authorization from The Open Group. #include #include -#ifndef EXTMODULE #include "../os/osdep.h" -#else -#include "xf86_ansic.h" -#endif #include "modinit.h" diff --git a/Xext/mbuf.c b/Xext/mbuf.c index 3129edd87f..9933fe0fdf 100644 --- a/Xext/mbuf.c +++ b/Xext/mbuf.c @@ -48,14 +48,10 @@ in this Software without prior written authorization from The Open Group. #define _MULTIBUF_SERVER_ /* don't want Xlib structures */ #include -#ifdef EXTMODULE -#include "xf86_ansic.h" -#else #include #if !defined(WIN32) && !defined(Lynx) #include #endif -#endif /* given an OtherClientPtr obj, get the ClientPtr */ #define rClient(obj) (clients[CLIENT_ID((obj)->resource)]) diff --git a/Xext/saver.c b/Xext/saver.c index 7f9a84faa7..dff1f14fe5 100644 --- a/Xext/saver.c +++ b/Xext/saver.c @@ -1,4 +1,4 @@ -/* $XdotOrg: xc/programs/Xserver/Xext/saver.c,v 1.7 2005/04/20 12:25:12 daniels Exp $ */ +/* $XdotOrg: xserver/xorg/Xext/saver.c,v 1.10 2005/07/03 08:53:36 daniels Exp $ */ /* * $XConsortium: saver.c,v 1.12 94/04/17 20:59:36 dpw Exp $ * @@ -57,11 +57,7 @@ in this Software without prior written authorization from the X Consortium. #endif -#ifdef IN_MODULE -#include -#else #include -#endif #include "modinit.h" diff --git a/Xext/shape.c b/Xext/shape.c index e797878ab3..c5bb4e38c3 100644 --- a/Xext/shape.c +++ b/Xext/shape.c @@ -1,4 +1,4 @@ -/* $XdotOrg: xc/programs/Xserver/Xext/shape.c,v 1.6 2005/06/10 04:01:14 ajax Exp $ */ +/* $XdotOrg: xserver/xorg/Xext/shape.c,v 1.9 2005/07/03 08:53:36 daniels Exp $ */ /* $XFree86: xc/programs/Xserver/Xext/shape.c,v 3.18 2003/10/28 23:08:43 tsi Exp $ */ /************************************************************ @@ -33,6 +33,8 @@ in this Software without prior written authorization from The Open Group. #include #endif +#include + #include #include #include "misc.h" @@ -48,9 +50,6 @@ in this Software without prior written authorization from The Open Group. #include #include "regionstr.h" #include "gcstruct.h" -#ifdef EXTMODULE -#include "xf86_ansic.h" -#endif #include "modinit.h" typedef RegionPtr (*CreateDftPtr)( diff --git a/Xext/shm.c b/Xext/shm.c index 806008c601..3a8f067fcc 100644 --- a/Xext/shm.c +++ b/Xext/shm.c @@ -62,9 +62,6 @@ in this Software without prior written authorization from The Open Group. #define _XSHM_SERVER_ #include #include -#ifdef EXTMODULE -#include "xf86_ansic.h" -#endif #ifdef PANORAMIX #include "panoramiX.h" diff --git a/Xext/sync.c b/Xext/sync.c index 0e0df83053..c43c4af58e 100644 --- a/Xext/sync.c +++ b/Xext/sync.c @@ -58,6 +58,8 @@ PERFORMANCE OF THIS SOFTWARE. #include #endif +#include + #include #include #include @@ -71,14 +73,10 @@ PERFORMANCE OF THIS SOFTWARE. #include #include -#ifdef EXTMODULE -#include "xf86_ansic.h" -#else #include #if !defined(WIN32) && !defined(Lynx) #include #endif -#endif #include "modinit.h" diff --git a/Xext/xtest.c b/Xext/xtest.c index 4134371926..6737185aa9 100644 --- a/Xext/xtest.c +++ b/Xext/xtest.c @@ -1,4 +1,4 @@ -/* $XdotOrg: xc/programs/Xserver/Xext/xtest.c,v 1.3 2005/04/20 12:25:12 daniels Exp $ */ +/* $XdotOrg: xserver/xorg/Xext/xtest.c,v 1.6 2005/07/03 08:53:36 daniels Exp $ */ /* $Xorg: xtest.c,v 1.4 2001/02/09 02:04:33 xorgcvs Exp $ */ /* @@ -54,9 +54,6 @@ from The Open Group. #define EXTENSION_EVENT_BASE 64 #include "extinit.h" /* LookupDeviceIntRec */ #endif /* XINPUT */ -#ifdef EXTMODULE -#include "xf86_ansic.h" -#endif #include "modinit.h" diff --git a/Xext/xvdisp.c b/Xext/xvdisp.c index 98e854fed7..7c490abca8 100644 --- a/Xext/xvdisp.c +++ b/Xext/xvdisp.c @@ -1,4 +1,4 @@ -/* $XdotOrg: xc/programs/Xserver/Xext/xvdisp.c,v 1.3 2005/04/20 12:25:12 daniels Exp $ */ +/* $XdotOrg: xserver/xorg/Xext/xvdisp.c,v 1.6 2005/07/03 08:53:36 daniels Exp $ */ /*********************************************************** Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts, and the Massachusetts Institute of Technology, Cambridge, Massachusetts. @@ -52,6 +52,8 @@ SOFTWARE. #include #endif +#include + #include #include #include "misc.h" @@ -71,10 +73,6 @@ SOFTWARE. #include #endif -#ifdef EXTMODULE -#include "xf86_ansic.h" -#endif - #include "xvdisp.h" #ifdef PANORAMIX diff --git a/Xext/xvmain.c b/Xext/xvmain.c index 3a4e821798..0339c8417f 100644 --- a/Xext/xvmain.c +++ b/Xext/xvmain.c @@ -1,4 +1,4 @@ -/* $XdotOrg: xc/programs/Xserver/Xext/xvmain.c,v 1.3 2005/04/20 12:25:12 daniels Exp $ */ +/* $XdotOrg: xserver/xorg/Xext/xvmain.c,v 1.6 2005/07/03 08:53:36 daniels Exp $ */ /*********************************************************** Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts, and the Massachusetts Institute of Technology, Cambridge, Massachusetts. @@ -79,6 +79,8 @@ SOFTWARE. #include #endif +#include + #include #include #include "misc.h" @@ -99,10 +101,6 @@ SOFTWARE. #include #include "xvdix.h" -#ifdef EXTMODULE -#include "xf86_ansic.h" -#endif - #ifdef PANORAMIX #include "panoramiX.h" #include "panoramiXsrv.h" diff --git a/Xext/xvmc.c b/Xext/xvmc.c index 37fb153abd..a814f003e3 100644 --- a/Xext/xvmc.c +++ b/Xext/xvmc.c @@ -6,6 +6,8 @@ #include #endif +#include + #include #include #include "misc.h" diff --git a/afb/afb.h b/afb/afb.h index 708fe7643e..e89d3a088d 100644 --- a/afb/afb.h +++ b/afb/afb.h @@ -1125,8 +1125,3 @@ typedef struct _afbpos{ #define MFB_EQWHOLEWORD_INVERT ^=~0 #define MFB_OP_WHITE /* nothing */ #define MFB_OP_BLACK ~ - -#ifdef XFree86LOADER -#include "xf86_ansic.h" -#endif - diff --git a/afb/afbbitblt.c b/afb/afbbitblt.c index 0c1c6bb9f0..93d4a2bf02 100644 --- a/afb/afbbitblt.c +++ b/afb/afbbitblt.c @@ -53,6 +53,8 @@ SOFTWARE. #include #endif +#include + #include #include diff --git a/afb/afbblt.c b/afb/afbblt.c index 6cbb0a8780..9eb0227f2f 100644 --- a/afb/afbblt.c +++ b/afb/afbblt.c @@ -37,6 +37,8 @@ Author: Keith Packard #include #endif +#include + #include #include #include diff --git a/afb/afbclip.c b/afb/afbclip.c index ea7413233a..89314f1344 100644 --- a/afb/afbclip.c +++ b/afb/afbclip.c @@ -52,6 +52,8 @@ SOFTWARE. #include #endif +#include + #include #include "regionstr.h" #include "pixmapstr.h" diff --git a/afb/afbgc.c b/afb/afbgc.c index e9f4c52b7c..14c95c754c 100644 --- a/afb/afbgc.c +++ b/afb/afbgc.c @@ -52,6 +52,8 @@ SOFTWARE. #include #endif +#include + #include #include #include diff --git a/afb/afbimage.c b/afb/afbimage.c index 353fd6f894..a0b4270e80 100644 --- a/afb/afbimage.c +++ b/afb/afbimage.c @@ -4,6 +4,8 @@ #include #endif +#include + #include #include "windowstr.h" #include "pixmapstr.h" diff --git a/afb/afbpixmap.c b/afb/afbpixmap.c index c6ae8481c7..72482ff7f5 100644 --- a/afb/afbpixmap.c +++ b/afb/afbpixmap.c @@ -58,6 +58,8 @@ SOFTWARE. #include #endif +#include + #include #include "scrnintstr.h" #include "pixmapstr.h" diff --git a/afb/afbply1rct.c b/afb/afbply1rct.c index 90e55cf8e8..b7a16e0860 100644 --- a/afb/afbply1rct.c +++ b/afb/afbply1rct.c @@ -32,6 +32,8 @@ in this Software without prior written authorization from the X Consortium. #include #endif +#include + #include #include "gcstruct.h" diff --git a/afb/afbpushpxl.c b/afb/afbpushpxl.c index e621811883..0e428568ba 100644 --- a/afb/afbpushpxl.c +++ b/afb/afbpushpxl.c @@ -52,6 +52,8 @@ SOFTWARE. #include #endif +#include + #include #include "gcstruct.h" #include "scrnintstr.h" diff --git a/afb/afbscrinit.c b/afb/afbscrinit.c index 2e10ad8858..7b4c70311e 100644 --- a/afb/afbscrinit.c +++ b/afb/afbscrinit.c @@ -52,6 +52,8 @@ SOFTWARE. #include #endif +#include + #include #include /* for xColorItem */ #include diff --git a/afb/afbwindow.c b/afb/afbwindow.c index 443dd5aedf..90a4f7dfe7 100644 --- a/afb/afbwindow.c +++ b/afb/afbwindow.c @@ -53,6 +53,8 @@ SOFTWARE. #include #endif +#include + #include #include "scrnintstr.h" #include "windowstr.h" diff --git a/cfb/cfb.h b/cfb/cfb.h index 960f6756b3..14d6617a9a 100644 --- a/cfb/cfb.h +++ b/cfb/cfb.h @@ -1316,12 +1316,6 @@ extern int cfbScreenPrivateIndex; #include "micoord.h" -/* - * if CFB is built as a module, it shouldn't call libc functions. - */ -#ifdef XFree86LOADER -#include "xf86_ansic.h" -#endif #endif /* !CFB_PROTOTYPES_ONLY */ #endif diff --git a/cfb/cfb8line.c b/cfb/cfb8line.c index 0f27f1d47a..9740c2139e 100644 --- a/cfb/cfb8line.c +++ b/cfb/cfb8line.c @@ -33,6 +33,7 @@ in this Software without prior written authorization from The Open Group. #include #endif +#include #include #include "gcstruct.h" diff --git a/cfb/cfbbitblt.c b/cfb/cfbbitblt.c index a9dd438fe2..2e621337a0 100644 --- a/cfb/cfbbitblt.c +++ b/cfb/cfbbitblt.c @@ -37,6 +37,8 @@ Author: Keith Packard #include #endif +#include + #include #include #include diff --git a/cfb/cfbblt.c b/cfb/cfbblt.c index 7a0b192cc7..db32c87e57 100644 --- a/cfb/cfbblt.c +++ b/cfb/cfbblt.c @@ -38,6 +38,8 @@ Author: Keith Packard #include #endif +#include + #include #include #include diff --git a/cfb/cfbcppl.c b/cfb/cfbcppl.c index 037a516f22..f586820563 100644 --- a/cfb/cfbcppl.c +++ b/cfb/cfbcppl.c @@ -31,6 +31,7 @@ in this Software without prior written authorization from The Open Group. #include #endif +#include #include #include #include "gcstruct.h" diff --git a/cfb/cfbfillarc.c b/cfb/cfbfillarc.c index 6fb6bb7283..797e9ea78f 100644 --- a/cfb/cfbfillarc.c +++ b/cfb/cfbfillarc.c @@ -31,6 +31,8 @@ in this Software without prior written authorization from The Open Group. #include #endif +#include + #include #include #include "regionstr.h" @@ -358,7 +360,7 @@ RROP_NAME(cfbPolyFillArcSolid) (pDraw, pGC, narcs, parcs) box.x2 = x2; y2 = box.y1 + (int)arc->height + 1; box.y2 = y2; - if ( (x2 <= MAXSHORT) && (y2 <= MAXSHORT) && + if ( (x2 <= SHRT_MAX) && (y2 <= SHRT_MAX) && (RECT_IN_REGION(pDraw->pScreen, cclip, &box) == rgnIN) ) { if ((arc->angle2 >= FULLCIRCLE) || diff --git a/cfb/cfbgc.c b/cfb/cfbgc.c index 9cf53d35bb..248b2042a2 100644 --- a/cfb/cfbgc.c +++ b/cfb/cfbgc.c @@ -52,6 +52,8 @@ SOFTWARE. #include #endif +#include + #include #include #include diff --git a/cfb/cfbimage.c b/cfb/cfbimage.c index ce3909e637..f8c2989221 100644 --- a/cfb/cfbimage.c +++ b/cfb/cfbimage.c @@ -51,6 +51,8 @@ SOFTWARE. #include #endif +#include + #include #include "windowstr.h" #include "pixmapstr.h" diff --git a/cfb/cfbline.c b/cfb/cfbline.c index 392fe483e4..c70c48a513 100644 --- a/cfb/cfbline.c +++ b/cfb/cfbline.c @@ -50,6 +50,7 @@ SOFTWARE. #include #endif +#include #include #include "gcstruct.h" diff --git a/cfb/cfbmskbits.h b/cfb/cfbmskbits.h index a803cac727..f9ce33a617 100644 --- a/cfb/cfbmskbits.h +++ b/cfb/cfbmskbits.h @@ -36,7 +36,6 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE. #include "servermd.h" #if defined(XFREE86) || ( defined(__OpenBSD__) && defined(__alpha__) ) \ || (defined(__bsdi__)) -#include "xf86_ansic.h" #include "compiler.h" #endif diff --git a/cfb/cfbpixmap.c b/cfb/cfbpixmap.c index 704ab4edad..e73cf57351 100644 --- a/cfb/cfbpixmap.c +++ b/cfb/cfbpixmap.c @@ -52,6 +52,8 @@ SOFTWARE. on a monchrome device, a pixmap is a bitmap. */ +#include + #ifdef HAVE_DIX_CONFIG_H #include #endif diff --git a/cfb/cfbply1rct.c b/cfb/cfbply1rct.c index 99a2379c92..b431f33e1d 100644 --- a/cfb/cfbply1rct.c +++ b/cfb/cfbply1rct.c @@ -31,6 +31,8 @@ in this Software without prior written authorization from The Open Group. #include #endif +#include + #include #include "gcstruct.h" diff --git a/cfb/cfbwindow.c b/cfb/cfbwindow.c index 7160f54369..ebc1c45938 100644 --- a/cfb/cfbwindow.c +++ b/cfb/cfbwindow.c @@ -51,6 +51,8 @@ SOFTWARE. #include #endif +#include + #include #include "scrnintstr.h" #include "windowstr.h" diff --git a/cfb/cfbzerarc.c b/cfb/cfbzerarc.c index a9e0b2f9d6..0d88bfd5a3 100644 --- a/cfb/cfbzerarc.c +++ b/cfb/cfbzerarc.c @@ -37,6 +37,8 @@ in this Software without prior written authorization from The Open Group. #include #endif +#include + #include #include #include "regionstr.h" @@ -308,7 +310,7 @@ RROP_NAME (cfbZeroPolyArcSS8) (pDraw, pGC, narcs, parcs) box.x2 = x2; y2 = box.y1 + (int)arc->height + 1; box.y2 = y2; - if ( (x2 <= MAXSHORT) && (y2 <= MAXSHORT) && + if ( (x2 <= SHRT_MAX) && (y2 <= SHRT_MAX) && (RECT_IN_REGION(pDraw->pScreen, cclip, &box) == rgnIN) ) RROP_NAME (cfbZeroArcSS8) (pDraw, pGC, arc); else diff --git a/configure.ac b/configure.ac index 81038a5835..c24deb3d76 100644 --- a/configure.ac +++ b/configure.ac @@ -833,7 +833,7 @@ if test "x$DMX" = xyes; then modules not found.]) fi DMX_INCLUDES="$XEXT_INC $RENDER_INC $XTRAP_INC $RECORD_INC" - XDMX_LIBS="$FB_LIB $MI_LIB $XEXT_LIB $RENDER_LIB $XTRAP_LIB $RECORD_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $MIEXT_DAMAGE_LIB $LBX_LIB $MIEXT_SHADOW_LIB $CWRAP_LIB $OS_LIB" + XDMX_LIBS="$FB_LIB $MI_LIB $XEXT_LIB $RENDER_LIB $XTRAP_LIB $RECORD_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $MIEXT_DAMAGE_LIB $LBX_LIB $MIEXT_SHADOW_LIB $OS_LIB $CWRAP_LIB" AC_SUBST([XDMX_LIBS]) dnl USB sources in DMX require diff --git a/dbe/dbe.c b/dbe/dbe.c index 992a7ab590..50a3181913 100644 --- a/dbe/dbe.c +++ b/dbe/dbe.c @@ -1,4 +1,4 @@ -/* $XdotOrg: xc/programs/Xserver/dbe/dbe.c,v 1.3 2005/04/20 12:25:19 daniels Exp $ */ +/* $XdotOrg: xserver/xorg/dbe/dbe.c,v 1.5 2005/07/03 07:01:17 daniels Exp $ */ /* $Xorg: dbe.c,v 1.3 2000/08/17 19:48:16 cpqbld Exp $ */ /****************************************************************************** * @@ -41,6 +41,8 @@ #include #endif +#include + #include #include #include "scrnintstr.h" @@ -51,10 +53,6 @@ #include "dbestruct.h" #include "midbe.h" -#ifdef XFree86LOADER -#include "xf86_ansic.h" -#endif - /* GLOBALS */ /* Per-screen initialization functions [init'ed by DbeRegisterFunction()] */ diff --git a/dbe/midbe.c b/dbe/midbe.c index 235693bb26..ef51409636 100644 --- a/dbe/midbe.c +++ b/dbe/midbe.c @@ -58,11 +58,7 @@ #include "gcstruct.h" #include "inputstr.h" -#ifndef IN_MODULE #include -#else -#include "xf86_ansic.h" -#endif /* DEFINES */ diff --git a/exa/exa_migration.c b/exa/exa_migration.c index 2acda24daa..270ad75417 100644 --- a/exa/exa_migration.c +++ b/exa/exa_migration.c @@ -25,6 +25,9 @@ #ifdef HAVE_CONFIG_H #include #endif + +#include + #include "exa_priv.h" #include #include "dixfontstr.h" diff --git a/exa/exa_offscreen.c b/exa/exa_offscreen.c index b0b19f501c..c3a2af6422 100644 --- a/exa/exa_offscreen.c +++ b/exa/exa_offscreen.c @@ -22,6 +22,10 @@ #include "exa_priv.h" +#include +#include +#include + #if DEBUG_OFFSCREEN #define DBG_OFFSCREEN(a) ErrorF a #else @@ -120,7 +124,7 @@ exaOffscreenAlloc (ScreenPtr pScreen, int size, int align, /* prev points at the first object to boot */ best = NULL; - best_score = MAXINT; + best_score = INT_MAX; for (begin = pExaScr->info->card.offScreenAreas; begin != NULL; begin = begin->next) { diff --git a/fb/fb24_32.c b/fb/fb24_32.c index 214e2e6dd2..d18ef70ceb 100644 --- a/fb/fb24_32.c +++ b/fb/fb24_32.c @@ -27,9 +27,9 @@ #include #endif +#include #ifdef XFree86LOADER #include "xf86.h" -#include "xf86_ansic.h" #endif #include "fb.h" diff --git a/fb/fbarc.c b/fb/fbarc.c index 315aa181c7..98cf8796cf 100644 --- a/fb/fbarc.c +++ b/fb/fbarc.c @@ -29,9 +29,7 @@ #include "fb.h" #include "mizerarc.h" -#ifdef IN_MODULE -#include "xf86_ansic.h" -#endif +#include typedef void (*FbArc) (FbBits *dst, FbStride dstStride, @@ -100,7 +98,7 @@ fbPolyArc (DrawablePtr pDrawable, box.x2 = x2; y2 = box.y1 + (int)parcs->height + 1; box.y2 = y2; - if ( (x2 <= MAXSHORT) && (y2 <= MAXSHORT) && + if ( (x2 <= SHRT_MAX) && (y2 <= SHRT_MAX) && (RECT_IN_REGION(pDrawable->pScreen, cclip, &box) == rgnIN) ) (*arc) (dst, dstStride, dstBpp, parcs, pDrawable->x + dstXoff, pDrawable->y + dstYoff, diff --git a/fb/fbcompose.c b/fb/fbcompose.c index 9c2ec48879..f8e0139f00 100644 --- a/fb/fbcompose.c +++ b/fb/fbcompose.c @@ -1,5 +1,5 @@ /* - * $XdotOrg: xc/programs/Xserver/fb/fbcompose.c,v 1.23 2005/10/03 11:43:55 anholt Exp $ + * $XdotOrg: xserver/xorg/fb/fbcompose.c,v 1.26 2005/12/09 18:35:20 ajax Exp $ * $XFree86: xc/programs/Xserver/fb/fbcompose.c,v 1.17tsi Exp $ * * Copyright © 2000 Keith Packard, member of The XFree86 Project, Inc. @@ -33,10 +33,14 @@ #ifdef RENDER +#include +#include +#include +#include + #include "picturestr.h" #include "mipict.h" #include "fbpict.h" -#include #define mod(a,b) ((b) == 1 ? 0 : (a) >= 0 ? (a) % (b) : (b) - (-a) % (b)) diff --git a/fb/fbcopy.c b/fb/fbcopy.c index 1e7b93435c..73224da8f4 100644 --- a/fb/fbcopy.c +++ b/fb/fbcopy.c @@ -27,10 +27,9 @@ #include #endif +#include + #include "fb.h" -#ifdef IN_MODULE -#include "xf86_ansic.h" -#endif #include "fbmmx.h" void diff --git a/fb/fbgc.c b/fb/fbgc.c index 5a0d0bcb31..7df0262883 100644 --- a/fb/fbgc.c +++ b/fb/fbgc.c @@ -21,17 +21,16 @@ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR * PERFORMANCE OF THIS SOFTWARE. */ -/* $XdotOrg: xserver/xorg/fb/fbgc.c,v 1.5 2005/07/03 07:01:23 daniels Exp $ */ +/* $XdotOrg: xserver/xorg/fb/fbgc.c,v 1.6 2006/01/18 06:49:17 airlied Exp $ */ /* $XFree86: xc/programs/Xserver/fb/fbgc.c,v 1.14 2003/12/18 15:22:32 alanh Exp $ */ #ifdef HAVE_DIX_CONFIG_H #include #endif +#include + #include "fb.h" -#ifdef IN_MODULE -#include "xf86_ansic.h" -#endif const GCFuncs fbGCFuncs = { fbValidateGC, diff --git a/fb/fbimage.c b/fb/fbimage.c index 96bd8cf950..174c78bd00 100644 --- a/fb/fbimage.c +++ b/fb/fbimage.c @@ -27,12 +27,9 @@ #include #endif -#include "fb.h" -#ifdef XFree86LOADER -#include "xf86.h" -#include "xf86_ansic.h" -#endif +#include +#include "fb.h" void fbPutImage (DrawablePtr pDrawable, diff --git a/fb/fboverlay.c b/fb/fboverlay.c index e777d8e068..e9fb9b24f7 100644 --- a/fb/fboverlay.c +++ b/fb/fboverlay.c @@ -23,14 +23,17 @@ * Author: Keith Packard, SuSE, Inc. */ -/* $XdotOrg: xc/programs/Xserver/fb/fboverlay.c,v 1.5 2004/12/04 00:42:50 kuhn Exp $ */ +/* $XdotOrg: xserver/xorg/fb/fboverlay.c,v 1.7 2005/07/03 07:01:23 daniels Exp $ */ #ifdef HAVE_DIX_CONFIG_H #include #endif +#include + #include "fb.h" #include "fboverlay.h" +#include "shmint.h" int fbOverlayGeneration; int fbOverlayScreenPrivateIndex = -1; diff --git a/fb/fbpict.c b/fb/fbpict.c index 5ab3756b9f..591ddffe3c 100644 --- a/fb/fbpict.c +++ b/fb/fbpict.c @@ -27,6 +27,8 @@ #include #endif +#include + #include "fb.h" #ifdef RENDER diff --git a/fb/fbpixmap.c b/fb/fbpixmap.c index decc07ba66..1e12d88189 100644 --- a/fb/fbpixmap.c +++ b/fb/fbpixmap.c @@ -27,10 +27,9 @@ #include #endif +#include + #include "fb.h" -#ifdef IN_MODULE -#include "xf86_ansic.h" -#endif PixmapPtr fbCreatePixmapBpp (ScreenPtr pScreen, int width, int height, int depth, int bpp) diff --git a/fb/fbpseudocolor.c b/fb/fbpseudocolor.c index ef40b70739..3e7b49cc6d 100644 --- a/fb/fbpseudocolor.c +++ b/fb/fbpseudocolor.c @@ -2,6 +2,8 @@ #include #endif +#include + #include #include #include "scrnintstr.h" diff --git a/fb/fbseg.c b/fb/fbseg.c index 18a996e0cc..777ff70552 100644 --- a/fb/fbseg.c +++ b/fb/fbseg.c @@ -27,6 +27,8 @@ #include #endif +#include + #include "fb.h" #include "miline.h" diff --git a/fb/fbwindow.c b/fb/fbwindow.c index 7b96f18c34..d4046b5f14 100644 --- a/fb/fbwindow.c +++ b/fb/fbwindow.c @@ -1,4 +1,4 @@ -/* $XdotOrg: xc/programs/Xserver/fb/fbwindow.c,v 1.8 2005/07/03 07:01:23 daniels Exp $ */ +/* $XdotOrg: xserver/xorg/fb/fbwindow.c,v 1.9 2005/10/02 08:28:26 anholt Exp $ */ /* * Id: fbwindow.c,v 1.1 1999/11/02 03:54:45 keithp Exp $ * @@ -28,10 +28,9 @@ #include #endif +#include + #include "fb.h" -#ifdef IN_MODULE -#include "xf86_ansic.h" -#endif Bool fbCreateWindow(WindowPtr pWin) diff --git a/hw/xfree86/common/compiler.h b/hw/xfree86/common/compiler.h index d323f677b5..39c8b8c592 100644 --- a/hw/xfree86/common/compiler.h +++ b/hw/xfree86/common/compiler.h @@ -52,10 +52,6 @@ #ifndef _COMPILER_H -# if !defined(_XF86_ANSIC_H) && defined(XFree86Module) -# error missing #include "xf86_ansic.h" before #include "compiler.h" -# endif - # define _COMPILER_H #if defined(__SUNPRO_C) diff --git a/hw/xfree86/common/xf86.h b/hw/xfree86/common/xf86.h index 010360cf37..5d9d61e8a3 100644 --- a/hw/xfree86/common/xf86.h +++ b/hw/xfree86/common/xf86.h @@ -40,11 +40,7 @@ #include "xf86str.h" #include "xf86Opt.h" #include -#ifndef IN_MODULE #include -#else -#include "xf86_ansic.h" -#endif #ifdef RANDR #include #endif diff --git a/hw/xfree86/ddc/ddcProperty.c b/hw/xfree86/ddc/ddcProperty.c index c2b0f4aba2..00e721053e 100644 --- a/hw/xfree86/ddc/ddcProperty.c +++ b/hw/xfree86/ddc/ddcProperty.c @@ -9,9 +9,9 @@ #include #endif +#include #include "misc.h" #include "xf86.h" -/* #include "xf86_ansic.h" */ /* #include "xf86_OSproc.h" */ #include #include "property.h" diff --git a/hw/xfree86/ddc/edid.c b/hw/xfree86/ddc/edid.c index ef4848eefb..6d3b18c13f 100644 --- a/hw/xfree86/ddc/edid.c +++ b/hw/xfree86/ddc/edid.c @@ -13,10 +13,10 @@ #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include "xf86DDC.h" #include "ddcPriv.h" +#include static int find_start(unsigned int *); static unsigned char * find_header(unsigned char *); diff --git a/hw/xfree86/ddc/interpret_edid.c b/hw/xfree86/ddc/interpret_edid.c index 59dae6cf3a..718cbf77a7 100644 --- a/hw/xfree86/ddc/interpret_edid.c +++ b/hw/xfree86/ddc/interpret_edid.c @@ -10,10 +10,10 @@ #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #define _PARSE_EDID_ #include "xf86DDC.h" +#include static void get_vendor_section(Uchar*, struct vendor *); static void get_version_section(Uchar*, struct edid_version *); diff --git a/hw/xfree86/ddc/print_edid.c b/hw/xfree86/ddc/print_edid.c index 1cec912837..2b96488e84 100644 --- a/hw/xfree86/ddc/print_edid.c +++ b/hw/xfree86/ddc/print_edid.c @@ -10,7 +10,6 @@ #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include "xf86DDC.h" diff --git a/hw/xfree86/ddc/xf86DDC.c b/hw/xfree86/ddc/xf86DDC.c index 36b214644d..c5b070dc70 100644 --- a/hw/xfree86/ddc/xf86DDC.c +++ b/hw/xfree86/ddc/xf86DDC.c @@ -10,10 +10,10 @@ #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include "xf86DDC.h" #include "ddcPriv.h" +#include #ifdef XFree86LOADER static const OptionInfoRec *DDCAvailableOptions(void *unused); diff --git a/hw/xfree86/dixmods/extmod/modinit.c b/hw/xfree86/dixmods/extmod/modinit.c index 3c2044f788..f71ce61688 100644 --- a/hw/xfree86/dixmods/extmod/modinit.c +++ b/hw/xfree86/dixmods/extmod/modinit.c @@ -28,7 +28,6 @@ #endif #ifdef XFree86LOADER -#include "xf86_ansic.h" #include "xf86Module.h" #include "xf86Opt.h" diff --git a/hw/xfree86/dixmods/extmod/xf86dga2.c b/hw/xfree86/dixmods/extmod/xf86dga2.c index a5cab0f118..3ea19b431b 100644 --- a/hw/xfree86/dixmods/extmod/xf86dga2.c +++ b/hw/xfree86/dixmods/extmod/xf86dga2.c @@ -30,11 +30,7 @@ #include "dgaproc.h" #include "xf86dgaext.h" -#ifdef EXTMODULE -#include "xf86_ansic.h" -#else #include -#endif #include "modinit.h" diff --git a/hw/xfree86/dixmods/extmod/xf86misc.c b/hw/xfree86/dixmods/extmod/xf86misc.c index a5dc2e2123..a35db1f2f2 100644 --- a/hw/xfree86/dixmods/extmod/xf86misc.c +++ b/hw/xfree86/dixmods/extmod/xf86misc.c @@ -41,10 +41,6 @@ #endif /* USL */ #endif -#ifdef EXTMODULE -#include "xf86_ansic.h" -#endif - static int miscErrorBase; static int MiscGeneration = 0; static int MiscClientPrivateIndex; diff --git a/hw/xfree86/dixmods/extmod/xf86vmode.c b/hw/xfree86/dixmods/extmod/xf86vmode.c index 50575cc058..2a3037c0e7 100644 --- a/hw/xfree86/dixmods/extmod/xf86vmode.c +++ b/hw/xfree86/dixmods/extmod/xf86vmode.c @@ -29,7 +29,7 @@ or other dealings in this Software without prior written authorization from Kaleb S. KEITHLEY */ -/* $XdotOrg: xc/programs/Xserver/Xext/xf86vmode.c,v 1.4 2005/04/20 12:25:12 daniels Exp $ */ +/* $XdotOrg: xserver/xorg/hw/xfree86/dixmods/extmod/xf86vmode.c,v 1.8 2005/07/16 03:49:58 kem Exp $ */ /* $Xorg: xf86vmode.c,v 1.3 2000/08/17 19:47:59 cpqbld Exp $ */ /* THIS IS NOT AN X CONSORTIUM STANDARD OR AN X PROJECT TEAM SPECIFICATION */ @@ -52,10 +52,6 @@ from Kaleb S. KEITHLEY #include "xf86.h" #include "vidmodeproc.h" -#ifdef EXTMODULE -#include "xf86_ansic.h" -#endif - #define DEFAULT_XF86VIDMODE_VERBOSITY 3 static int VidModeErrorBase; diff --git a/hw/xfree86/dri/dri.c b/hw/xfree86/dri/dri.c index fdfa575577..72139dea6c 100644 --- a/hw/xfree86/dri/dri.c +++ b/hw/xfree86/dri/dri.c @@ -39,12 +39,8 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #endif #include "xf86.h" -#ifdef XFree86LOADER -#include "xf86_ansic.h" -#else #include #include -#endif #define NEED_REPLIES #define NEED_EVENTS diff --git a/hw/xfree86/dri/xf86dri.c b/hw/xfree86/dri/xf86dri.c index 273ccda1bf..4b0e354592 100644 --- a/hw/xfree86/dri/xf86dri.c +++ b/hw/xfree86/dri/xf86dri.c @@ -39,10 +39,9 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include #endif +#include + #include "xf86.h" -#ifdef XFree86LOADER -#include "xf86_ansic.h" -#endif #define NEED_REPLIES #define NEED_EVENTS diff --git a/hw/xfree86/exa/exa_migration.c b/hw/xfree86/exa/exa_migration.c index 2acda24daa..270ad75417 100644 --- a/hw/xfree86/exa/exa_migration.c +++ b/hw/xfree86/exa/exa_migration.c @@ -25,6 +25,9 @@ #ifdef HAVE_CONFIG_H #include #endif + +#include + #include "exa_priv.h" #include #include "dixfontstr.h" diff --git a/hw/xfree86/exa/exa_offscreen.c b/hw/xfree86/exa/exa_offscreen.c index b0b19f501c..c3a2af6422 100644 --- a/hw/xfree86/exa/exa_offscreen.c +++ b/hw/xfree86/exa/exa_offscreen.c @@ -22,6 +22,10 @@ #include "exa_priv.h" +#include +#include +#include + #if DEBUG_OFFSCREEN #define DBG_OFFSCREEN(a) ErrorF a #else @@ -120,7 +124,7 @@ exaOffscreenAlloc (ScreenPtr pScreen, int size, int align, /* prev points at the first object to boot */ best = NULL; - best_score = MAXINT; + best_score = INT_MAX; for (begin = pExaScr->info->card.offScreenAreas; begin != NULL; begin = begin->next) { diff --git a/hw/xfree86/fbdevhw/fbdevhw.c b/hw/xfree86/fbdevhw/fbdevhw.c index 3e7b1f66a5..25779ed87b 100644 --- a/hw/xfree86/fbdevhw/fbdevhw.c +++ b/hw/xfree86/fbdevhw/fbdevhw.c @@ -7,7 +7,6 @@ #include "xf86.h" #include "xf86_OSproc.h" -#include "xf86_ansic.h" /* pci stuff */ #include "xf86PciInfo.h" diff --git a/hw/xfree86/i2c/bt829.c b/hw/xfree86/i2c/bt829.c index c9d1443176..3963ecf470 100644 --- a/hw/xfree86/i2c/bt829.c +++ b/hw/xfree86/i2c/bt829.c @@ -4,6 +4,10 @@ #include #endif +#include +#include +#include + #include "xf86.h" #include "xf86i2c.h" #include "bt829.h" diff --git a/hw/xfree86/i2c/fi1236.c b/hw/xfree86/i2c/fi1236.c index 299f200607..22a019499e 100644 --- a/hw/xfree86/i2c/fi1236.c +++ b/hw/xfree86/i2c/fi1236.c @@ -1,9 +1,14 @@ -/* $XdotOrg: $ */ +/* $XdotOrg: xserver/xorg/hw/xfree86/i2c/fi1236.c,v 1.8 2005/07/30 18:56:32 alanc Exp $ */ #ifdef HAVE_XORG_CONFIG_H #include #endif +#include +#include +#include +#include + #include "xf86.h" #include "xf86i2c.h" #include "fi1236.h" diff --git a/hw/xfree86/i2c/msp3430.c b/hw/xfree86/i2c/msp3430.c index 91019fc8fc..42f100e7cb 100644 --- a/hw/xfree86/i2c/msp3430.c +++ b/hw/xfree86/i2c/msp3430.c @@ -2,6 +2,9 @@ #include #endif +#include +#include + #include "xf86.h" #include "xf86i2c.h" #include "msp3430.h" diff --git a/hw/xfree86/i2c/xf86i2c.c b/hw/xfree86/i2c/xf86i2c.c index d33ea97c19..9049fe4fd4 100644 --- a/hw/xfree86/i2c/xf86i2c.c +++ b/hw/xfree86/i2c/xf86i2c.c @@ -12,13 +12,15 @@ #include #endif -#if 1 +#include +#include + #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include +#include #include #include "scrnintstr.h" #include "regionstr.h" @@ -28,14 +30,6 @@ #include "resource.h" #include "gcstruct.h" #include "dixstruct.h" -#else -typedef int Bool; -typedef void *Pointer; -#define NULL ((void *)0) -#define X_DEFAULT 0 -#define TRUE 1 -#define FALSE 0 -#endif #include "xf86i2c.h" @@ -76,20 +70,19 @@ I2CUDelay(I2CBusPtr b, int usec) static void I2CUDelay(I2CBusPtr b, int usec) { - long b_secs, b_usecs; - long a_secs, a_usecs; + struct timeval begin, cur; long d_secs, d_usecs; long diff; if (usec > 0) { - xf86getsecs(&b_secs, &b_usecs); + X_GETTIMEOFDAY(&begin); do { /* It would be nice to use {xf86}usleep, * but usleep (1) takes >10000 usec ! */ - xf86getsecs(&a_secs, &a_usecs); - d_secs = (a_secs - b_secs); - d_usecs = (a_usecs - b_usecs); + X_GETTIMEOFDAY(&cur); + d_secs = (cur.tv_sec - begin.tv_sec); + d_usecs = (cur.tv_usec - begin.tv_usec); diff = d_secs*1000000 + d_usecs; } while (diff>=0 && diff< (usec + 1)); } diff --git a/hw/xfree86/int10/generic.c b/hw/xfree86/int10/generic.c index e9ddd3334a..a9ceebcb01 100644 --- a/hw/xfree86/int10/generic.c +++ b/hw/xfree86/int10/generic.c @@ -8,9 +8,11 @@ #include #endif +#include +#include + #include "xf86.h" #include "xf86_OSproc.h" -#include "xf86_ansic.h" #include "compiler.h" #define _INT10_PRIVATE #include "xf86int10.h" diff --git a/hw/xfree86/int10/helper_exec.c b/hw/xfree86/int10/helper_exec.c index eae6b5378b..1809e2d954 100644 --- a/hw/xfree86/int10/helper_exec.c +++ b/hw/xfree86/int10/helper_exec.c @@ -19,9 +19,11 @@ #include #endif +#include + +#include #include "xf86.h" #include "xf86_OSproc.h" -#include "xf86_ansic.h" #include "compiler.h" #define _INT10_PRIVATE #include "int10Defines.h" @@ -342,13 +344,14 @@ x_inw(CARD16 port) CARD16 val; if (port == 0x5c) { + struct timeval tv; + /* * Emulate a PC98's timer. Typical resolution is 3.26 usec. * Approximate this by dividing by 3. */ - long sec, usec; - (void)getsecs(&sec, &usec); - val = (CARD16)(usec / 3); + X_GETTIMEOFDAY(&tv); + val = (CARD16)(tv.tv_usec / 3); } else { if (!pciCfg1inw(port, &val)) val = inw(Int10Current->ioBase + port); @@ -363,15 +366,15 @@ void x_outb(CARD16 port, CARD8 val) { if ((port == 0x43) && (val == 0)) { + struct timeval tv; /* * Emulate a PC's timer 0. Such timers typically have a resolution of * some .838 usec per tick, but this can only provide 1 usec per tick. * (Not that this matters much, given inherent emulation delays.) Use * the bottom bit as a byte select. See inb(0x40) above. */ - long sec, usec; - (void) getsecs(&sec, &usec); - Int10Current->inb40time = (CARD16)(usec | 1); + X_GETTIMEOFDAY(&tv); + Int10Current->inb40time = (CARD16)(tv.tv_usec | 1); #ifdef PRINT_PORT ErrorF(" outb(%#x, %2.2x)\n", port, val); #endif diff --git a/hw/xfree86/int10/helper_mem.c b/hw/xfree86/int10/helper_mem.c index 495a0e04dc..65ffe3df5f 100644 --- a/hw/xfree86/int10/helper_mem.c +++ b/hw/xfree86/int10/helper_mem.c @@ -8,9 +8,11 @@ #include #endif +#include +#include + #include "xf86.h" #include "xf86_OSproc.h" -#include "xf86_ansic.h" #include "compiler.h" #include "xf86Pci.h" #define _INT10_PRIVATE diff --git a/hw/xfree86/int10/pci.c b/hw/xfree86/int10/pci.c index f35bd72330..520df1495d 100644 --- a/hw/xfree86/int10/pci.c +++ b/hw/xfree86/int10/pci.c @@ -9,9 +9,10 @@ #include #endif +#include + #include "xf86Pci.h" #include "xf86.h" -#include "xf86_ansic.h" #define _INT10_PRIVATE #include "xf86int10.h" diff --git a/hw/xfree86/int10/x86emu.c b/hw/xfree86/int10/x86emu.c index b9580a1de3..b3320e5b95 100644 --- a/hw/xfree86/int10/x86emu.c +++ b/hw/xfree86/int10/x86emu.c @@ -3,10 +3,6 @@ #include #endif -#ifdef NO_SYS_HEADERS -# include "xf86_ansic.h" -#endif - #include "debug.c" #include "decode.c" #include "fpu.c" diff --git a/hw/xfree86/int10/xf86int10.c b/hw/xfree86/int10/xf86int10.c index 06cf40b8cb..303cf89251 100644 --- a/hw/xfree86/int10/xf86int10.c +++ b/hw/xfree86/int10/xf86int10.c @@ -10,7 +10,6 @@ #endif #include "xf86.h" -#include "xf86_ansic.h" #include "compiler.h" #define _INT10_PRIVATE #include "xf86int10.h" diff --git a/hw/xfree86/int10/xf86x86emu.c b/hw/xfree86/int10/xf86x86emu.c index c15a5f9bed..62a34e3aa3 100644 --- a/hw/xfree86/int10/xf86x86emu.c +++ b/hw/xfree86/int10/xf86x86emu.c @@ -10,11 +10,9 @@ #include #include "xf86.h" -#include "xf86_ansic.h" #include "compiler.h" #include "xf86_OSproc.h" #include "xf86Pci.h" -#include "xf86_libc.h" #define _INT10_PRIVATE #include "xf86int10.h" #include "int10Defines.h" diff --git a/hw/xfree86/os-support/bsd/bsd_jstk.c b/hw/xfree86/os-support/bsd/bsd_jstk.c index 00f457b880..bc99f29149 100644 --- a/hw/xfree86/os-support/bsd/bsd_jstk.c +++ b/hw/xfree86/os-support/bsd/bsd_jstk.c @@ -38,7 +38,6 @@ #ifdef XFree86LOADER #include "misc.h" -#include "xf86_libc.h" #endif #include "xf86.h" diff --git a/hw/xfree86/os-support/bsd/bsd_kmod.c b/hw/xfree86/os-support/bsd/bsd_kmod.c index ecaf780286..e3c4bb77cf 100644 --- a/hw/xfree86/os-support/bsd/bsd_kmod.c +++ b/hw/xfree86/os-support/bsd/bsd_kmod.c @@ -11,7 +11,6 @@ #include #include "xf86_OSproc.h" -#include "xf86_ansic.h" /* * Load a FreeBSD kernel module. diff --git a/hw/xfree86/os-support/drm/xf86drm.c b/hw/xfree86/os-support/drm/xf86drm.c index 0980e78846..a4663048b4 100644 --- a/hw/xfree86/os-support/drm/xf86drm.c +++ b/hw/xfree86/os-support/drm/xf86drm.c @@ -40,39 +40,33 @@ #ifdef XFree86Server # include "xf86.h" # include "xf86_OSproc.h" -# include "drm.h" -# include "xf86_ansic.h" # define _DRM_MALLOC xalloc # define _DRM_FREE xfree # ifndef XFree86LOADER # include # endif #else -# include -# include -# include -# include -# include -# include -# include -# include -# include -# include -# define stat_t struct stat -# include -# include -# include -# include -# ifdef DRM_USE_MALLOC -# define _DRM_MALLOC malloc -# define _DRM_FREE free -# else -# define _DRM_MALLOC malloc -# define _DRM_FREE free -# endif -# include "drm.h" +# define _DRM_MALLOC malloc +# define _DRM_FREE free #endif +#include "drm.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#define stat_t struct stat +#include +#include +#include +#include + /* No longer needed with CVS kernel modules on alpha #if defined(__alpha__) && defined(__linux__) extern unsigned long _bus_base(void); diff --git a/hw/xfree86/os-support/drm/xf86drmHash.c b/hw/xfree86/os-support/drm/xf86drmHash.c index 4fbc88a12b..a2567080ad 100644 --- a/hw/xfree86/os-support/drm/xf86drmHash.c +++ b/hw/xfree86/os-support/drm/xf86drmHash.c @@ -76,18 +76,13 @@ #define HASH_MAIN 0 -#if HASH_MAIN -# include -# include -#else +#include +#include +#if !HASH_MAIN # include "drm.h" # include "xf86drm.h" # ifdef XFree86LOADER # include "xf86.h" -# include "xf86_ansic.h" -# else -# include -# include # endif #endif diff --git a/hw/xfree86/os-support/drm/xf86drmRandom.c b/hw/xfree86/os-support/drm/xf86drmRandom.c index 301aaf4c2f..cc40dccadc 100644 --- a/hw/xfree86/os-support/drm/xf86drmRandom.c +++ b/hw/xfree86/os-support/drm/xf86drmRandom.c @@ -79,18 +79,13 @@ #define RANDOM_MAIN 0 -#if RANDOM_MAIN -# include -# include -#else +#include +#include +#if !RANDOM_MAIN # include "drm.h" # include "xf86drm.h" # ifdef XFree86LOADER # include "xf86.h" -# include "xf86_ansic.h" -# else -# include -# include # endif #endif diff --git a/hw/xfree86/os-support/drm/xf86drmSL.c b/hw/xfree86/os-support/drm/xf86drmSL.c index 5f3c88d234..23283a950d 100644 --- a/hw/xfree86/os-support/drm/xf86drmSL.c +++ b/hw/xfree86/os-support/drm/xf86drmSL.c @@ -55,7 +55,6 @@ # include "xf86drm.h" # ifdef XFree86LOADER # include "xf86.h" -# include "xf86_ansic.h" # else # include # include diff --git a/hw/xfree86/os-support/linux/int10/linux.c b/hw/xfree86/os-support/linux/int10/linux.c index b8e821cd15..69df3118eb 100644 --- a/hw/xfree86/os-support/linux/int10/linux.c +++ b/hw/xfree86/os-support/linux/int10/linux.c @@ -9,7 +9,6 @@ #include "xf86.h" #include "xf86_OSproc.h" -#include "xf86_ansic.h" #include "xf86Pci.h" #include "compiler.h" #define _INT10_PRIVATE diff --git a/hw/xfree86/os-support/linux/int10/vm86/linux_vm86.c b/hw/xfree86/os-support/linux/int10/vm86/linux_vm86.c index e99cde8da2..05d40a37bf 100644 --- a/hw/xfree86/os-support/linux/int10/vm86/linux_vm86.c +++ b/hw/xfree86/os-support/linux/int10/vm86/linux_vm86.c @@ -6,7 +6,6 @@ #include "xf86.h" #include "xf86_OSproc.h" -#include "xf86_ansic.h" #include "xf86Pci.h" #include "compiler.h" #define _INT10_PRIVATE diff --git a/hw/xfree86/os-support/linux/lnx_jstk.c b/hw/xfree86/os-support/linux/lnx_jstk.c index dafdc0594e..6675863597 100644 --- a/hw/xfree86/os-support/linux/lnx_jstk.c +++ b/hw/xfree86/os-support/linux/lnx_jstk.c @@ -42,7 +42,6 @@ static const char rcs_id[] = "Id: lnx_jstk.c,v 1.1 1995/12/20 14:06:09 lepied Ex #ifdef XFree86LOADER #include "xf86.h" -#include "xf86_ansic.h" #endif #if !defined(JSIOCGTIMELIMIT) diff --git a/hw/xfree86/rac/xf86RAC.c b/hw/xfree86/rac/xf86RAC.c index 243bcfbbc0..05ea7ac7dd 100644 --- a/hw/xfree86/rac/xf86RAC.c +++ b/hw/xfree86/rac/xf86RAC.c @@ -6,7 +6,6 @@ #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include diff --git a/hw/xfree86/ramdac/BT.c b/hw/xfree86/ramdac/BT.c index 346b902dda..5c3139d91f 100644 --- a/hw/xfree86/ramdac/BT.c +++ b/hw/xfree86/ramdac/BT.c @@ -31,7 +31,6 @@ #include "xf86.h" #include "xf86_OSproc.h" -#include "xf86_ansic.h" #define INIT_BT_RAMDAC_INFO #include "BTPriv.h" diff --git a/hw/xfree86/ramdac/IBM.c b/hw/xfree86/ramdac/IBM.c index bf9b729d85..42bff44a90 100644 --- a/hw/xfree86/ramdac/IBM.c +++ b/hw/xfree86/ramdac/IBM.c @@ -31,7 +31,6 @@ #include "xf86.h" #include "xf86_OSproc.h" -#include "xf86_ansic.h" #include "xf86Cursor.h" diff --git a/hw/xfree86/ramdac/TI.c b/hw/xfree86/ramdac/TI.c index e945dab10c..390bc6b7b5 100644 --- a/hw/xfree86/ramdac/TI.c +++ b/hw/xfree86/ramdac/TI.c @@ -32,7 +32,6 @@ #include "xf86.h" #include "xf86_OSproc.h" -#include "xf86_ansic.h" #include "xf86Cursor.h" diff --git a/hw/xfree86/ramdac/xf86Cursor.c b/hw/xfree86/ramdac/xf86Cursor.c index 460914d5eb..a930cdd8e8 100644 --- a/hw/xfree86/ramdac/xf86Cursor.c +++ b/hw/xfree86/ramdac/xf86Cursor.c @@ -5,7 +5,6 @@ #endif #include "xf86.h" -#include "xf86_ansic.h" #include "xf86CursorPriv.h" #include "colormapst.h" #include "cursorstr.h" diff --git a/hw/xfree86/ramdac/xf86HWCurs.c b/hw/xfree86/ramdac/xf86HWCurs.c index 83e6e46116..aef1c8bb19 100644 --- a/hw/xfree86/ramdac/xf86HWCurs.c +++ b/hw/xfree86/ramdac/xf86HWCurs.c @@ -4,9 +4,10 @@ #include #endif +#include + #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include diff --git a/hw/xfree86/ramdac/xf86RamDac.c b/hw/xfree86/ramdac/xf86RamDac.c index 1182a3e392..e0314f6b7a 100644 --- a/hw/xfree86/ramdac/xf86RamDac.c +++ b/hw/xfree86/ramdac/xf86RamDac.c @@ -31,7 +31,6 @@ #include "xf86.h" #include "xf86_OSproc.h" -#include "xf86_ansic.h" #include "xf86RamDacPriv.h" diff --git a/hw/xfree86/ramdac/xf86RamDacCmap.c b/hw/xfree86/ramdac/xf86RamDacCmap.c index 6a59b4bb76..04f50f1662 100644 --- a/hw/xfree86/ramdac/xf86RamDacCmap.c +++ b/hw/xfree86/ramdac/xf86RamDacCmap.c @@ -36,7 +36,6 @@ #include "micmap.h" #include "xf86.h" -#include "xf86_ansic.h" #include "compiler.h" #include "colormapst.h" #include "xf86RamDacPriv.h" diff --git a/hw/xfree86/scanpci/xf86ScanPci.c b/hw/xfree86/scanpci/xf86ScanPci.c index 91455d412d..d321a5b79d 100644 --- a/hw/xfree86/scanpci/xf86ScanPci.c +++ b/hw/xfree86/scanpci/xf86ScanPci.c @@ -62,12 +62,8 @@ #include "xf86Pci.h" #include "xf86_OSproc.h" -#ifndef IN_MODULE #include #include -#else -#include -#endif #ifndef PCIDATA #define VENDOR_INCLUDE_NONVIDEO diff --git a/hw/xfree86/utils/xorgcfg/loader.h b/hw/xfree86/utils/xorgcfg/loader.h index 8e4da34c3b..92ca70485e 100644 --- a/hw/xfree86/utils/xorgcfg/loader.h +++ b/hw/xfree86/utils/xorgcfg/loader.h @@ -55,7 +55,6 @@ #include "loaderProcs.h" #include -#include void LoaderDefaultFunc(void); #endif diff --git a/hw/xfree86/vbe/vbe.c b/hw/xfree86/vbe/vbe.c index b69a82b4ee..521deb4790 100644 --- a/hw/xfree86/vbe/vbe.c +++ b/hw/xfree86/vbe/vbe.c @@ -14,8 +14,9 @@ #include #endif +#include + #include "xf86.h" -#include "xf86_ansic.h" #include "vbe.h" #include #define DPMS_SERVER diff --git a/hw/xfree86/vbe/vbeModes.c b/hw/xfree86/vbe/vbeModes.c index 678f8e120a..436a8a8dd3 100644 --- a/hw/xfree86/vbe/vbeModes.c +++ b/hw/xfree86/vbe/vbeModes.c @@ -34,8 +34,10 @@ #include #endif +#include +#include + #include "xf86.h" -#include "xf86_ansic.h" #include "vbe.h" #include "vbeModes.h" diff --git a/hw/xfree86/vgahw/vgaCmap.c b/hw/xfree86/vgahw/vgaCmap.c index 85f8bbdb8c..d3f6d427d7 100644 --- a/hw/xfree86/vgahw/vgaCmap.c +++ b/hw/xfree86/vgahw/vgaCmap.c @@ -37,7 +37,6 @@ #include "xf86.h" #include "vgaHW.h" -#include "xf86_ansic.h" #define _XF86DGA_SERVER_ #include diff --git a/hw/xfree86/vgahw/vgaHW.c b/hw/xfree86/vgahw/vgaHW.c index 8b98190cb3..6df7dee18c 100644 --- a/hw/xfree86/vgahw/vgaHW.c +++ b/hw/xfree86/vgahw/vgaHW.c @@ -16,12 +16,15 @@ #include #endif +#include +#include +#include + #include #include "misc.h" #include "xf86.h" #include "xf86_OSproc.h" -#include "xf86_ansic.h" #include "vgaHW.h" #include "compiler.h" diff --git a/hw/xfree86/x86emu/decode.c b/hw/xfree86/x86emu/decode.c index 25415d9fa7..9339f4c7f7 100644 --- a/hw/xfree86/x86emu/decode.c +++ b/hw/xfree86/x86emu/decode.c @@ -37,7 +37,7 @@ * ****************************************************************************/ - +#include #include "x86emu/x86emui.h" /*----------------------------- Implementation ----------------------------*/ diff --git a/hw/xfree86/x86emu/prim_ops.c b/hw/xfree86/x86emu/prim_ops.c index 56ab8cc9ac..461e09e3e2 100644 --- a/hw/xfree86/x86emu/prim_ops.c +++ b/hw/xfree86/x86emu/prim_ops.c @@ -97,6 +97,8 @@ * ****************************************************************************/ +#include + #define PRIM_OPS_NO_REDEFINE_ASM #include "x86emu/x86emui.h" diff --git a/hw/xfree86/xaa/xaaBitBlt.c b/hw/xfree86/xaa/xaaBitBlt.c index de02448483..3639ec7870 100644 --- a/hw/xfree86/xaa/xaaBitBlt.c +++ b/hw/xfree86/xaa/xaaBitBlt.c @@ -13,7 +13,6 @@ #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include diff --git a/hw/xfree86/xaa/xaaBitmap.c b/hw/xfree86/xaa/xaaBitmap.c index b3f00d6967..940525927f 100644 --- a/hw/xfree86/xaa/xaaBitmap.c +++ b/hw/xfree86/xaa/xaaBitmap.c @@ -9,8 +9,6 @@ #include "xaalocal.h" #include "xaacexp.h" #include "xf86.h" -#include "xf86_ansic.h" - /********** byte swapping ***************/ diff --git a/hw/xfree86/xaa/xaaCpyArea.c b/hw/xfree86/xaa/xaaCpyArea.c index 8d5bbf9aa5..2fe3ab1c3e 100644 --- a/hw/xfree86/xaa/xaaCpyArea.c +++ b/hw/xfree86/xaa/xaaCpyArea.c @@ -6,7 +6,6 @@ #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include diff --git a/hw/xfree86/xaa/xaaCpyPlane.c b/hw/xfree86/xaa/xaaCpyPlane.c index b60ba3f83c..95a22adf59 100644 --- a/hw/xfree86/xaa/xaaCpyPlane.c +++ b/hw/xfree86/xaa/xaaCpyPlane.c @@ -14,9 +14,10 @@ #include #endif +#include + #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include "servermd.h" diff --git a/hw/xfree86/xaa/xaaCpyWin.c b/hw/xfree86/xaa/xaaCpyWin.c index e50e88f916..198f8e95c3 100644 --- a/hw/xfree86/xaa/xaaCpyWin.c +++ b/hw/xfree86/xaa/xaaCpyWin.c @@ -6,7 +6,6 @@ #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include diff --git a/hw/xfree86/xaa/xaaDashLine.c b/hw/xfree86/xaa/xaaDashLine.c index 059804c70c..22645ea1ba 100644 --- a/hw/xfree86/xaa/xaaDashLine.c +++ b/hw/xfree86/xaa/xaaDashLine.c @@ -4,10 +4,11 @@ #include #endif +#include + #include #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include "scrnintstr.h" diff --git a/hw/xfree86/xaa/xaaFallback.c b/hw/xfree86/xaa/xaaFallback.c index 2f8851c387..da7a38ea9a 100644 --- a/hw/xfree86/xaa/xaaFallback.c +++ b/hw/xfree86/xaa/xaaFallback.c @@ -6,7 +6,6 @@ #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include diff --git a/hw/xfree86/xaa/xaaFillArc.c b/hw/xfree86/xaa/xaaFillArc.c index 4c4f0d38da..6d4a5dccf6 100644 --- a/hw/xfree86/xaa/xaaFillArc.c +++ b/hw/xfree86/xaa/xaaFillArc.c @@ -38,9 +38,10 @@ #include #endif +#include + #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include @@ -201,7 +202,7 @@ XAAPolyFillArcSolid(pDraw, pGC, narcs, parcs) box.x2 = x2; y2 = box.y1 + (int)arc->height + 1; box.y2 = y2; - if ( (x2 <= MAXSHORT) && (y2 <= MAXSHORT) && + if ( (x2 <= SHRT_MAX) && (y2 <= SHRT_MAX) && (RECT_IN_REGION(pDraw->pScreen, cclip, &box) == rgnIN) ) { if ((arc->angle2 >= FULLCIRCLE) || diff --git a/hw/xfree86/xaa/xaaFillPoly.c b/hw/xfree86/xaa/xaaFillPoly.c index 55177d3191..26a2646e74 100644 --- a/hw/xfree86/xaa/xaaFillPoly.c +++ b/hw/xfree86/xaa/xaaFillPoly.c @@ -37,7 +37,6 @@ #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include diff --git a/hw/xfree86/xaa/xaaFillRect.c b/hw/xfree86/xaa/xaaFillRect.c index bf63282729..1bd7bd14dc 100644 --- a/hw/xfree86/xaa/xaaFillRect.c +++ b/hw/xfree86/xaa/xaaFillRect.c @@ -6,7 +6,6 @@ #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include diff --git a/hw/xfree86/xaa/xaaGC.c b/hw/xfree86/xaa/xaaGC.c index 83df2a0e20..31f084e7ed 100644 --- a/hw/xfree86/xaa/xaaGC.c +++ b/hw/xfree86/xaa/xaaGC.c @@ -4,9 +4,10 @@ #include #endif +#include + #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include diff --git a/hw/xfree86/xaa/xaaGCmisc.c b/hw/xfree86/xaa/xaaGCmisc.c index 5c04e22668..5a6a0abce1 100644 --- a/hw/xfree86/xaa/xaaGCmisc.c +++ b/hw/xfree86/xaa/xaaGCmisc.c @@ -6,7 +6,6 @@ #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include diff --git a/hw/xfree86/xaa/xaaImage.c b/hw/xfree86/xaa/xaaImage.c index b87cc4eec7..a0d7bfb7ac 100644 --- a/hw/xfree86/xaa/xaaImage.c +++ b/hw/xfree86/xaa/xaaImage.c @@ -6,7 +6,6 @@ #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include "servermd.h" diff --git a/hw/xfree86/xaa/xaaInit.c b/hw/xfree86/xaa/xaaInit.c index 15132560d4..f29a2eb3a8 100644 --- a/hw/xfree86/xaa/xaaInit.c +++ b/hw/xfree86/xaa/xaaInit.c @@ -6,7 +6,6 @@ #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include diff --git a/hw/xfree86/xaa/xaaInitAccel.c b/hw/xfree86/xaa/xaaInitAccel.c index 8f40435375..861410b6d4 100644 --- a/hw/xfree86/xaa/xaaInitAccel.c +++ b/hw/xfree86/xaa/xaaInitAccel.c @@ -4,9 +4,10 @@ #include #endif +#include + #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include diff --git a/hw/xfree86/xaa/xaaLine.c b/hw/xfree86/xaa/xaaLine.c index 2314869cff..c6b78307a6 100644 --- a/hw/xfree86/xaa/xaaLine.c +++ b/hw/xfree86/xaa/xaaLine.c @@ -4,10 +4,11 @@ #include #endif +#include + #include #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include "scrnintstr.h" diff --git a/hw/xfree86/xaa/xaaLineMisc.c b/hw/xfree86/xaa/xaaLineMisc.c index 7f39229f85..7bb312971c 100644 --- a/hw/xfree86/xaa/xaaLineMisc.c +++ b/hw/xfree86/xaa/xaaLineMisc.c @@ -6,7 +6,6 @@ #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include diff --git a/hw/xfree86/xaa/xaaNonTEGlyph.c b/hw/xfree86/xaa/xaaNonTEGlyph.c index 75318e51cb..881707396d 100644 --- a/hw/xfree86/xaa/xaaNonTEGlyph.c +++ b/hw/xfree86/xaa/xaaNonTEGlyph.c @@ -9,7 +9,6 @@ #include "xaalocal.h" #include "xaacexp.h" #include "xf86.h" -#include "xf86_ansic.h" /* Not used anymore because the algorithm isn't correct. It doesn't handle overlapping characters properly */ diff --git a/hw/xfree86/xaa/xaaNonTEText.c b/hw/xfree86/xaa/xaaNonTEText.c index 0d0d8cf112..8c62af4778 100644 --- a/hw/xfree86/xaa/xaaNonTEText.c +++ b/hw/xfree86/xaa/xaaNonTEText.c @@ -22,9 +22,10 @@ #include #endif +#include + #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include diff --git a/hw/xfree86/xaa/xaaOffscreen.c b/hw/xfree86/xaa/xaaOffscreen.c index d227579a98..d1c737c06b 100644 --- a/hw/xfree86/xaa/xaaOffscreen.c +++ b/hw/xfree86/xaa/xaaOffscreen.c @@ -13,7 +13,6 @@ #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include diff --git a/hw/xfree86/xaa/xaaOverlay.c b/hw/xfree86/xaa/xaaOverlay.c index 12d2a959b1..53a0827e2f 100644 --- a/hw/xfree86/xaa/xaaOverlay.c +++ b/hw/xfree86/xaa/xaaOverlay.c @@ -1,4 +1,4 @@ -/* $XdotOrg: xc/programs/Xserver/hw/xfree86/xaa/xaaOverlay.c,v 1.3 2005/04/20 12:25:39 daniels Exp $ */ +/* $XdotOrg: xserver/xorg/hw/xfree86/xaa/xaaOverlay.c,v 1.6 2005/07/03 08:53:49 daniels Exp $ */ /* $XFree86: xc/programs/Xserver/hw/xfree86/xaa/xaaOverlay.c,v 1.14tsi Exp $ */ #ifdef HAVE_XORG_CONFIG_H @@ -7,7 +7,6 @@ #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include diff --git a/hw/xfree86/xaa/xaaOverlayDF.c b/hw/xfree86/xaa/xaaOverlayDF.c index 0cfd46f50e..883e94e6e5 100644 --- a/hw/xfree86/xaa/xaaOverlayDF.c +++ b/hw/xfree86/xaa/xaaOverlayDF.c @@ -12,7 +12,6 @@ #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include diff --git a/hw/xfree86/xaa/xaaPCache.c b/hw/xfree86/xaa/xaaPCache.c index a4fadb9aa5..b8dd774654 100644 --- a/hw/xfree86/xaa/xaaPCache.c +++ b/hw/xfree86/xaa/xaaPCache.c @@ -4,9 +4,10 @@ #include #endif +#include + #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include diff --git a/hw/xfree86/xaa/xaaPaintWin.c b/hw/xfree86/xaa/xaaPaintWin.c index 041ee18312..4a82b49c5b 100644 --- a/hw/xfree86/xaa/xaaPaintWin.c +++ b/hw/xfree86/xaa/xaaPaintWin.c @@ -1,4 +1,4 @@ -/* $XdotOrg: xc/programs/Xserver/hw/xfree86/xaa/xaaPaintWin.c,v 1.3 2005/04/20 12:25:39 daniels Exp $ */ +/* $XdotOrg: xserver/xorg/hw/xfree86/xaa/xaaPaintWin.c,v 1.6 2005/07/03 08:53:49 daniels Exp $ */ /* $XFree86: xc/programs/Xserver/hw/xfree86/xaa/xaaPaintWin.c,v 1.10 2001/10/28 03:34:04 tsi Exp $ */ #ifdef HAVE_XORG_CONFIG_H @@ -7,7 +7,6 @@ #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include diff --git a/hw/xfree86/xaa/xaaPict.c b/hw/xfree86/xaa/xaaPict.c index 60cfe08431..847ccb2e03 100644 --- a/hw/xfree86/xaa/xaaPict.c +++ b/hw/xfree86/xaa/xaaPict.c @@ -26,9 +26,10 @@ #include #endif +#include + #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include diff --git a/hw/xfree86/xaa/xaaROP.c b/hw/xfree86/xaa/xaaROP.c index 80e700153d..f6aacb85eb 100644 --- a/hw/xfree86/xaa/xaaROP.c +++ b/hw/xfree86/xaa/xaaROP.c @@ -7,7 +7,6 @@ #include #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include "scrnintstr.h" diff --git a/hw/xfree86/xaa/xaaRect.c b/hw/xfree86/xaa/xaaRect.c index b176e51fdf..1c56d80dc3 100644 --- a/hw/xfree86/xaa/xaaRect.c +++ b/hw/xfree86/xaa/xaaRect.c @@ -6,7 +6,6 @@ #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include diff --git a/hw/xfree86/xaa/xaaSpans.c b/hw/xfree86/xaa/xaaSpans.c index 315024ef3c..150991d7b8 100644 --- a/hw/xfree86/xaa/xaaSpans.c +++ b/hw/xfree86/xaa/xaaSpans.c @@ -6,7 +6,6 @@ #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include diff --git a/hw/xfree86/xaa/xaaStateChange.c b/hw/xfree86/xaa/xaaStateChange.c index c0dd6da3e5..86c12cc7ee 100644 --- a/hw/xfree86/xaa/xaaStateChange.c +++ b/hw/xfree86/xaa/xaaStateChange.c @@ -6,7 +6,6 @@ #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include diff --git a/hw/xfree86/xaa/xaaStipple.c b/hw/xfree86/xaa/xaaStipple.c index 02a2b32ce2..7ea9a2dc2d 100644 --- a/hw/xfree86/xaa/xaaStipple.c +++ b/hw/xfree86/xaa/xaaStipple.c @@ -8,7 +8,6 @@ #include "xaalocal.h" #include "xaacexp.h" #include "xf86.h" -#include "xf86_ansic.h" static CARD32* StipplePowerOfTwo(CARD32*, CARD32*, int, int, int); static CARD32* StipplePowerOfTwo_Inverted(CARD32*, CARD32*, int, int, int); diff --git a/hw/xfree86/xaa/xaaTEGlyph.c b/hw/xfree86/xaa/xaaTEGlyph.c index 187a9dc610..f755ed9a9c 100644 --- a/hw/xfree86/xaa/xaaTEGlyph.c +++ b/hw/xfree86/xaa/xaaTEGlyph.c @@ -9,8 +9,6 @@ #include "xaalocal.h" #include "xaacexp.h" #include "xf86.h" -#include "xf86_ansic.h" - /* scanline function for TRIPLE_BITS_24BPP */ static CARD32 *DrawTextScanline3(CARD32 *base, CARD32 *mem, int width); diff --git a/hw/xfree86/xaa/xaaTEText.c b/hw/xfree86/xaa/xaaTEText.c index 2c1e257cde..72e1858f65 100644 --- a/hw/xfree86/xaa/xaaTEText.c +++ b/hw/xfree86/xaa/xaaTEText.c @@ -24,7 +24,6 @@ #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include diff --git a/hw/xfree86/xaa/xaaWideLine.c b/hw/xfree86/xaa/xaaWideLine.c index 481ff8cc34..fbec29e7d9 100644 --- a/hw/xfree86/xaa/xaaWideLine.c +++ b/hw/xfree86/xaa/xaaWideLine.c @@ -1,5 +1,5 @@ /* $XFree86: xc/programs/Xserver/hw/xfree86/xaa/xaaWideLine.c,v 1.10 2001/11/16 16:47:56 dawes Exp $ */ -/* $XdotOrg: xc/programs/Xserver/hw/xfree86/xaa/xaaWideLine.c,v 1.4 2005/04/20 12:25:40 daniels Exp $ */ +/* $XdotOrg: xserver/xorg/hw/xfree86/xaa/xaaWideLine.c,v 1.7 2005/07/03 08:53:49 daniels Exp $ */ /* XAAPolylinesWideSolid does not maintain a span list and subsequently does @@ -18,20 +18,10 @@ Original mi code written by Keith Packard. #include #endif -#ifndef XFree86LOADER -#if defined(_XOPEN_SOURCE) || defined(__QNXNTO__) \ - || (defined(sun) && defined(__SVR4)) #include -#else -#define _XOPEN_SOURCE /* to get prototype for hypot on some systems */ -#include -#undef _XOPEN_SOURCE -#endif -#endif #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include diff --git a/hw/xfree86/xf4bpp/OScompiler.h b/hw/xfree86/xf4bpp/OScompiler.h index cff5d9d3f2..cc4266c3ae 100644 --- a/hw/xfree86/xf4bpp/OScompiler.h +++ b/hw/xfree86/xf4bpp/OScompiler.h @@ -36,7 +36,6 @@ #define ABS(x) (((x)>0)?(x):-(x)) #include "misc.h" -#include "xf86_ansic.h" #include "compiler.h" #ifdef lint diff --git a/hw/xfree86/xf4bpp/mfbline.c b/hw/xfree86/xf4bpp/mfbline.c index 6d85f68c1d..5df58a7e41 100644 --- a/hw/xfree86/xf4bpp/mfbline.c +++ b/hw/xfree86/xf4bpp/mfbline.c @@ -53,6 +53,8 @@ SOFTWARE. #include #endif +#include + #include "xf4bpp.h" #include "OScompiler.h" #include "mfbmap.h" diff --git a/hw/xfree86/xf4bpp/ppcClip.c b/hw/xfree86/xf4bpp/ppcClip.c index fe690555f9..9166bf2564 100644 --- a/hw/xfree86/xf4bpp/ppcClip.c +++ b/hw/xfree86/xf4bpp/ppcClip.c @@ -74,6 +74,8 @@ SOFTWARE. #include #endif +#include + #include "xf4bpp.h" #include "mfbmap.h" #include "mfb.h" diff --git a/hw/xfree86/xf4bpp/ppcCpArea.c b/hw/xfree86/xf4bpp/ppcCpArea.c index 4673fe7acf..e33795c773 100644 --- a/hw/xfree86/xf4bpp/ppcCpArea.c +++ b/hw/xfree86/xf4bpp/ppcCpArea.c @@ -51,6 +51,8 @@ SOFTWARE. #include #endif +#include + #include "xf4bpp.h" #include "mfbmap.h" #define PSZ 8 diff --git a/hw/xfree86/xf4bpp/ppcGC.c b/hw/xfree86/xf4bpp/ppcGC.c index 9877b4bbad..6197fc6af8 100644 --- a/hw/xfree86/xf4bpp/ppcGC.c +++ b/hw/xfree86/xf4bpp/ppcGC.c @@ -75,6 +75,8 @@ SOFTWARE. #include #endif +#include + #include "xf4bpp.h" #include "mfbmap.h" #include "mfb.h" diff --git a/hw/xfree86/xf4bpp/ppcIO.c b/hw/xfree86/xf4bpp/ppcIO.c index 67eadfbf08..20b08ce9af 100644 --- a/hw/xfree86/xf4bpp/ppcIO.c +++ b/hw/xfree86/xf4bpp/ppcIO.c @@ -54,6 +54,8 @@ SOFTWARE. #include #endif +#include + #include "xf4bpp.h" #include "mfbmap.h" #include "mfb.h" diff --git a/hw/xfree86/xf4bpp/ppcImg.c b/hw/xfree86/xf4bpp/ppcImg.c index 71fcf38b16..ab8774216d 100644 --- a/hw/xfree86/xf4bpp/ppcImg.c +++ b/hw/xfree86/xf4bpp/ppcImg.c @@ -28,6 +28,8 @@ #include #endif +#include + #include "xf4bpp.h" #include "OScompiler.h" #include "mi.h" diff --git a/hw/xfree86/xf4bpp/ppcPixmap.c b/hw/xfree86/xf4bpp/ppcPixmap.c index 011dc56ff4..0ccefcbd63 100644 --- a/hw/xfree86/xf4bpp/ppcPixmap.c +++ b/hw/xfree86/xf4bpp/ppcPixmap.c @@ -75,6 +75,8 @@ SOFTWARE. #include #endif +#include + #include "xf4bpp.h" #include "servermd.h" #include "OScompiler.h" diff --git a/hw/xfree86/xf4bpp/ppcSetSp.c b/hw/xfree86/xf4bpp/ppcSetSp.c index 7d560988af..ffdc5d970c 100644 --- a/hw/xfree86/xf4bpp/ppcSetSp.c +++ b/hw/xfree86/xf4bpp/ppcSetSp.c @@ -75,6 +75,8 @@ SOFTWARE. #include #endif +#include + #include "xf4bpp.h" #include "OScompiler.h" #include "mfbmap.h" diff --git a/hw/xfree86/xf4bpp/ppcWindow.c b/hw/xfree86/xf4bpp/ppcWindow.c index 4cf8ea3cb7..a2e910b1c5 100644 --- a/hw/xfree86/xf4bpp/ppcWindow.c +++ b/hw/xfree86/xf4bpp/ppcWindow.c @@ -74,6 +74,8 @@ SOFTWARE. #include #endif +#include + #include "xf4bpp.h" #include "mfbmap.h" #include "mfb.h" diff --git a/hw/xfree86/xf8_32bpp/cfbcpyarea.c b/hw/xfree86/xf8_32bpp/cfbcpyarea.c index 1a17220ab7..6958861ecb 100644 --- a/hw/xfree86/xf8_32bpp/cfbcpyarea.c +++ b/hw/xfree86/xf8_32bpp/cfbcpyarea.c @@ -4,6 +4,8 @@ #include #endif +#include + #include #include #include "servermd.h" diff --git a/hw/xfree86/xf8_32bpp/cfbgcmisc.c b/hw/xfree86/xf8_32bpp/cfbgcmisc.c index 356b6cc9f1..3d1af095a6 100644 --- a/hw/xfree86/xf8_32bpp/cfbgcmisc.c +++ b/hw/xfree86/xf8_32bpp/cfbgcmisc.c @@ -4,6 +4,8 @@ #include #endif +#include + #include #include #include diff --git a/hw/xfree86/xf8_32bpp/cfbimage.c b/hw/xfree86/xf8_32bpp/cfbimage.c index 8b0ea4a78d..8220636a1a 100644 --- a/hw/xfree86/xf8_32bpp/cfbimage.c +++ b/hw/xfree86/xf8_32bpp/cfbimage.c @@ -4,6 +4,8 @@ #include #endif +#include + #include #include "windowstr.h" #include "pixmapstr.h" diff --git a/hw/xfree86/xf8_32bpp/cfbwindow.c b/hw/xfree86/xf8_32bpp/cfbwindow.c index 78d7214951..d2d4cfb6b7 100644 --- a/hw/xfree86/xf8_32bpp/cfbwindow.c +++ b/hw/xfree86/xf8_32bpp/cfbwindow.c @@ -5,6 +5,8 @@ #include #endif +#include + #include #include "scrnintstr.h" #include "windowstr.h" diff --git a/hw/xfree86/xf8_32bpp/xf86overlay.c b/hw/xfree86/xf8_32bpp/xf86overlay.c index 2766bf871a..c02e9b5d48 100644 --- a/hw/xfree86/xf8_32bpp/xf86overlay.c +++ b/hw/xfree86/xf8_32bpp/xf86overlay.c @@ -12,7 +12,6 @@ #include "misc.h" #include "xf86.h" -#include "xf86_ansic.h" #include "xf86_OSproc.h" #include diff --git a/include/os.h b/include/os.h index 0b3354eec4..8c46ec9438 100644 --- a/include/os.h +++ b/include/os.h @@ -55,11 +55,7 @@ SOFTWARE. #define ALLOCATE_LOCAL_FALLBACK(_size) Xalloc((unsigned long)(_size)) #define DEALLOCATE_LOCAL_FALLBACK(_ptr) Xfree((pointer)(_ptr)) #include -#ifndef IN_MODULE #include -#else -#include "xf86_ansic.h" -#endif #define NullFID ((FID) 0) diff --git a/mfb/mfb.h b/mfb/mfb.h index 6e7ae43b32..3135f447b2 100644 --- a/mfb/mfb.h +++ b/mfb/mfb.h @@ -1147,12 +1147,5 @@ than a switch on the rop per item (span or rectangle.) #define MFB_OP_WHITE /* nothing */ #define MFB_OP_BLACK ~ -/* - * if MFB is built as a module, it shouldn't call libc functions. - */ -#ifdef XFree86LOADER -#include "xf86_ansic.h" -#endif - #endif /* MFB_PROTOTYPES_ONLY */ #endif /* _MFB_H_ */ diff --git a/mfb/mfbbitblt.c b/mfb/mfbbitblt.c index 70e2a9934f..58468e3e50 100644 --- a/mfb/mfbbitblt.c +++ b/mfb/mfbbitblt.c @@ -54,6 +54,8 @@ SOFTWARE. #include #include +#include + #include "regionstr.h" #include "gcstruct.h" #include "windowstr.h" diff --git a/mfb/mfbblt.c b/mfb/mfbblt.c index ce77fe22ce..e66ab60909 100644 --- a/mfb/mfbblt.c +++ b/mfb/mfbblt.c @@ -36,6 +36,8 @@ Author: Keith Packard #include #endif +#include + #include #include #include diff --git a/mfb/mfbclip.c b/mfb/mfbclip.c index 5501f0d5c4..2b8a9cea20 100644 --- a/mfb/mfbclip.c +++ b/mfb/mfbclip.c @@ -50,6 +50,8 @@ SOFTWARE. #include #endif +#include + #include #include "regionstr.h" #include "pixmapstr.h" diff --git a/mfb/mfbfillarc.c b/mfb/mfbfillarc.c index a5442896f4..8856eb0ae2 100644 --- a/mfb/mfbfillarc.c +++ b/mfb/mfbfillarc.c @@ -31,6 +31,8 @@ in this Software without prior written authorization from The Open Group. #include #endif +#include + #include #include #include "regionstr.h" @@ -317,7 +319,7 @@ mfbPolyFillArcSolid(pDraw, pGC, narcs, parcs) box.x2 = x2; y2 = box.y1 + (int)arc->height + 1; box.y2 = y2; - if ( (x2 <= MAXSHORT) && (y2 <= MAXSHORT) && + if ( (x2 <= SHRT_MAX) && (y2 <= SHRT_MAX) && (RECT_IN_REGION(pDraw->pScreen, cclip, &box) == rgnIN) ) { if ((arc->angle2 >= FULLCIRCLE) || diff --git a/mfb/mfbgc.c b/mfb/mfbgc.c index c9ff20a45a..b248a1caf5 100644 --- a/mfb/mfbgc.c +++ b/mfb/mfbgc.c @@ -50,6 +50,8 @@ SOFTWARE. #include #endif +#include + #include #include #include diff --git a/mfb/mfbimage.c b/mfb/mfbimage.c index 2999057010..e2d2438c55 100644 --- a/mfb/mfbimage.c +++ b/mfb/mfbimage.c @@ -51,6 +51,8 @@ SOFTWARE. #include #endif +#include + #include #include "windowstr.h" diff --git a/mfb/mfbline.c b/mfb/mfbline.c index af7c27874d..465dfd36e6 100644 --- a/mfb/mfbline.c +++ b/mfb/mfbline.c @@ -50,6 +50,8 @@ SOFTWARE. #include #endif +#include + #include #include "gcstruct.h" diff --git a/mfb/mfbpixmap.c b/mfb/mfbpixmap.c index ad0dfe79f1..29dcf3d332 100644 --- a/mfb/mfbpixmap.c +++ b/mfb/mfbpixmap.c @@ -56,6 +56,8 @@ SOFTWARE. #include #endif +#include + #include #include "scrnintstr.h" #include "pixmapstr.h" diff --git a/mfb/mfbply1rct.c b/mfb/mfbply1rct.c index 9b783f6099..83e59cff65 100644 --- a/mfb/mfbply1rct.c +++ b/mfb/mfbply1rct.c @@ -32,6 +32,8 @@ in this Software without prior written authorization from The Open Group. #include #endif +#include + #include #include "gcstruct.h" diff --git a/mfb/mfbpushpxl.c b/mfb/mfbpushpxl.c index 1cbdf9a5b9..49211e6b74 100644 --- a/mfb/mfbpushpxl.c +++ b/mfb/mfbpushpxl.c @@ -51,6 +51,8 @@ SOFTWARE. #include #endif +#include + #include #include "gcstruct.h" #include "scrnintstr.h" diff --git a/mfb/mfbscrinit.c b/mfb/mfbscrinit.c index 9defac1dfb..db48c9c10c 100644 --- a/mfb/mfbscrinit.c +++ b/mfb/mfbscrinit.c @@ -51,6 +51,8 @@ SOFTWARE. #include #endif +#include + #include #include /* for xColorItem */ #include diff --git a/mfb/mfbwindow.c b/mfb/mfbwindow.c index 56f3f468ac..ccc07df1d2 100644 --- a/mfb/mfbwindow.c +++ b/mfb/mfbwindow.c @@ -52,6 +52,8 @@ SOFTWARE. #include #endif +#include + #include #include "scrnintstr.h" #include "windowstr.h" diff --git a/mfb/mfbzerarc.c b/mfb/mfbzerarc.c index 92fd81dfbc..cc45ee2d41 100644 --- a/mfb/mfbzerarc.c +++ b/mfb/mfbzerarc.c @@ -37,6 +37,8 @@ in this Software without prior written authorization from The Open Group. #include #endif +#include + #include #include #include "regionstr.h" @@ -246,7 +248,7 @@ mfbZeroPolyArcSS(pDraw, pGC, narcs, parcs) box.x2 = x2; y2 = box.y1 + (int)arc->height + 1; box.y2 = y2; - if ( (x2 <= MAXSHORT) && (y2 <= MAXSHORT) && + if ( (x2 <= SHRT_MAX) && (y2 <= SHRT_MAX) && (RECT_IN_REGION(pDraw->pScreen, cclip, &box) == rgnIN) ) mfbZeroArcSS(pDraw, pGC, arc); else diff --git a/miext/cw/cw.c b/miext/cw/cw.c index 4ebf8ab8a1..ebc9a6f96a 100644 --- a/miext/cw/cw.c +++ b/miext/cw/cw.c @@ -25,6 +25,8 @@ #include #endif +#include + #include "gcstruct.h" #include "windowstr.h" #include "cw.h" diff --git a/miext/cw/cw_ops.c b/miext/cw/cw_ops.c index 80168a3361..6ba804bb3d 100644 --- a/miext/cw/cw_ops.c +++ b/miext/cw/cw_ops.c @@ -25,6 +25,8 @@ #include #endif +#include + #include "gcstruct.h" #include "cw.h" diff --git a/miext/cw/cw_render.c b/miext/cw/cw_render.c index 82ca006d2c..beb9060819 100644 --- a/miext/cw/cw_render.c +++ b/miext/cw/cw_render.c @@ -25,6 +25,8 @@ #include #endif +#include + #include "gcstruct.h" #include "windowstr.h" #include "cw.h" diff --git a/miext/damage/damage.c b/miext/damage/damage.c index a1ac01a505..f8e95bdda5 100755 --- a/miext/damage/damage.c +++ b/miext/damage/damage.c @@ -26,6 +26,8 @@ #include #endif +#include + #include #include "scrnintstr.h" #include "windowstr.h" diff --git a/miext/shadow/shadow.c b/miext/shadow/shadow.c index d3d9135a50..b4a739ba44 100644 --- a/miext/shadow/shadow.c +++ b/miext/shadow/shadow.c @@ -26,6 +26,8 @@ #include #endif +#include + #include #include "scrnintstr.h" #include "windowstr.h" diff --git a/miext/shadow/shpacked.c b/miext/shadow/shpacked.c index 8989760d70..1af55bbc42 100644 --- a/miext/shadow/shpacked.c +++ b/miext/shadow/shpacked.c @@ -26,6 +26,8 @@ #include #endif +#include + #include #include "scrnintstr.h" #include "windowstr.h" diff --git a/miext/shadow/shplanar.c b/miext/shadow/shplanar.c index 3a8f05a859..529f35c574 100644 --- a/miext/shadow/shplanar.c +++ b/miext/shadow/shplanar.c @@ -26,6 +26,8 @@ #include #endif +#include + #include #include "scrnintstr.h" #include "windowstr.h" diff --git a/miext/shadow/shplanar8.c b/miext/shadow/shplanar8.c index fc45a80862..8db584b43e 100644 --- a/miext/shadow/shplanar8.c +++ b/miext/shadow/shplanar8.c @@ -26,6 +26,8 @@ #include #endif +#include + #include #include "scrnintstr.h" #include "windowstr.h" diff --git a/miext/shadow/shrotpack.h b/miext/shadow/shrotpack.h index 7ed94fc1f9..7f3f241117 100644 --- a/miext/shadow/shrotpack.h +++ b/miext/shadow/shrotpack.h @@ -31,6 +31,8 @@ #include #endif +#include + #include #include "scrnintstr.h" #include "windowstr.h" diff --git a/randr/randr.c b/randr/randr.c index a0e49ab153..bcaa232c90 100644 --- a/randr/randr.c +++ b/randr/randr.c @@ -50,9 +50,6 @@ #include "picturestr.h" #endif #include -#ifdef EXTMODULE -#include "xf86_ansic.h" -#endif /* From render.h */ #ifndef SubPixelUnknown diff --git a/record/record.c b/record/record.c index 5809e00864..95b1bb8319 100644 --- a/record/record.c +++ b/record/record.c @@ -1,4 +1,4 @@ -/* $XdotOrg: xc/programs/Xserver/record/record.c,v 1.3 2005/04/20 12:25:47 daniels Exp $ */ +/* $XdotOrg: xserver/xorg/record/record.c,v 1.5 2005/07/03 07:02:08 daniels Exp $ */ /* $Xorg: record.c,v 1.4 2001/02/09 02:05:27 xorgcvs Exp $ */ /* @@ -46,12 +46,8 @@ and Jim Haggerty of Metheus. #include #include "set.h" -#ifndef XFree86LOADER #include #include -#else -#include "xf86_ansic.h" -#endif #ifdef PANORAMIX #include "globals.h" diff --git a/record/set.c b/record/set.c index 83fb0e7d75..8419e29004 100644 --- a/record/set.c +++ b/record/set.c @@ -55,12 +55,13 @@ from The Open Group. #include #endif +#include + #ifndef TESTING #include "misc.h" #else #include #include -#include /* stuff that you normally get from the X Server's environment */ @@ -93,11 +94,6 @@ void *Xcalloc(size) #include "set.h" -#ifdef XFree86LOADER -#include "xf86_libc.h" -#include "xf86_ansic.h" -#endif - static int maxMemberInInterval(pIntervals, nIntervals) RecordSetInterval *pIntervals; diff --git a/render/render.c b/render/render.c index 0f4bca92f7..6cd8621628 100644 --- a/render/render.c +++ b/render/render.c @@ -1,4 +1,4 @@ -/* $XdotOrg: xc/programs/Xserver/render/render.c,v 1.8 2005/07/01 10:05:43 lars Exp $ */ +/* $XdotOrg: xserver/xorg/render/render.c,v 1.12 2005/08/28 19:47:39 ajax Exp $ */ /* * $XFree86: xc/programs/Xserver/render/render.c,v 1.27tsi Exp $ * @@ -48,9 +48,6 @@ #include "glyphstr.h" #include #include "cursorstr.h" -#ifdef EXTMODULE -#include "xf86_ansic.h" -#endif static int ProcRenderQueryVersion (ClientPtr pClient); static int ProcRenderQueryPictFormats (ClientPtr pClient);