summaryrefslogtreecommitdiffstats
path: root/generic/tclTimer.c
Commit message (Collapse)AuthorAgeFilesLines
* restore all #ifdef TCL_WIDE_INT_IS_LONG, which were accidently removed in ↵jan.nijtmans2013-08-141-0/+6
| | | | [19ff9b95e1]
* merge trunkjan.nijtmans2013-05-061-6/+0
|\
* \ Eliminate use of NO_WIDE_TYPE everywhere: It's exactly the same as ↵jan.nijtmans2013-04-231-1/+1
|\ \ | |/ | | | | TCL_WIDE_INT_IS_LONG
| * Implement Tcl_NewBooleanObj, Tcl_DbNewBooleanObj and Tcl_SetBooleanObj as ↵jan.nijtmans2013-04-231-1/+1
| |\ | | | | | | | | | | | | | | | macros using Tcl_NewIntObj, Tcl_DbNewLongObj and Tcl_SetIntObj. Starting with Tcl 8.5, this is exactly the same, it only eliminates code duplication. Eliminate use of NO_WIDE_TYPE everywhere: It's exactly the same as TCL_WIDE_INT_IS_LONG
* | \ Convert Tcl_GetIndexFromObj implementation to macrojan.nijtmans2013-01-241-2/+2
|\ \ \ | |/ /
* | | remove unnecessary struct names, which only pollute the "struct" namespace ↵jan.nijtmans2012-08-201-1/+1
|/ / | | | | | | for te compiler.
* | more result generation conversiondkf2012-08-031-4/+5
| |
* | Factor out constant that must be the same in multiple places. Prompted by adkf2012-05-251-6/+3
| | | | | | conversation with Alexandre Ferrieux.
* | Reduce use of Tcl_AppendElement, which is not (and can't be) a Tcl_Obj-aware ↵dkf2011-05-091-3/+5
| | | | | | | | API.
* | More generation of error codes ([format], [after], [trace], RE optimizer).dkf2011-04-041-14/+20
| |
* | Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-15/+15
| | | | | | rest of Tcl source code. No ABI change. API change *should* be harmless.
* | Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-2/+0
|\ \ | |/ | | cause more harm than good. Purged them (except in zlib files).
| * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-021-2/+0
| |\ | | | | | | more harm than good. Purged them.
| | * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-011-2/+0
| | | | | | | | | more harm than good. Purged them.
| | * Bug 1350293Kevin B Kenny2005-11-091-2/+3
| | |
| | * Tcl_ClearChannelHandlers(): bail out early if passed NULL argumentvasiljevic2005-10-041-3/+6
| | |
| | * purge outdated commentdgp2005-03-231-4/+2
| | |
| | * * generic/tclTimer.c: Removed a premature optimisation thatKevin B Kenny2004-09-071-14/+4
| | | | | | | | | | | | | | | | | | attempted to store the assoc data in the client data; the optimisation caused a bug that [after] would overwrite its imports. [Bug 1016167]
* | | Stop small [afters] from wasting CPU [Bug 2905784] while keeping accuracy.ferrieux2010-10-291-5/+21
| | |
* | | Pure whitespace changes, changing to follow Engineering Manual style.dkf2010-02-241-3/+3
| | |
* | | Minor formatting issuesdkf2009-12-281-7/+6
| | |
* | | * generic/tclExecute.c: fix potential uninitialized variable use anddas2009-09-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclFCmd.c: null dereference flagged by clang static * generic/tclProc.c: analyzer. * generic/tclTimer.c: * generic/tclUtf.c: * generic/tclExecute.c: silence false positives from clang static * generic/tclIO.c: analyzer about potential null dereference. * generic/tclScan.c: * generic/tclCompExpr.c:
* | | - eliminate some unnessary type castsnijtmans2009-02-101-3/+3
| | | | | | | | | | | | | | | - some internal const decorations - spacing
* | | Style fixes (unfouling whitespace, sorting comments, removing useless casts, ↵dkf2009-01-091-22/+19
| | | | | | | | | | | | etc.)
* | | TIP #337 IMPLEMENTATIONdgp2008-12-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/BackgdErr.3: Converted internal routine * doc/interp.n: TclBackgroundException() into public routine * generic/tcl.decls: Tcl_BackgroundException(). * generic/tclEvent.c: * generic/tclInt.decls: * generic/tclDecls.h: make genstubs * generic/tclIntDecls.h: * generic/tclStubInit.c: * generic/tclIO.c: Update callers. * generic/tclIOCmd.c: * generic/tclInterp.c: * generic/tclTimer.c: *** POTENTIAL INCOMPATIBILITY only for extensions using the converted internal routine ***
* | | Style improvements - invoking callbacks without visual junk.dkf2008-10-261-4/+4
| | |
* | | Add "const" to many internalnijtmans2008-10-161-4/+4
| | | | | | | | | | | | | | | const tables. No functional or API change.
* | | fix [2021443] inconsistant "wrong # args" messagesnijtmans2008-07-191-3/+3
| | |
* | | TIP 285 ImplementationJoe Mistachkin2008-06-131-2/+32
| | |
* | | Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-3/+3
|/ /
* | * generic/tclTimer.c (AfterProc): Replace Tcl_EvalEx() withdgp2008-01-221-9/+1
| | | | | | | | | | Tcl_EvalObjEx() to evaluate [after] callbacks. Part of trend to favor compiled execution over direct evaluation.
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | * generic/tclInt.decls: New internal routine TclBackgroundException()dgp2007-09-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclEvent.c: that for the first time permits non-TCL_ERROR exceptions to trigger [interp bgerror] handling. Closes a gap in TIP 221. When falling back to [bgerror] (which is designed only to handle TCL_ERROR), convert exceptions into errors complaining about the exception. * generic/tclInterp.c: Convert Tcl_BackgroundError() callers to call * generic/tclIO.c: TclBackgroundException(). * generic/tclIOCmd.c: * generic/tclTimer.c: * generic/tclIntDecls.h: make genstubs * generic/tclStubInit.c:
* | TIP#270 IMPLEMENTATIONdgp2006-11-151-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tcl.decls: New public routines Tcl_ObjPrintf, * generic/tclStringObj.c: Tcl_AppendObjToErrorInfo, Tcl_Format, * generic/tclInt.h: Tcl_AppendLimitedToObj, Tcl_AppendFormatToObj and Tcl_AppendPrintfToObj. Former internal versions removed. * generic/tclDecls.h: make genstubs * generic/tclStubInit.c: * generic/tclBasic.c: Updated callers. * generic/tclCkalloc.c: * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCmdMZ.c: * generic/tclCompExpr.c: * generic/tclCompile.c: * generic/tclDictObj.c: * generic/tclExecute.c: * generic/tclIORChan.c: * generic/tclIOUtil.c: * generic/tclMain.c: * generic/tclNamesp.c: * generic/tclObj.c: * generic/tclPkg.c: * generic/tclProc.c: * generic/tclStrToD.c: * generic/tclTimer.c: * generic/tclUtil.c: * unix/tclUnixFCmd.c:
* | * generic/tclCompExpr.c: fix gcc warnings about 'cast to/fromdas2006-11-131-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclEncoding.c: pointer from/to integer of different * generic/tclEvent.c: size' on 64-bit platforms by casting to * generic/tclExecute.c: intermediate types intptr_t/uintptr_t * generic/tclHash.c: via new PTR2INT(), INT2PTR(), * generic/tclIO.c: PTR2UINT() and UINT2PTR() macros. * generic/tclInt.h: [Patch 1592791] * generic/tclProc.c: * generic/tclTest.c: * generic/tclThreadStorage.c: * generic/tclTimer.c: * generic/tclUtil.c: * unix/configure.in: * unix/tclUnixChan.c: * unix/tclUnixPipe.c: * unix/tclUnixPort.h: * unix/tclUnixTest.c: * unix/tclUnixThrd.c: * unix/configure: autoconf-2.59 * unix/tclConfig.h.in: autoheader-2.59
* | * generic/tclBasic.c: Further revised TclAppendPrintToObj() anddgp2006-11-021-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclCkalloc.c: TclObjPrintf() routines to panic when unable * generic/tclCmdAH.c: to complete their formatting operations, rather * generic/tclCmdIL.c: than report an error message. This means an * generic/tclCmdMZ.c: interp argument for error message recording is * generic/tclDictObj.c: no longer needed, further simplifying the * generic/tclExecute.c: interface for callers. * generic/tclIORChan.c: * generic/tclIOUtil.c: * generic/tclInt.h: * generic/tclMain.c: * generic/tclNamesp.c: * generic/tclParseExpr.c: * generic/tclPkg.c: * generic/tclProc.c: * generic/tclStringObj.c: * generic/tclTimer.c: * generic/tclUtil.c: * unix/tclUnixFCmd.c:
* | fix warningdas2006-10-311-2/+1
| |
* | * generic/tclBasic.c: Refactored and renamed the routinesdgp2006-10-311-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclCkalloc.c: TclObjPrintf, TclFormatObj, and * generic/tclCmdAH.c: TclFormatToErrorInfo to a new set of * generic/tclCmdIL.c: routines TclAppendPrintfToObj, * generic/tclCmdMZ.c: TclAppendFormatToObj, TclObjPrintf, and * generic/tclDictObj.c: TclObjFormat, with the intent of making * generic/tclExecute.c: the latter list, plus TclAppendLimitedToObj * generic/tclIORChan.c: and TclAppendObjToErrorInfo, public via * generic/tclIOUtil.c: a revised TIP 270. * generic/tclInt.h: * generic/tclMain.c: * generic/tclNamesp.c: * generic/tclParseExpr.c: * generic/tclPkg.c: * generic/tclProc.c: * generic/tclStringObj.c: * generic/tclTimer.c: * generic/tclUtil.c: * unix/tclUnixFCmd.c:
* | More fixing which struct stat to refer to. Some casts from time_t to int ↵patthoyts2006-09-261-4/+4
| | | | | | | | | | | | | | required. Tcl_Time structure members are longs. Support for varying compiler options and build to platform-specific subdirs.
* | Export stubs for libtommath; fix mingw compiler warningsKevin B Kenny2005-12-131-2/+2
| |
* | bugs 1350291 and 1350293Kevin B Kenny2005-11-091-57/+79
| |
* | Convert to using ANSI decls/definitions and using the (ANSI) assumption that ↵dkf2005-10-311-69/+70
| | | | | | | | | | | | NULL can be cast to any pointer type transparently.
* | Tcl_DeleteTimerHandler(): bail out early if passed NULL argument.vasiljevic2005-10-041-3/+6
| |
* | * generic/tclBasic.c: More callers of TclObjPrintf anddgp2005-09-151-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclCkalloc.c: TclFormatToErrorInfo. * generic/tclCmdMZ.c: * generic/tclExecute.c: * generic/tclIORChan.c: * generic/tclMain.c: * generic/tclProc.c: * generic/tclTimer.c: * generic/tclUtil.c: * unix/tclUnixFCmd.c * unix/configure: autoconf-2.59
* | Getting more systematic about styledkf2005-07-241-295/+301
| |
* | Fix an odd [after]-and-limits problem. [Bug 1221395]dkf2005-06-171-35/+71
| |
* | Merged kennykb-numerics-branch back to the head; TIPs 132 and 232Kevin B Kenny2005-05-101-1/+1
| |
* | purge outdated commentdgp2005-03-231-4/+2
| |
* | Upgrade the capabilities of time limits by allowing them to fire in the midstdkf2004-12-161-14/+74
| | | | | | | | of the processing of the event loop or during a blocking [after]. [Bug 1085023]
* | * generic/tclBasic.c:dgp2004-10-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclBinary.c: * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCmdMZ.c: * generic/tclCompExpr.c: * generic/tclDictObj.c: * generic/tclEncoding.c: * generic/tclExecute.c: * generic/tclFCmd.c: * generic/tclHistory.c: * generic/tclIndexObj.c: * generic/tclInterp.c: * generic/tclIO.c: * generic/tclIOCmd.c: * generic/tclNamesp.c: * generic/tclObj.c: * generic/tclPkg.c: * generic/tclResult.c: * generic/tclScan.c: * generic/tclTimer.c: * generic/tclTrace.c: * generic/tclUtil.c: * generic/tclVar.c: It is a poor practice to directly set or append to the value of the objResult of an interp, because that value might be shared, and in that circumstance a Tcl_Panic() will be the result. Searched for example of this practice and replaced with safer alternatives, often using the Tcl_AppendResult() routine that dkf just rehabilitated.