summaryrefslogtreecommitdiffstats
path: root/generic/tkOption.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge trunkjan.nijtmans2020-02-141-1/+1
|\
| * Merge 8.6jan.nijtmans2020-02-141-1/+1
| |\
| | * A few missing (internal) "const" modifiers.jan.nijtmans2020-02-141-1/+1
| | |
* | | Much more WIP: Appears to be working on UNIX, and for a bit part on Windows too.jan.nijtmans2019-12-201-35/+36
|/ /
* | Merge 8.6jan.nijtmans2019-07-021-1/+1
|\ \ | |/
| * Don't use "struct ThreadSpecificData", while the type name ↵jan.nijtmans2019-07-021-1/+1
| | | | | | | | "ThreadSpecificData" is already sufficient.
| * Proposed fix for ticket [766ef52f31].Joe Mistachkin2018-10-191-1/+4
| |
* | The 'option readfile' sub-command should maintain existing list structure ↵Joe Mistachkin2018-11-101-1/+4
| | | | | | | | for values. Fix for [766ef52f31]. Cherrypick of [5550a1383b].
* | more size_t related code cleanupjan.nijtmans2018-10-041-2/+2
| |
* | Make Tk sufficiently 64-bit aware in order to withstand TIP #494 possible ↵jan.nijtmans2018-07-101-1/+0
| | | | | | | | problems
* | Ongoing work (not finished yet) making Tk fully 64-bit size_t aware (see TIP ↵jan.nijtmans2018-07-091-2/+4
|/ | | | #494) without compatibility macros
* Re-implement tkoption readfile using Tcl_ReadCharsjan.nijtmans2016-02-021-32/+8
|
* Fixed bug [9e606527af] - && instead of & used in generic/tkOption.cfvogel2016-01-201-1/+1
|
* Fix [477949]: option readfile cannot use multibytes. jan.nijtmans2015-10-251-2/+11
|\ | | | | Implementation adopted from AndroWish, but added support for UTF-8 BOM and added test-case.
| * Fix [477949]: option readfile cannot use multibytes. jan.nijtmans2015-10-251-2/+11
| | | | | | Implementation adopted from AndroWish, but added support for UTF-8 BOM and added test-case.
* | Fix [0aa5e852dc]: Accept newline characters as value in Tk option filesjan.nijtmans2013-11-111-7/+18
|\ \ | |/
| * Fix [0aa5e852dc]: Accept newline characters as value in Tk option filesjan.nijtmans2013-11-111-7/+18
| |
* | more places convertedjan.nijtmans2013-01-241-1/+1
| |
* | Merge core-8-5-branchjan.nijtmans2013-01-241-2/+2
|\ \ | |/ | | Various Tcl_GetIndexFromObj -> Tcl_GetIndexFromObjStruct changes.
* | more reorganization of error codes: safety is common failure modedkf2012-07-301-1/+1
| |
* | Much more cleaning up of result handling.dkf2012-07-231-14/+16
| |
* | Working towards adding all the Tcl_SetErrorCode calls that should be there.dkf2012-07-161-17/+14
| | | | | | ** WORK IN PROGRESS **
* | Purge RCS Keywordsdgp2011-06-081-2/+0
|\ \ | |/
| * Purge RCS Keywords.dgp2011-06-081-2/+0
| |\
| | * Purge RCS Keywords.dgp2011-06-081-2/+0
| | |
| | * * generic/tkWindow.c (DeleteWindowsExitProc): added commentshobbs2006-03-301-2/+6
| | | | | | | | | | | | | | | * generic/tkOption.c (TkOptionDeadWindow): handle OptionThreadExitProc being called before DeleteWindowsExitProc.
* | | Remove casts from uses of ckalloc/ckfree/... now that Tcl declares them to bedkf2011-03-121-14/+12
| | | | | | | | | using useful casts internally.
* | | use -pipe for gcc on win32 (mingw/cygwin)nijtmans2010-02-131-5/+7
| | | | | | | | | | | | | | | | | | make sure that TkpCmapStressed is exported clean up unused Tk_CreatePhotoOption Make more internal arrays "const"
* | | - eliminate some unnessary type castsnijtmans2009-02-031-3/+3
| | | | | | | | | | | | | | | - some internal const decorations - spacing
* | | more internal -Wwrite-strings warning fixesnijtmans2008-10-301-3/+3
| | |
* | | Add "const" to many internalnijtmans2008-10-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | const tables, so those will be put by the C-compiler in the TEXT segment in stead of the DATA segment. This makes those table sharable in shared libraries.
* | | Use ckrealloc to resize arrays...dkf2008-08-211-11/+7
| | |
* | | Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-40/+37
|/ /
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | Tidy up some variable types.patthoyts2007-11-171-2/+3
| |
* | header cleanupdgp2007-09-071-2/+1
| |
* | Cleaning up whitespace, comments, declarations. No functional changes.dkf2007-06-241-30/+30
| |
* | Tackle [Bug 1711985]dkf2007-05-031-6/+5
| |
* | Eliminate use of (VOID*) casts when calling memset or memcpy.dkf2007-04-171-6/+6
| |
* | * generic/tkOption.c (TkOptionDeadWindow): handlehobbs2006-03-301-2/+6
| | | | | | | | OptionThreadExitProc being called before DeleteWindowsExitProc.
* | Lots of ANSIfying of function decls.dkf2005-11-171-74/+74
| | | | | | | | Also a few spots where code has been cleaned up more completely.
* | Getting more systematic about styledkf2005-08-101-395/+371
|/ | | | | Also start removing _ANSI_ARGS_; the core's required ANSI C for a while now Also fix [Bug 1252702]; size_t doesn't mix with Tcl_GetStringFromObj
* Applied companion patch for Tcl Patch 585105,dgp2002-08-051-4/+4
| | | | | | | | | | | | | | | | | | | | | 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)
* * generic/tkBind.c (TkBindDeadWindow):mdejong2002-06-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Handle case where Tk_DestroyWindow is invoked on clipboard and send windows. * generic/tkClipboard.c (TkClipCleanup): Invoke Tk_DestroyWindow to cleanup the dispPtr->clipWindow. Call Tcl_Preserve and Tcl_Release on the window to avoid an invalid memory ref on shutdown. * generic/tkEvent.c (Tk_HandleEvent): Panic if XCreateIC is invoked twice for the same window. This should never happen, the check were just added to make sure it does not since this could lead to crashes in XCloseIM. * generic/tkFocus.c (TkFocusDeadWindow): Handle case where Tk_DestroyWindow is invoked on clipboard and send windows. * generic/tkOption.c (TkOptionDeadWindow): Ditto. * generic/tkWindow.c (TkCloseDisplay): Move deletion of dispPtr->winTable after TkpCloseDisplay call since Tk_DestroyWindow uses it and could be called by TkpCloseDisplay for clipboard/send windows. Also invoke ckfree for the dispPtr instead of doing it in TkpCloseDisplay. (Tk_DestroyWindow): Check for a null winPtr->mainPtr before doing certain cleanup tasks so the we can invoke Tk_DestroyWindow on clipboard and send windows. We need to do this so that XDestroyIC will get invoked for the input contexts of each window. * mac/tkMacXStubs.c (TkpCloseDisplay): Don't free the displayPtr since this is now done in TkCloseDisplay. * unix/tkUnixEvent.c (TkpCloseDisplay, OpenIM): Remove conditional compilation around calls to XCloseIM since I am confident that the crashes related to input contexts has been fixed. Don't free the displayPtr since this is now done in TkCloseDisplay. * unix/tkUnixSend.c (TkSendCleanup): Invoke the Tk_DestroyWindow method to cleanup the special send window. This will call XDestroyIC and thereby avoid a crash in XCloseIM. The send window needs to be Tcl_Preserve and Tcl_Release to avoid an invalid memory ref on shutdown. * win/tkWinX.c (TkpCloseDisplay): Don't free the displayPtr since this is now done in TkCloseDisplay.
* * generic/tkOption.c (Tk_GetOption): Allocatemdejong2002-06-151-2/+2
| | | | | | memory with ckalloc not malloc. This keeps Tk from erroring out when built with TCL_MEM_DEBUG.
* * generic/tkOption.c (OptionThreadExitProc): freed tsd optionhobbs2002-04-121-1/+38
| | | | | stacks on thread exit. (Tk_GetOption): free mem used to get Tk_Uid
* * generic/tkOption.c (ReadOptionFile): fixed Tcl_Seek casting tohobbs2002-02-221-3/+3
| | | | remove warnings (we expect no option files with be > 2GB).
* * Updated callers of Tcl_SplitList and Tcl_Merge.dgp2002-01-251-6/+7
| | | | | | | | | * Updated callers of Tcl_GetStringResult. Rewrote PrintScrollFractions to ScrollFractions to stop scribbling directly on interp->result. * Updated callers of Tcl_GetVar, Tcl_GetVar2 * Updated callers of Tcl_SplitPath, Tcl_JoinPath, and Tcl_TranslateFileName.
* * Updates to handle change in type of tablePtrdgp2002-01-171-2/+2
| | | | | argument of Tcl_GetIndexFromObj(Struct) from (char **) to (CONST char **). [TIP 27] [Patch 504705]
* Added additional comments regarding the internal representation of theericm2000-05-301-1/+30
| | | | option database.