summaryrefslogtreecommitdiffstats
path: root/generic/tkDecls.h
Commit message (Collapse)AuthorAgeFilesLines
* Deprecate Tk_MainEx() stub entry (TIP #512). Only has effect if compiled ↵jan.nijtmans2018-11-031-1/+1
| | | | with TK_NO_DEPRECATED=1
* Eliminate CONST86: Since Tk 8.7 only compiles with Tcl >= 8.6 anyway, we ↵jan.nijtmans2018-10-191-4/+4
| | | | | just can use "const" everywhere. typo's: occured -> occurred
* Change char *recordPtr to void *recordPtr in Tk_SetOptions() and friends. ↵jan.nijtmans2018-10-161-18/+18
| | | | This is 100% upwards compatible, and equivalent to TIP #494 done in Tcl. With this, a ton of (char *) type casts can be eliminated
* Eliminate all usage of CONST84, and fix a few MacOSX compiler warningsjan.nijtmans2018-08-121-35/+34
|
* Change flag NEW_STYLE_COMMANDS into OLD_STYLE_COMMANDS. This makes it easier ↵jan.nijtmans2018-08-081-1/+1
| | | | | to remove the deprecated part in the future. If building with Tcl > 8, Don't build the compatibility Tk_Photo* (From Tk < 8.4 or so) functions any more.
* Fix shimmering in the "style" Tcl_ObjType: If a Tk_Style cannot be found, ↵jan.nijtmans2017-11-281-0/+5
| | | | | don't convert the Tcl_Obj to a styleObjType, but handle the error-situation as other objTypes do. Also convert Tk_GetStyleFromObj() and Tk_FreeStyleFromObj() to macro's (but keep the entries in the stub table).
* No deprecation warnings when building Tk itself without -DTK_NO_DEPRECATION. ↵jan.nijtmans2017-08-311-15/+13
| | | | Re-generate tkDecls.h (formatting).
* If compiled with -DTK_NO_DEPRECATED, remove the functions ↵jan.nijtmans2017-05-021-18/+39
| | | | | Tk_PhotoPutBlock_NoComposite/Tk_PhotoPutZoomedBlock_NoComposite/Tk_PhotoExpand_Panic/Tk_PhotoPutBlock_Panic/Tk_PhotoPutZoomedBlock_Panic/Tk_PhotoSetSize_Panic, which only exist to make stub-enabled extensions work which used those old functions. Otherwise, mark those functions as deprecated, causing a compiler warning if the compiler supports this.
* 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 compatibilityjan.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
| |