On Friday, 10 January 2014 at 22:07:41 UTC, Paulo Pinto wrote:
Am 10.01.2014 22:16, schrieb Gary Willoughby:
On Friday, 10 January 2014 at 20:57:51 UTC, Paulo Pinto wrote:
I used to be an heavy Tcl/Tk user on Windows NT/2000 during 1999 - 2001.

Tk only imports X11 on UNIX platforms.

http://core.tcl.tk/tk/tree?ci=tip

--
Paulo

Looking at tk.h i see this:

#ifndef _XLIB_H
#   if defined(MAC_OSX_TK)
#    include <X11/Xlib.h>
#    include <X11/X.h>
#   else
#    include <X11/Xlib.h>
#   endif
#endif

Which intimates to me that all platforms include it? Then tkDecls.h uses
types that the X11 headers define, e.g (XColor):

EXTERN int Tk_CanvasPsColor(Tcl_Interp *interp, Tk_Canvas canvas, XColor
*colorPtr);


Yes, but if you cared to look at the rest of the code, you would have seen that those X11 calls are mapped to Win32 ones.

Maybe I should have expressed myself better.

--
Paulo

I might be a bit tired here but i'm still not understanding what you mean. In tk.h, X11 is included for all platform AFAICS and the X11 types are use for many cross-platform functions parameters.

Reply via email to