diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-08-18 21:54:50 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-08-18 21:54:50 (GMT) |
commit | 416295a661f5c8f30dfe0751b5618c6a51173034 (patch) | |
tree | bfb19584bd766c6ab28ecf667323334f9aa4958b /macosx/tkMacOSXXStubs.c | |
parent | ef0195454b1d958bcad88274c0246d0ac81b781c (diff) | |
download | tk-416295a661f5c8f30dfe0751b5618c6a51173034.zip tk-416295a661f5c8f30dfe0751b5618c6a51173034.tar.gz tk-416295a661f5c8f30dfe0751b5618c6a51173034.tar.bz2 |
Fix signatures of many X11 functions on MacOSX: They have an "int" return value, not "void", which allows to check for errors.
Diffstat (limited to 'macosx/tkMacOSXXStubs.c')
-rw-r--r-- | macosx/tkMacOSXXStubs.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/macosx/tkMacOSXXStubs.c b/macosx/tkMacOSXXStubs.c index 13cba84..9d4f7db 100644 --- a/macosx/tkMacOSXXStubs.c +++ b/macosx/tkMacOSXXStubs.c @@ -435,7 +435,7 @@ XGetGeometry( return 1; } -void +int XChangeProperty( Display* display, Window w, @@ -447,6 +447,7 @@ XChangeProperty( int nelements) { Debugger(); + return Success; } void @@ -776,13 +777,14 @@ TkGetServerInfo( *---------------------------------------------------------------------- */ -void +int XChangeWindowAttributes( Display *display, Window w, unsigned long value_mask, XSetWindowAttributes *attributes) { + return Success; } void @@ -854,7 +856,7 @@ XSetWMClientMachine( } XIC -XCreateIC(void) +XCreateIC(XIM xim, ...) { Debugger(); return (XIC) 0; |