Remove old xlib error handler code and files

darcs
wayo.cavazos 2006-02-23 23:59:58 +00:00
parent e2c4e97621
commit 6e76d076ca
3 changed files with 0 additions and 21 deletions

View File

@ -1,3 +0,0 @@
gcc -c simple-error-handler.c
gcc -L /usr/X11R6/lib -shared -o simple-error-handler.so \
simple-error-handler.o -lX11

View File

@ -1,13 +0,0 @@
#include <stdio.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
int SimpleErrorHandler ( Display* dpy, XErrorEvent* event ) {
char msg[255];
printf ( "X11 : SimpleErrorHandler called!!!\n\n" ) ;
XGetErrorText ( dpy, event->error_code, msg, sizeof msg ) ;
printf ( "X error (%#lx): %s", event->resourceid, msg ) ;
return 0 ;
}
void SetSimpleErrorHandler() { XSetErrorHandler( SimpleErrorHandler ) ; }

View File

@ -1,5 +0,0 @@
USING: compiler alien xlib ; IN: simple-error-handler
LIBRARY: simple-error-handler
"simple-error-handler" "simple-error-handler.so" "cdecl" add-library
FUNCTION: void SetSimpleErrorHandler ( ) ;
\ SetSimpleErrorHandler compile