Fix 1996/jonth for macOS
The problem was the function pointer w(), which points to XCreateWindow(), did not have the parameters and this caused a segfault in macOS. Because it takes a lot of parameters I split the line up to multiple lines by having a '\' at the end of lines (the entire code is in #defined macros and two #includes).
This commit is contained in:
1 parent
6966c6f6be
commit
39143fc6bc
4 files changed
+10
-97
No files matched your search
@@ -16,8 +16,7 @@ make all
|
||||
NOTE: this entry requires `X11/Xlib.h` header file and the X11 library to
|
||||
compile. macOS users running Mountain Lion and later will need to download and
|
||||
install [XQuartz](https://www.xquartz.org) in order to compile and run this
|
||||
entry. But see [bugs.md](/bugs.md) for a known problem with running this under
|
||||
macOS and with a workaround of sorts plus more information on where it fails.
|
||||
entry.
|
||||
|
||||
|
||||
## To run:
|
||||
|
||||
+3
-1
@@ -2,7 +2,9 @@
|
||||
#define I 8;}t(p){r(p?W:o);XClearWindow(V,m);}main(i,f)char**f;{M((T(h=f),
|
||||
#define K Y(o,XMapRaised(V,e);)x=3;x--;)for(y=3;y--;r(G))XMapRaised(V,R[D]
|
||||
#define N z(x+i,(z(H-x-i,x),x)))x<i||z(x-i,x)|z(H-x+i,x)Y(W,)l=k;l>20&&l>x
|
||||
#define XIMOfIC Z;XID(*w)()=XCreateWindow,m,e,o[2],W[2],G[2],R[2][O]);}GC*g
|
||||
#define XIMOfIC Z;XID(*w)(Display*,Window,int,int,unsigned,unsigned,unsigned,\
|
||||
int,unsigned, Visual*,unsigned long,XSetWindowAttributes*)=XCreateWindow,\
|
||||
m,e,o[2],W[2],G[2],R[2][O]);}GC*g
|
||||
#define E (++D)));}r(XID*z){XSetWindowBackgroundPixmap(V=d[D],m=R[D][x][y],z[
|
||||
#define L ;XStoreName(V,e=w(V,RootWindow(V,s),0,0,152,152,2,0,1,0,0,0),"II"+D
|
||||
#define B 3][3];Display*V,*d[2];char**h,k=25,b[2500],H=50,D,s,x,y,i;T(){float
|
||||
|
||||
Reference in new issue
Block a user