Remove old xlib error handler code and files
parent
e2c4e97621
commit
6e76d076ca
|
@ -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
|
|
@ -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 ) ; }
|
|
@ -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
|
Loading…
Reference in New Issue