summaryrefslogtreecommitdiffstats
path: root/generic/tkCursor.c
Commit message (Collapse)AuthorAgeFilesLines
* Use (char *)NULL sentinelsjan.nijtmans2025-06-261-2/+2
|
* Fix [0189a9ae39]: Use of Tk_Uid in Tk APIjan.nijtmans2024-09-021-5/+5
|\
| * Fix [0189a9ae39]: Use of Tk_Uid in Tk APIjan.nijtmans2024-09-021-1/+1
| |\
| | * Fix [0189a9ae39]: Use of Tk_Uid in Tk API. Also change ↵jan.nijtmans2024-09-011-5/+5
| |/ |/| | | | | Tk_GetCursorFromData(), so it doesn't need Tk_Uid's any more
* | Add TkLengthOne() function, just as TclLengthOne() in Tcl, for optimization ↵jan.nijtmans2024-07-101-1/+1
| | | | | | | | within Tk internal objTypes. No need to define TCL_OBJTYPE_V0 in tclInt.h anymore (Tcl 8.7+ has it)
| * (backport) Add TkLengthOne() function, just as TclLengthOne() in Tcl, for ↵jan.nijtmans2024-07-101-1/+1
|/ | | | optimization within Tk internal objTypes. Only functional when compiling with Tcl 9.0 headers
* Use Tcl_NewBooleanObj() where appropriatejan.nijtmans2024-05-011-2/+2
|\
* | More -1 -> TCL_INDEX_NONE. More TCL_UNUSED(jan.nijtmans2023-03-121-2/+2
| |
* | Merge core-8-6-branch: Eradicate uses of sprintf because it triggers ↵fvogel2023-01-181-1/+5
|\ \ | |/ | | | | deprecation warning on macOS Ventura. Resolve conflicts. Remove sprintf calls specific to the main branch.
| * Factorise definition of snprintf in tkWinInt.h (MSVC before 2015 didn't know ↵fvogel2023-01-141-6/+2
| | | | | | | | snprintf).
| * Eradicate uses of sprintf because it triggers deprecation warning on macOS ↵fvogel2023-01-101-1/+9
| | | | | | | | Ventura. Only a single instance left in TkpPrintWindowId() (tkWinWindow.c).
* | Make Tk compile/run either with or without TIP #644: Make Tcl_ObjType extensiblejan.nijtmans2022-11-151-6/+8
| |
* | use PTR2INT herejan.nijtmans2022-10-301-1/+1
| |
* | Make everything work (again) with Tcl 8.6 toojan.nijtmans2022-10-301-1/+1
|\ \ | |/
| * Add more implicit type-casts. Backported from 8.7jan.nijtmans2021-04-231-16/+14
| |
| * Eliminate "register" keyword. Use more TCL_UNUSED()jan.nijtmans2021-03-231-2/+2
| |
* | (c) -> ©jan.nijtmans2020-12-091-2/+2
| |
* | Much more WIP: Appears to be working on UNIX, and for a bit part on Windows too.jan.nijtmans2019-12-201-14/+14
| |
* | Merge 8.6jan.nijtmans2019-09-261-1/+1
|\ \ | |/
| * Better fix for [2026405]: winfo id bug in cygwin build. jan.nijtmans2019-09-261-1/+1
| | | | | | Actually, formatting of %p is libc-specific, now that we have TCL_Z_MODIFIER we can make it platform-independant for all cases.
* | Merge 8.6jan.nijtmans2019-01-101-3/+3
|\ \ | |/
| *-. Merge 8.6 and all changes from original [bug-9e31fd9449] branchjan.nijtmans2019-01-081-3/+7
| |\ \
| | | * Bring back more original "None" usages, and fix other warnings which ↵jan.nijtmans2019-01-031-3/+3
| | | | | | | | | | | | | | | | | | | | gradually slipped in. Wherever possible, pragma's are used in MSVC to silence useless compiler warnings.
| * | | As requested by Christian Werner/François Vogel and others: Undo many None ↵jan.nijtmans2018-12-311-5/+1
| |\ \ \ | | | |/ | | |/| | | | | | | | | -> 0 changes, in order to reduce the probability of merge conflicts with other branches. Remark: Many usages of "None" in Tk are wrong, "NULL" should be used in many places where pointers are referenced in stead of XID's. Those places are corrected.
| | * | As requested by Christian Werner/François Vogel and others: Undo many None ↵jan.nijtmans2018-12-311-1/+4
| | | | | | | | | | | | | | | | | | | | -> 0 changes, in order to reduce the probability of merge conflicts with other branches. Remark: Many usages of "None" in Tk are wrong, "NULL" should be used in many places where pointers are referenced in stead of XID's. Those places are corrected.
| * | | Fix [9e31fd9449]: X11/X.h and Windows.h have conflicting symbols jan.nijtmans2018-12-201-3/+3
| |\ \ \ | | |/ / | | | / | | |/ | |/| *** POTENTIAL INCOMPATIBILITY *** for Win32 only: On X11 and Mac, "None" can still be used as before
| | * Fix [9e31fd944934e269121fa78ff56b7b86f33e6db6|9e31fd9449]: X11/X.h and ↵jan.nijtmans2018-12-201-6/+3
| | | | | | | | | | | | | | | Windows.h have conflicting symbols. Also fix a few newer (harmless) gcc warnings.
* | | Eliminate USE_OLD_TAG_SEARCH: It isn't used and tested any more.jan.nijtmans2018-12-081-2/+2
| | | | | | | | | Eliminate a ton of unnecessary type casts
* | | One more round of int -> size_t improvements (inspired by TIP #494, but then ↵jan.nijtmans2018-10-171-6/+4
|/ / | | | | | | for Tk).
* | Much more cleaning up of result handling.dkf2012-07-231-2/+6
| |
* | [Bug 3486474]: Inconsistent color scalingjan.nijtmans2012-02-151-2/+2
|\ \ | |/
| * [Bug 3486474]: Inconsistent color scalingjan.nijtmans2012-02-151-2/+2
| |\
| | * proposed fix for bug-3486474jan.nijtmans2012-02-101-2/+2
| | |
* | | Purge RCS Keywordsdgp2011-06-081-2/+0
|\ \ \ | |/ /
| * | Purge RCS Keywords.dgp2011-06-081-2/+0
| |\ \ | | |/
| | * Purge RCS Keywords.dgp2011-06-081-2/+0
| | |
| | * * generic/tkCursor.c: Add missing initialization in debug routine.dgp2004-09-241-1/+4
| | |
| | * * generic/tkCursor.c: s/GetCursor/TkcGetCursor as Windows has ahobbs2003-04-181-7/+7
| | | | | | | | | | | | GetCursor func already, which causes compiler warnings.
* | | Remove casts from uses of ckalloc/ckfree/... now that Tcl declares them to bedkf2011-03-121-2/+2
| | | | | | | | | using useful casts internally.
* | | [Tcl Bug 2857044]: Corrections following audit of Tcl_ObjType freeingdkf2009-11-211-10/+19
| | | | | | | | | | | | | | | | | | | | | practises; the typePtr field is now cleared when an object ceases to be of the type. Also remove some anachronistic techniques (pointless casts, mixed assignments and tests, etc.)
* | | CONSTify TkDebugBorder, TkStringToKeysym, TkDebugBitmapnijtmans2009-01-091-2/+2
| | | | | | | | | | | | | | | TkDebugColor, TkDebugCursor, TkDebugFont All those mods TIP #27 complient, no incompatibility risks.
* | | Lots of small changes to make code more pretty and C89-like.dkf2008-11-081-2/+2
| | |
* | | Add "const" to many internalnijtmans2008-10-151-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.
* | | Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-26/+27
|/ /
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | * generic/tkArgv.c: Fix gcc warnings about 'cast to/fromdas2007-10-151-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkCanvUtil.c: pointer from/to integer of different * generic/tkCanvas.c: size' on 64-bit platforms by casting * generic/tkCursor.c: to intermediate types * generic/tkInt.h: intptr_t/uintptr_t via new PTR2INT(), * generic/tkListbox.c: INT2PTR(), PTR2UINT() and UINT2PTR() * generic/tkObj.c: macros. * generic/tkStyle.c: * generic/tkTextIndex.c: * generic/tkUtil.c: * generic/ttk/ttkTheme.h: * generic/ttk/ttkTreeview.c: * unix/tkUnixMenu.c: * unix/configure.in: * unix/configure: autoconf-2.59 * unix/tkConfig.h.in: autoheader-2.59
* | header cleanupdgp2007-09-071-2/+1
| |
* | various "const" additions in implementationnijtmans2007-01-031-2/+2
| |
* | Lots of ANSIfying of function decls.dkf2005-11-171-12/+12
| | | | | | | | Also a few spots where code has been cleaned up more completely.
* | More bits of ANSIfyingdkf2005-11-111-229/+230
| |