From 8850a5fc32c2f635f6b9aef4b82453623760966a Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 4 Jan 2002 18:47:01 +0000 Subject: [PATCH] We no longer need the xpm wrappers. --- include/ts_xpm.h | 27 --------------------------- tools/make_X11wrappers | 14 ++------------ tsx11/Makefile.in | 3 +-- tsx11/X11_calls | 2 -- tsx11/ts_xpm.c | 35 ----------------------------------- 5 files changed, 3 insertions(+), 78 deletions(-) delete mode 100644 include/ts_xpm.h delete mode 100644 tsx11/ts_xpm.c diff --git a/include/ts_xpm.h b/include/ts_xpm.h deleted file mode 100644 index e4e33966bae..00000000000 --- a/include/ts_xpm.h +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Thread safe wrappers around xpm calls. - * Always include this file instead of . - * This file was generated automatically by tools/make_X11wrappers - * DO NOT EDIT! - */ - -#ifndef __WINE_TS_XPM_H -#define __WINE_TS_XPM_H - -#ifndef __WINE_CONFIG_H -# error You must include config.h to use this header -#endif - -#ifdef HAVE_LIBXXPM - -#include - -extern void (*wine_tsx11_lock)(void); -extern void (*wine_tsx11_unlock)(void); - -extern int TSXpmCreatePixmapFromData(Display *, Drawable, char **, Pixmap *, Pixmap *, XpmAttributes *); -extern int TSXpmAttributesSize(void); - -#endif /* defined(HAVE_LIBXXPM) */ - -#endif /* __WINE_TS_XPM_H */ diff --git a/tools/make_X11wrappers b/tools/make_X11wrappers index b1a1ae02bd7..1fc5967ed3a 100755 --- a/tools/make_X11wrappers +++ b/tools/make_X11wrappers @@ -17,7 +17,7 @@ $X11_include_dir = "/usr/X11/include"; $outdir = "tsx11"; $wantfile = "$outdir/X11_calls"; -@dolist = ("Xlib", "Xresource", "Xutil", "xpm", "XShm", "xf86dga", "xf86dga2", "xf86vmode", "shape", "xvideo", "Xrender"); +@dolist = ("Xlib", "Xresource", "Xutil", "XShm", "xf86dga", "xf86dga2", "xf86vmode", "shape", "xvideo", "Xrender"); # First read list of wanted function names. @@ -70,10 +70,6 @@ foreach $name (@dolist) { $pre_file = "#ifdef HAVE_LIBXXSHM\n"; $post_file = "#endif /* defined(HAVE_LIBXXSHM) */\n"; } - if($name eq "xpm") { - $pre_file = "#ifdef HAVE_LIBXXPM\n"; - $post_file = "#endif /* defined(HAVE_LIBXXPM) */\n"; - } if($name eq "xf86vmode") { $x11_incl = "#include \n"; $extensions_dir = "extensions/"; @@ -140,13 +136,7 @@ $x11_incl#include END - if($name eq "xpm") { # Handle as special case. - output_fn("XpmCreatePixmapFromData", "int", - "Display *, Drawable, char **, Pixmap *, Pixmap *, XpmAttributes *", - "Display *a0, Drawable a1, char **a2, Pixmap *a3, Pixmap *a4, XpmAttributes *a5", - "a0, a1, a2, a3, a4, a5"); - output_fn("XpmAttributesSize", "int", "void", "void", ""); - } elsif($name eq "XShm") { + if ($name eq "XShm") { output_fn("XShmQueryExtension", "Bool", "Display *", "Display *a0", "a0"); output_fn("XShmQueryVersion", "Bool", diff --git a/tsx11/Makefile.in b/tsx11/Makefile.in index 7bdd247158e..44299e2b6d7 100644 --- a/tsx11/Makefile.in +++ b/tsx11/Makefile.in @@ -20,8 +20,7 @@ C_SRCS = \ ts_xresource.c \ ts_xvideo.c \ ts_xutil.c \ - ts_shape.c \ - ts_xpm.c + ts_shape.c all: libwine_tsx11.$(LIBEXT) diff --git a/tsx11/X11_calls b/tsx11/X11_calls index c7441e93bab..b010d6f1859 100644 --- a/tsx11/X11_calls +++ b/tsx11/X11_calls @@ -177,8 +177,6 @@ XUniqueContext XUnmapWindow XWarpPointer XXorRegion -XpmAttributesSize -XpmCreatePixmapFromData XrmGetFileDatabase XrmGetResource XrmGetStringDatabase diff --git a/tsx11/ts_xpm.c b/tsx11/ts_xpm.c deleted file mode 100644 index 1cd0899110d..00000000000 --- a/tsx11/ts_xpm.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Thread safe wrappers around xpm calls. - * This file was generated automatically by tools/make_X11wrappers - * DO NOT EDIT! - */ - -#include "config.h" - -#ifdef HAVE_LIBXXPM - -#include - -#include "ts_xpm.h" - - -int TSXpmCreatePixmapFromData(Display *a0, Drawable a1, char **a2, Pixmap *a3, Pixmap *a4, XpmAttributes *a5) -{ - int r; - wine_tsx11_lock(); - r = XpmCreatePixmapFromData(a0, a1, a2, a3, a4, a5); - wine_tsx11_unlock(); - return r; -} - -int TSXpmAttributesSize(void) -{ - int r; - wine_tsx11_lock(); - r = XpmAttributesSize(); - wine_tsx11_unlock(); - return r; -} - -#endif /* defined(HAVE_LIBXXPM) */ -