summaryrefslogtreecommitdiffstats
path: root/generic/tkTest.c
Commit message (Collapse)AuthorAgeFilesLines
* Whitespace fixesjan.nijtmans2016-06-151-1/+1
|\
* | Make tk.h usable for compilation with Tcl 9.0 (novem) as well.jan.nijtmans2016-03-151-1/+1
|/
* Eliminate last two calls to Tcl_CreateCommand().jan.nijtmans2014-06-301-21/+21
|
* two more (test-)command converted to Tcl_Obj APIjan.nijtmans2014-06-271-29/+28
|
* Convert TkpTestembedCmd and TkpTesttextCmd to Tcl_Obj-based commands.jan.nijtmans2014-06-031-24/+25
|
* Make "send" (and "testsend") use the Tcl_Obj API.jan.nijtmans2014-05-261-1/+1
|\
| * Make "send" (and "testsend") use the Tcl_Obj API.jan.nijtmans2014-05-231-1/+1
| |
* | Convert "testwinevent", "testmetrics" and "testdeleteapps" for using the ↵jan.nijtmans2014-05-261-24/+24
|/ | | | Tcl_Obj API.
* Eliminate all usage of __WIN32__ macro: Some compilers (e.g. Clang/LLVM) ↵jan.nijtmans2014-02-101-12/+12
| | | | | don't define it, and _WIN32 is much more portable anyway. See: [http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system#WindowsCygwinnonPOSIXandMinGW]
* Make sure that in test-cases, Tk_DeleteOptionTable() is never called more ↵jan.nijtmans2013-08-011-3/+7
| | | | times than the corresponding Tk_CreateOptionTable(). Although it doesn't crash now, this behavior cannot be depended on.
* Some more fixes for Cygwin32/64 in win32 GUI mode. jan.nijtmans2013-06-131-5/+5
|\ | | | | | | Now that this is fully working, eliminate all usage of WISH_BUILD_LIB_SPEC: TK_BUILD_LIB_SPEC can be used everywhere in stead. Remove some old carbon-leftovers from configure/make (see [3607215]).
| * Some more fixes for Cygwin32/64 in win32 GUI mode. jan.nijtmans2013-06-131-5/+5
| | | | | | | | Now that this is fully working, eliminate all usage of WISH_BUILD_LIB_SPEC: TK_BUILD_LIB_SPEC can be used everywhere in stead. Add tk.pc
* | Eliminate usage of Tcl_PkgProvide/Tcl_PkgRequire functions, use the 'Ex' ↵jan.nijtmans2013-02-151-1/+1
| | | | | | | | versions in stead.
* | some more int -> size_t changesjan.nijtmans2013-02-011-6/+6
| |
* | typojan.nijtmans2013-02-011-1/+1
| |
* | Use internalRep.twoPtrValue.ptr1 in stead of internalRep.otherValuePtr ↵jan.nijtmans2013-02-011-5/+5
|\ \ | |/ | | | | | | everywhere. Change some internal "length" variables from type int to type size_t, so it could handle bigger string sizes (for "novem")
| * Eliminate all usage of deprecated Tcl_EvalObj, Tcl_GlobalEval and ↵jan.nijtmans2013-01-111-2/+2
| |\ | | | | | | | | | | | | | | | | | | Tcl_GlobalEvalObj functions. Add [file normalize] to pkgIndex.tcl, in order to prevent '..' in file paths. Remove unused TCLPATCHL, it should be ".0" for all final releases. Enable tk.h to be used with higher tcl.h versions which might lack _ANSI_ARGS_
| | * Eliminate all usage of deprecated Tcl_EvalObj, Tcl_GlobalEval and ↵jan.nijtmans2013-01-111-2/+2
| | | | | | | | | | | | | | | | | | Tcl_GlobalEvalObj functions. Add [file normalize] to pkgIndex.tcl, in order to prevent '..' in file paths. Remove unused TCLPATCHL, it should be ".0" for all final releases.
| | * More complete purge of things only present for supporting long-dead Mac 9 ↵dgp2012-11-151-14/+14
| | | | | | | | | | | | systems.
| * | SetOptions.3: minor doc fixjan.nijtmans2012-06-191-38/+38
| |\ \ | | |/ | | | | | | make various other tables const (all backported from Tk 8.6)
| | * SetOptions.3: minor doc fixjan.nijtmans2012-06-191-10/+10
| | | | | | | | | | | | make various other tables CONST (All backported from Tk 8.6)
| * | make some internal tables constjan.nijtmans2012-04-181-2/+2
| |\ \ | | |/
| | * make some more internal tables CONSTjan.nijtmans2012-04-181-2/+2
| | |
* | | Convert all Tcl_SetResult calls to Tcl_SetObjResult calls. jan.nijtmans2013-01-281-6/+4
| | | | | | | | | Convert Tcl_GetStringFromObj to Tcl_GetString when possible.
* | | more places convertedjan.nijtmans2013-01-241-10/+10
| | |
* | | Replace various functions calls, for functions which are small wrappers ↵jan.nijtmans2013-01-141-6/+6
| | | | | | | | | | | | around other functions, to call the wrapped function directly.
* | | frq-3536507: clientData field in Tk_OptionSpec should be "const void *"frq_3536507jan.nijtmans2012-06-201-10/+10
| | |
* | | Purge RCS Keywordsdgp2011-06-081-2/+0
|\ \ \ | |/ /
| * | Purge RCS Keywords.dgp2011-06-081-2/+0
| |\ \ | | |/
| | * Purge RCS Keywords.dgp2011-06-081-2/+0
| | |
| | * * unix/tcl.m4 (Darwin): add 64bit support, check for Tiger copyfile(),das2005-11-271-31/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add CFLAGS to SHLIB_LD to support passing -isysroot in env(CFLAGS) to configure (flag can't be present twice, so can't be in both CFLAGS and LDFLAGS during configure), don't use -prebind when deploying on 10.4, define TCL_IO_TRACK_OS_FOR_DRIVER_WITH_BAD_BLOCKING (rdar://3171542). (SC_ENABLE_LANGINFO, SC_TIME_HANDLER): add/fix caching, fix obsolete autoconf macros. Sync with tk/unix/tcl.m4, sync whitespace with HEAD. * unix/configure.in: fix obsolete autoconf macros, sync gratuitous formatting/ordering differences with tcl/unix/configure.in. * unix/Makefile.in: add CFLAGS to wish/tktest link to make executable linking the same as during configure (needed to avoid loosing any linker relevant flags in CFLAGS, in particular flags that can't be in LDFLAGS). Avoid concurrent linking of wish and compiling of tkTestInit.o during parallel make, fix dependencies and flags for building tkMacOSXInit.o (checkstubs, checkexports): dependency and Darwin fixes * macosx/tkMacOSXEvent.c (TkMacOSXProcessEvent): * macosx/tkMacOSXEvent.h: * macosx/tkMacOSXMouseEvent.c (TkMacOSXProcessMouseEvent): * macosx/tkMacOSXCarbonEvents.c: install standard application event handler, add & call functions to start and stop carbon even timer that runs the tcl event loop periodically during a nested carbon event loop in the toolbox (e.g. during menutracking) to ensure tcl timers etc continue to fire, register app event handler for menu tracking and HI command carbon events, move menu event handling to new handlers for those carbon events, no longer register for/handle appleevent carbon event (now dealt with by standard application event handler), event debugging code dynamically acquires carbon event debugging functions to allow use on Tiger where they are no longer exported from HIToolbox. * macosx/tkMacOSXFont.c (TkMacOSXUseAntialiasedText): * macosx/tkMacOSXKeyEvent.c (GetKeyboardLayout): * macosx/tkMacOSXCarbonEvents.c (TkMacOSXInitCarbonEvents): * macosx/tkMacOSXInit.c: * macosx/tkMacOSXInt.h: abstract common code to dynamically acquire address of a named symbol (from a loaded dynamic library) into new function TkMacOSXGetNamedSymbol() and macro TkMacOSXInitNamedSymbol. * macosx/tkMacOSXMenu.c (TkpNewMenu): * macosx/tkMacOSXMenubutton.c (MenuButtonInitControl): * macosx/tkMacOSXMenus.c (TkMacOSXHandleMenuSelect): switch to modern utf8 aware menu manager API, remove obsolete code, add error handling. * macosx/tkMacOSXMouseEvent.c: define OSX 10.3 or later only constants if necessary to allow compilation on OSX 10.2 * macosx/tkMacOSXWm.c (UpdateSizeHints): remove code that is never executed. * generic/tk.h: add/correct location of version numbers in macosx files. * generic/tkInt.h: clarify fat compile comment. * macosx/Wish.pbproj/default.pbxuser (new file): * macosx/Wish.pbproj/jingham.pbxuser: * macosx/Wish.pbproj/project.pbxproj: sync with HEAD. * macosx/buildTkConfig.tcl (removed): remove obsolete build files. * macosx/README: clarification/cleanup, sync with HEAD, document universal (fat) builds via CFLAGS (i.e. ppc and i386 at the same time). * macosx/Makefile: add support for reusing configure cache, build target fixes. * generic/tkMenu.c: * macosx/tkMacOSXButton.c: * macosx/tkMacOSXDebug.c: * macosx/tkMacOSXDebug.h: * macosx/tkMacOSXDialog.c: * macosx/tkMacOSXDraw.c: * macosx/tkMacOSXEntry.c: * macosx/tkMacOSXMenu.c: * macosx/tkMacOSXMouseEvent.c: * macosx/tkMacOSXXStubs.c: * macosx/tkMacOSXSubwindows.c: * xlib/xgc.c: declare functions and globals used only in own file as static, #ifdef out a few Xlib and aqua functions that are never called (sync with HEAD). * macosx/tkMacOSXPort.h: * generic/tkInt.decls: correct signature of TkMacOSXHandleMenuSelect, add XSync to aqua Xlib stubs. * generic/tkTest.c: #ifdef unix only declarations. (TestmetricsCmd): unify win and mac implementation. * generic/tkTextDisp.c: * generic/tkTextBTree.c: * macosx/tkMacOSXInit.c: * macosx/tkMacOSXKeyEvent.c: * macosx/tkMacOSXWindowEvent.c: * macosx/tkMacOSXXStubs.c: fix gcc 4 warnings. * macosx/tkMacOSXNotify.c: * macosx/tkMacOSXTest.c: sync with HEAD. * generic/tkIntPlatDecls.h: * generic/tkIntXlibDecls.h: * generic/tkStubInit.c: * unix/configure: regen.
| | * * generic/tkTest.c: disable commands not available on TkAqua.das2005-05-241-4/+4
| | |
* | | Remove casts from uses of ckalloc/ckfree/... now that Tcl declares them to bedkf2011-03-121-20/+18
| | | | | | | | | using useful casts internally.
* | | [Patch 3009998]: Replace binding procedures with ordinary event handlersjenglish2010-06-191-122/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in win/tkWinScrlbr.c and carbon/tkMacOSXScrlbr.c. Simplifications enabled by previous change: * TkCreateBindingProcedure() and associated machinery no longer needed. * TkBindDeadWindow() no longer needed. * TK_DEFER_MODAL_LOOP and associated machinery no longer needed. * Tests related to C binding procedures no longer needed.
* | | Eliminate many unnecessary (ClientData) type casts.nijtmans2010-06-151-11/+10
| | |
* | | Use @EXEEXT@ in stead of @EXT_SUFFIX@nijtmans2010-02-221-2/+2
| | | | | | | | | | | | | | | Use -DBUILD_tk in Makefile Make internal Tk_ObjCustomOption const
* | | Tiny whitespace changes for readability improvement.dkf2010-02-211-3/+3
| | |
* | | fix more gcc warnings: missing initializernijtmans2010-01-181-24/+25
| | | | | | | | | | | | | | | Apply patch [#2932808]: Canvas items not updating on widget state change
* | | Make all internal initializationnijtmans2009-11-291-25/+2
| | | | | | | | | | | | | | | | | | routines MODULE_SCOPE copy win/tcl.m4 from Tcl (latest) to Tk and regenerate win/configure
* | | Compile tkTest.c and friends with Stubsnijtmans2009-11-191-1/+23
| | |
* | | * generic/tkFocus.c: fix potential null dereference flagged by clangdas2009-09-071-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkMenu.c: static analyzer. * generic/tkTextBTree.c: * generic/tkTextDisp.c: * generic/tkTextIndex.c: * generic/tkConsole.c: silence false positives from clang static * generic/tkTest.c: analyzer about potential null dereference. * generic/tkText.c: * generic/tkTextBTree.c: * generic/tkTextTag.c: * generic/tkVisual.c:
* | | modify Tk_Create(Old)ImageType signature, relaxingnijtmans2008-11-121-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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).
* | | more internal -Wwrite-strings warning fixesnijtmans2008-10-301-4/+4
| | |
* | | Add "const" to many internalnijtmans2008-10-171-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Greatly clean up Tk's handling of the writability of the Tcl result object.dkf2008-10-051-3/+3
| | |
* | | fix [2021443] inconsistant "wrong # args" messages (for Tk)nijtmans2008-07-231-3/+3
| | |
* | | Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-37/+37
|/ /
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | header cleanupdgp2007-09-071-2/+1
| |
* | Fix for [Bug 1788019] "tkTest.c compiler warning".jenglish2007-09-041-4/+5
| |