[PATCH v2 35/42] Remove Xorg-specific extensions from non-Xorg miinitext

Peter Hutterer peter.hutterer at who-t.net
Tue Dec 6 15:56:32 PST 2011


On Fri, Dec 02, 2011 at 11:27:43AM +0000, Daniel Stone wrote:
> miinitext.c had a completely separate codepath for non-Xorg servers,
> which included tests for Xorg-specific extensions such as
> XFree86-VidMode, which were external even to the Xorg DDX.  So we can
> just remove them, and the associated #undefs.
> 
> Signed-off-by: Daniel Stone <daniel at fooishbar.org>

Reviewed-by: Peter Hutterer <peter.hutterer at who-t.net>

> ---
> 
> v2: New.
> 
>  mi/miinitext.c |   23 +----------------------
>  1 files changed, 1 insertions(+), 22 deletions(-)
> 
> diff --git a/mi/miinitext.c b/mi/miinitext.c
> index ba8fcd7..78c1510 100644
> --- a/mi/miinitext.c
> +++ b/mi/miinitext.c
> @@ -84,9 +84,6 @@ SOFTWARE.
>  #include <dmx-config.h>
>  #undef XV
>  #undef DBE
> -#undef XF86VIDMODE
> -#undef XFreeXDGA
> -#undef XF86DRI
>  #undef SCREENSAVER
>  #undef RANDR
>  #undef XFIXES
> @@ -103,17 +100,10 @@ SOFTWARE.
>  
>  #ifdef HAVE_KDRIVE_CONFIG_H
>  #include <kdrive-config.h>
> -/* there must be a better way... */
> -#undef XFreeXDGA
> -#undef XF86DRI
> -#undef XF86VIDMODE
>  #endif
>  
>  #ifdef HAVE_XGL_CONFIG_H
>  #include <xgl-config.h>
> -#undef XFreeXDGA
> -#undef XF86DRI
> -#undef XF86VIDMODE
>  #endif
>  
>  #include "misc.h"
> @@ -296,17 +286,9 @@ InitExtensions(int argc, char *argv[])
>      if (!noScreenSaverExtension) ScreenSaverExtensionInit ();
>  #endif
>  
> -#if !defined(NO_HW_ONLY_EXTS)
> -#if defined(XF86VIDMODE)
> -    if (!noXFree86VidModeExtension) XFree86VidModeExtensionInit();
> -#endif
> -#if defined(XFreeXDGA)
> -    if (!noXFree86DGAExtension) XFree86DGAExtensionInit();
> -#endif
> -#if defined(DPMSExtension)
> +#if !defined(NO_HW_ONLY_EXTS) && defined(DPMSExtension)
>      if (!noDPMSExtension) DPMSExtensionInit();
>  #endif
> -#endif
>  
>  #ifdef XV
>      if (!noXvExtension) {
> @@ -323,9 +305,6 @@ InitExtensions(int argc, char *argv[])
>  #ifdef DBE
>      if (!noDbeExtension) DbeExtensionInit();
>  #endif
> -#if !defined(NO_HW_ONLY_EXTS) && defined(XF86DRI)
> -    if (!noXFree86DRIExtension) XFree86DRIExtensionInit();
> -#endif
>  #ifdef DMXEXT
>      DMXExtensionInit(); /* server-specific extension, cannot be disabled */
>  #endif
> -- 
> 1.7.7.3
> 
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
> 
Cheers,
  Peter


More information about the xorg-devel mailing list