summaryrefslogtreecommitdiffstats
path: root/generic/tkDecls.h
Commit message (Collapse)AuthorAgeFilesLines
* tag Tk_FreeXId() as deprecated. Remove the function from the build if ↵jan.nijtmans2017-01-171-1/+7
| | | | TK_NO_DEPRECATED is defined.
* Change Tk_FreeXId() into a macro.jan.nijtmans2016-08-121-0/+3
| | | A few end-of-line spacing eliminations.
* Put extern "C" guards around all stub table struct definitions, jan.nijtmans2013-10-311-3/+5
|\ | | | | | | | | so it is usable to be used for C++ compilers as well without the danger of modifying the calling convention. For tkDecls.h, ttkDecls.h tkIntXlibDecls.h is was no problem, because tk.h, tkTheme.h and Xlib.h already contain those guards. But not for the other *Decls.h files.
| * Put extern "C" guards around all stub table struct definitions, jan.nijtmans2013-10-311-3/+5
| | | | | | | | | | so it is usable to be used for C++ compilers as well without the danger of modifying the calling convention. For tkDecls.h, ttkDecls.h tkIntXlibDecls.h is was no problem, because tk.h, tkTheme.h and Xlib.h already contain those guards. But not for the other *Decls.h files.
| * Extend the public and private stub tables with dummy NULL entries, up to the ↵jan.nijtmans2013-02-151-0/+15
| |\ | | | | | | | | | size of the Tk 8.6 stub tables. This makes it easier to debug Tk extensions which use Tk 8.6 features but (erroneously) are attempted to be loaded in wish8.5
| | * Extend the public and private stub tables with dummy NULL entries, up to the ↵jan.nijtmans2013-02-151-0/+39
| | | | | | | | | | | | size of the Tk 8.6 stub tables. This makes it easier to debug Tk extensions which use Tk 8.5/8.6 features but (erroneously) are attempted to be loaded in wish8.4
| | * format tk.decls like tcl8.5/8.6, re-generiate tk(Int)Decls.hjan.nijtmans2012-04-061-621/+612
| | |
* | | Remove dead code. During 8.6 alpha/beta, ↵jan.nijtmans2013-03-281-10/+0
| | | | | | | | | | | | | | | | | | | | | Tk_DefineBitmap/Tk_GetBitmapFromData moved to stub entry 274/275 due to a signature change, but later that turned out not be necessary at all. The stub entries were kept in order not to lose binary compatibility for extensions that were compiled against beta 8.6 headers. Now that Tk 8.6 is final, this makes no sense any more.
* | | Simplification: don't declare struct types that are never used.jan.nijtmans2012-11-151-2/+2
| | |
* | | improving backwards compatibilityrfe_2636558jan.nijtmans2012-06-161-0/+10
| | |
* | | rfe-2636558 simplificationjan.nijtmans2012-06-151-24/+10
| | |
* | | Don't let tkDecls.h depend on <tchar.h> on windows, not even in UNICODE modejan.nijtmans2011-09-081-1/+2
| | |
* | | Purge RCS Keywordsdgp2011-06-081-2/+0
|\ \ \ | |/ /
| * | Purge RCS Keywords.dgp2011-06-081-2/+0
| |\ \ | | |/
| | * Purge RCS Keywords.dgp2011-06-081-2/+0
| | |
| * | fix genStubs.tcl in one place where it generated "void *" in stead of "VOID *"jan2011-03-271-2/+2
| | |
| * | Backport various formatting (spacing)nijtmans2010-02-071-677/+659
| | | | | | | | | | | | | | | | | | | | | changes from HEAD, so diffing between 8.5.x and 8.6 shows the real structural differences again. (any signature change not backported!)
* | | [FRQ 491789]: "setargv() doesn't support a unicodenijtmans2010-10-111-5/+9
| | | | | | | | | | | | cmdline" implemented for Tk on MSVC++
* | | [Patch 3034251]: Backport ttkGenStubs.tcl features to genStubs.tcl, partly:nijtmans2010-08-211-3/+3
| | | | | | | | | | | | Use void (*reserved$i)(void) = 0 instead of void *reserved$i = NULL for unused stub entries, in case pointer-to-function and pointer-to-object are different sizes.
* | | [Patch 3034251] partly: remove some more unneeded ifdeffery from stub header ↵nijtmans2010-08-191-1375/+9
| | | | | | | | | | | | files
* | | [Tcl Bug 3029891] Functions that don't belong in the stub table (Tk part, ↵nijtmans2010-07-161-1/+7
| | | | | | | | | | | | | | | | | | not really removed from the stub table, just disabled) [Bug 3027438] Tk_Main calls Tcl_CreateInterp before Tcl_FindExecutable
* | | CONSTify TkCopyAndGlobalEval, TkpSetMainMenubar,nijtmans2010-05-101-3/+3
| | | | | | | | | | | | | | | TkpMenuNotifyToplevelCreate, and TkSetWindowMenuBar Bring Tk_CreateBinding doc and signature (param name) in line.
* | | CONSTify everything related to Tk_ConfigSpecnijtmans2010-02-171-10/+11
| | |
* | | Follow-up to [2010-01-29] commit:nijtmans2010-02-051-193/+193
| | | | | | | | | | | | | | | prevent space within stub table function parameters if the parameter type is a pointer.
* | | genStubs.tcl: No longer generate a space afternijtmans2010-01-291-446/+429
| | | | | | | | | | | | | | | | | | "*" and immediately after a function name, so the format of function definitions in *Decls.h match all other *.h header files.
* | | CONSTify Tk_SetClassProcsnijtmans2010-01-101-3/+3
| | |
* | | [Feature Request 2636558] Tk_DefineBitmapnijtmans2009-02-271-15/+39
| | | | | | | | | | | | and Tk_GetBitmapFromData signature problem
* | | CONSTify Tk_ClipboardAppendnijtmans2009-01-021-3/+3
| | |
* | | modify Tk_Create(Old)ImageType signature, relaxingnijtmans2008-11-121-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the constraint that every Tk_ImageType can only be passed to this function once. This allows tkImg to be loaded in multiple interpreters in a thread-enabled build of Tk. This CONSTification complies with TIP #27. It is binary compatible with the old interface, but not fully source compatible (although tkImg does not suffer).
* | | One more (hopefully the last) signature changenijtmans2008-11-091-5/+5
| | | | | | | | | | | | in Tk_CreatePhotoImageFormat
* | | One more (hopefully the last) signature changenijtmans2008-11-091-3/+3
| | | | | | | | | | | | in Tk_CreateSmoothMethod.
* | | [Bug 2190619] Warnings due to Tk_SmoothMethodnijtmans2008-10-301-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | name constness change. Although dkf's solution (simply adding a type cast) is correct as well, changing the return value (as das suggested) has the advantage that all Tk_OptionPrintProc implementations don't need a type cast any more in its code. This makes all those functions robust against the -Wwrite-strings warning option. Further on, the customPtr field of Tk_ConfigSpec can be a constant, without any danger of source incompatibility.
* | | CONSTify TkPrintPadAmount, TkCreateFrame, TkCreateMainWindownijtmans2008-10-281-3/+3
| | | | | | | | | | | | | | | and Tk_ParseArgv. move TkSelGetSelection to internal stub table (needed in tkWinTest.c)
* | | Letting CONST die a slow and graceful death, since NO_CONST wasnijtmans2008-10-221-381/+381
| | | | | | | | | | | | broken since 8.4 and no-one complained about it.
* | | * generic/tkDecls.h: make genstubs (genStubs.tcl changes).das2008-04-081-7/+2
| | | | | | | | | | | | | | | * generic/tkIntPlatDecls.h: * generic/tkIntXlibDecls.h:
* | | * tkDecls.h: Reverted das's change of Tk's stubs pointersKevin B Kenny2008-04-081-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tkIntDecls.h: from 'extern' to 'EXTERN'. Since the stubs pointer * tkPlatDecls.h: is always linked statically, its wrong to import or export it from a DLL, and the change causes trouble for extensions that build with -DUSE_TK_STUBS. * tkWinEmbed.c: Removed #if 0 code. Trust the revision control system, if you need it again, you can find it. * tkWinSend.c: Added conditional compilation to silence several compiler warnings.
* | | * generic/tkDecls.h: make genstubsdas2008-04-021-15/+7
| | | | | | | | | | | | | | | | | | | | | | | | * generic/tkIntDecls.h: * generic/tkIntPlatDecls.h: * generic/tkIntXlibDecls.h: * generic/tkPlatDecls.h: * generic/tkStubInit.c:
* | | * README: Bump version number to 8.6a0dgp2008-04-011-1/+5
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tk.h: * library/tk.tcl: * macosx/Wish-Common.xcconfig: * unix/configure.in: * unix/tk.spec: * win/README: * win/configure.in: * win/tcl.m4: * unix/configure: autoconf-2.59 * win/configure: * generic/tkConsole.c: Relax Tcl_InitStubs() calls so that a Tk 8.6 * generic/tkMain.c: might [load] into a Tcl 8.5 interp. * generic/tkWindow.c: * generic/tkStubLib.c: Update to compatibility with a libtcl.so that contains no "tclStubsPtr" [Tcl Bug 1819422]. * generic/tkDecls.h: make genstubs * generic/tkIntDecls.h: * generic/tkIntPlatDecls.h: * generic/tkIntXlibDecls.h: * generic/tkPlatDecls.h:
* | [Tk Bug 1712081]dgp2007-05-141-1/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * unix/Makefile.in: Updates to account for new and deleted files * win/Makefile.in: tkStubImg.c and tkOldTest.c. * win/makefile.bc: * win/makefile.vc: * generic/tkOldTest.c (new): New file used to create testing * generic/tkTest.c: commands for testing various Tk * tests/constraints.tcl: legacy interfaces where a separate * tests/image.test: compilation unit is needed in order to #define suitable macros during compilation. Only the effect of USE_OLD_IMAGE on Tk_CreateImageType() is currently tested, but more similar testing commands can be added to this same file. New constraint defined to detect presence of the image type provided by the new testing code, and a few tests added to exercise it. Having USE_OLD_IMAGE support tested by the default test suite should reduce chance of a recurrence of this bug. * doc/CrtImgType.3: Revised docs to better indicate the legacy * doc/CrtPhImgFmt.3: nature of the interfaces supported by USE_OLD_IMAGE. * generic/tkDecls.h: make genstubs * generic/tkStubInit.c: * generic/tk.decls: Reworked USE_OLD_IMAGE support to use * generic/tk.h: the same support mechanisms both with * generic/tkStubImg.c (deleted):and without a stub-enabled build. In each case, route the legacy calls to Tk_CreateImageType and Tk_CreatePhotoImageFormat through the Tk_CreateOldImageType and Tk_CreateOldPhotoImageFormat routines. Add those routines to the public stub table so they're available to a stub-enabled extension. Remove the definition of Tk_InitImageArgs() and use a macro to convert any calls to it in source code into a comment. * generic/tkImage.c: Removed the MODULE_SCOPE declarations that * generic/tkImgPhoto.c: broke USE_OLD_IMAGE support.
* | various "const" additions, in line with TIP #27nijtmans2007-01-031-3/+4
| |
* | Use more portable string literalsdgp2006-12-181-835/+767
| |
* | Implemented TIP #264 - Tk_Interppatthoyts2006-10-081-1/+11
| |
* | * generic/tkDecls.h:das2005-05-291-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkIntPlatDecls.h: * generic/tkPlatDecls.h: * generic/tkStubInit.c: ran missing 'make genstubs' for TIP245 changes to tk.decls * macosx/tkMacOSXXStubs.c (Tk_ResetUserInactiveTime): use symbolic constant argument in call to UpdateSystemActivity(); * macosx/Wish.pbproj/project.pbxproj: * macosx/Wish.xcode/project.pbxproj: * unix/configure.in: added/corrected linking to IOKit.framework for TIP245. * unix/configure.in: skip X11 configure checks when building tk_aqua. * unix/configure: autoconf-2.59
* | * generic/tkInt.h: move TkGetOptionSpec to stubs intDeclshobbs2003-10-131-1/+802
| | | | | | | | | | | | | | | | | | | | * generic/tkIntDecls.h: * generic/tkInt.decls: * generic/tkStubInit.c: * tkDecls.h: updated with latest genstubs * tkIntPlatDecls.h: * tkIntXlibDecls.h: * tkPlatDecls.h:
* | TIP#116 implementation. Docs still to come, tests will never be done becausedkf2003-03-061-23/+61
|/ | | | | they could never be done portably as they'd inevitably depend on the total amount of memory available to the process... :^(
* Applied companion patch for Tcl Patch 585105,dgp2002-08-051-102/+107
| | | | | | | | | | | | | | | | | | | | | updating Tk to use Tcl 8.4's fully CONST-ified interface, and fully CONSTifying Tk at the same time. This patch includes purging Tk of its last direct access to interp->result. [Bug 589853] The substantial changes include copying event sequence strings into Tcl_DStrings in tkBind.c, and copying [text] indices into Tcl_DStrings because parsing them involved overwriting them. If this causes performance trouble, that can be resolved by further converting them to Tcl_Obj's. The #defines USE_NON_CONST and USE_COMPAT_CONST have the same effect for Tk as they do for Tcl. (They actually change tcl.h)
* Added TIP#48 style engine implementationdkf2002-06-181-1/+132
| | | | Frederic Bonnet to supply docs+tests as soon as possible.
* * generic/tk.decls: added TIP #84 implementation that adds ahobbs2002-06-151-1/+9
| | | | | | | | | * generic/tkDecls.h: Tk_CollapseMotionEvents API which controls * generic/tkEvent.c: Tk's collapsing of incoming motion events * generic/tkInt.h: on its windows. The default remains to do * generic/tkStubInit.c: collapsing. Added a flags parameter to the * generic/tkWindow.c: internal display structure to support this * doc/QWinEvent.3: and be used in the future for other bits.
* regendkf2002-06-141-11/+11
|
* TIP#98 implementation; improved photo image copy and GIF frame accessdkf2002-06-141-11/+32
|