summaryrefslogtreecommitdiffstats
path: root/generic/tclInt.h
Commit message (Collapse)AuthorAgeFilesLines
* [interim-merge-commit] back-ported branch sebres-clock-speedup (from trunk ↵sebres2017-05-101-0/+8
|\ | | | | | | to 8.6): tcl-clock functionality rewritten in C.
| * merge trunksebres2017-03-061-11/+13
| |\
| * \ merge sebres-trunk-timeratesebres2017-02-091-0/+12
| |\ \
| * | | code review and inline documentationsebres2017-01-101-0/+7
| | | |
| * | | improve LocalizeFormat, internal caching of localized formats inside msgcat ↵sebres2017-01-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | for locale and format objects smart reference introduced in dict (smart pointer with 0 object reference but increase dict-reference, provide changeable locale dict)
* | | | back-ported branch sebres_trunk_timerate (new command "timerate" for 8.6)sebres2017-05-091-0/+15
|\ \ \ \
| * \ \ \ merge trunksebres2017-03-061-11/+13
| |\ \ \ \ | | |_|/ / | |/| | / | | | |/ | | |/|
| | * | More internal use of size_t in stead of int, e.g. for epoch'sjan.nijtmans2017-02-151-6/+6
| | | |
| | * | In TclGetNumberFromObj() macro (tclExecute.c): Don't fill in type if ↵jan.nijtmans2017-02-031-5/+4
| | | | | | | | | | | | | | | | | | | | TCL_ERROR is returned: The caller doesn't do anything with this. Don't access (non-const) variable tclEmptyStringRep any more, use its value (&tclEmptyString) directly. Only keep it in tclPkg.c, for error checking.
| | * | If TCL_NO_DEPRECATED is defined, remove the "case" statement, and use much ↵jan.nijtmans2017-01-251-0/+2
| | | | | | | | | | | | | | | | less interp->result. Implementation mostly taken over from "novem". If TCL_NO_DEPRECATED is not defined, nothing changes.
| | * | Introduce new function TclInitThreadAlloc(), symmetric with ↵notifierjan.nijtmans2017-01-131-0/+1
| | | | | | | | | | | | | | | | TclFinalizeThreadAlloc()
| * | | [win] accomplished winTime module using very fast wide clicks, with ↵sebres2017-02-091-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | denominator scale to/from microseconds, and therefore more precise "timerate" results under windows (using similar mechanisms as by Mac OSX). Especially multi-threaded, because it works without lock opposite to microseconds (that use crictical section, because of the calibration thread). The reason for usage of wide clicks instead microseconds explains following example (shows 20% performance deference): % timerate -calibrate {} % timerate {clock microseconds} 5000 0.297037 µs/# 14465901 # 3366585 #/sec 4296.906 nett-ms % timerate {clock clicks} 5000 0.247797 µs/# 16869084 # 4035554 #/sec 4180.116 nett-ms
| * | | [timerate] bug fix: missing scale conversion by Mac OSX on platform where ↵sebres2017-02-091-0/+16
| | |/ | |/| | | | | | | | | | | | | | | | high resolution clicks are not microseconds based; [win] use high resolution timer for the wide clicks and microseconds directly, prevent several forwards/backwards conversions; [win, unix, mac-osx] normalize some functions for common usage in different time units (clicks, micro- and nanoseconds)
| * | missing entry of tclInt.h addedsebres2017-01-091-0/+3
| |/
| * TIP [http://www.tcl.tk/cgi-bin/tct/tip/459|459] implementation, but (for ↵jan.nijtmans2017-01-041-0/+5
| |\ | | | | | | | | | now) without the "source -nopkg" part.
| | * Bring back stub table in original state.jan.nijtmans2016-12-081-2/+6
| | |\ | | | | | | | | Merge trunk
| | * | Complete implementation, tests and documentationjan.nijtmans2016-11-281-0/+1
| | | |
| | * | Starting implementing the "package files" command. TIP still to be written.jan.nijtmans2016-11-241-0/+1
| | | |
| * | | Eliminate the internal macro/function TclNewIntObj: In all cases ↵jan.nijtmans2016-12-231-9/+2
| | |/ | |/| | | | | | | TclNewLongObj is just as good.
| * | Created a new "proper bytearray" Tcl_ObjType so we can use bytearraysdgp2016-12-011-2/+1
| | | | | | | | | as bytearrays without all this fussing about over purity.
| * | Route all [string repeat] operations through a common implementation.dgp2016-11-301-0/+2
| |/ | | | | | | | | Code that to preserve bytearrays, eliminate unnecessary string rep generation, increase efficiency, and encapsulate access to internal rep details.
| * Make compileEpoch "unsigned int", and start counting at 1.jan.nijtmans2016-11-241-1/+1
| |
| * Use more "size_t" in stead of "int" internall. Also eliminate a lot of ↵jan.nijtmans2016-11-161-13/+13
| | | | | | | | type-casts which are not necessary any more.
| * Route all [string last] operations through a common implementation.dgp2016-11-081-1/+3
| |
| * First draft refactoring the [string first] functionality.dgp2016-11-041-0/+2
| |
| * WIPdgp2016-10-281-2/+3
| |
| * Start bringing all `string cat` operations into one place so it can be codeddgp2016-10-271-0/+2
| | | | | | correctly one time instead of badly multiple times.
| * Fix [d4e7780ca1681cd095dbd81fe264feff75c988f7|d4e7780ca1]: "global" cmd ↵jan.nijtmans2016-09-071-4/+6
| |\ | | | | | | | | | literal sharing vs. per-interp resolvers
| * | [0363f0146c] Fix [array startsearch] id handling to support var name variationsdgp2016-07-191-1/+0
| | |
| * | New private flag value INDEX_TEMP_TABLE.dgp2016-07-131-0/+9
| | | | | | | | | | | | | | | | | | | | | Used to signal to Tcl_GetIndexFromObj*() routines that the table in which lookups are done has a fleeting existence. Thus there is no value in caching any results, since the cache can never be useful. Improvement over existing hackery where cache is stored and then freed to avoid bogus results. Likely candidate to eventually push to the public interface.
| * | Make hash type changable by compiling with -DTCL_HASH_TYPE=size_t (for ↵jan.nijtmans2016-07-121-1/+1
| | | | | | | | | | | | example). Default (unsigned) cannot be changed in Tcl 8.x, that must wait until Tcl 9.
| * | merge 8.6dgp2016-07-091-0/+15
| |\ \
| * \ \ Merge core-8-6-branch: jan.nijtmans2016-07-071-2/+2
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New tests to demo the remaining flaw in ensemble dispatch revisions. Itcl 4 also demonstrated these [bd7f17bce8] Revise ensemble dispatch to call TclNREvalObjv() which supports the TCL_EVAL_INVOKE Simplify all the Tcl_NRPostProc declarations Create and use a utility Tcl_NRPostProc when decr ref count of values is all that is needed Bugfix [5d7ea04580]. Treat .cmd and .ps1 files are executable on Windows
| * \ \ \ [4402cfa58c] Rework the spell check machinery into something that will not ↵dgp2016-07-011-21/+5
| |\ \ \ \ | | | | | | | | | | | | | | | | | | be foiled by value sharing.
| * | | | | Disable special hacks for Itcl 3 ensemble error message generation.dgp2016-07-011-0/+13
| | | | | | | | | | | | | | | | | | Migration paths are in place to bring this to an end.
| * | | | | Fix [e14c77b845] for MSVC6: Compilation error over typedefjan.nijtmans2016-06-091-3/+2
| |\ \ \ \ \
| * \ \ \ \ \ Fix [e14c77b845]: Compilation error over typedef.jan.nijtmans2016-06-021-1/+3
| |\ \ \ \ \ \
| * | | | | | | Rename UtfCount() to TclUtfCount() and use it in more places. Suggested by ↵jan.nijtmans2016-04-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pspjuth here: [e99a79a32650e7e5]
| * | | | | | | Two micro-optimizations in Win and UNIX notifier. See: ↵jan.nijtmans2016-04-011-0/+1
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | [http://code.activestate.com/lists/tcl-core/15645/]
| | * \ \ \ \ \ \ - Undo unix notifier changes: too risky at this moment. jan.nijtmans2016-03-251-1/+3
| | |\ \ \ \ \ \ \ | | |/ / / / / / / | |/| | | | | | | | | | | | | | | | - Merge trunk - (cherry-pick from dhr-micro-optimization): Micro-optimization: remove double checked lock from TclGetAllocCache in favour of initialization in TclInitSubsystems
| | * | | | | | | (experiment) Use TclpMasterLock() in stead of a separate notifierInitMutex. ↵jan.nijtmans2016-03-211-0/+1
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | One less mutex to be worried about.
* | | | | | | | Let local variables declared from within macro's always start with ↵jan.nijtmans2017-05-091-29/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | underscore, this fixes some gcc warnings with -Wshadow.
* | | | | | | | A better way of getting source file location information when disassembling.dkf2017-04-221-2/+3
| | | | | | | |
* | | | | | | | Compile [clock clicks], [clock microseconds], [clock milliseconds] and ↵Kevin B Kenny2017-03-151-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [clock seconds].
* | | | | | | | Make 'clock' and 'encoding' into compilable ensembles that play with safe ↵kbk_clock_encoding_ensemblesKevin B Kenny2017-03-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | interps
* | | | | | | | Make 'clock' and 'encoding' into proper compilable ensemblesKevin B Kenny2017-03-141-4/+1
| |_|_|_|_|_|/ |/| | | | | |
* | | | | | | Proposed patch for [d4e7780ca1681cd095dbd81fe264feff75c988f7|d4e7780ca1], by ↵jan.nijtmans2016-09-021-4/+6
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | Gustaf Neumann
* | | | | | [1493a43044] Make [namespace upvar] ignore variable resolvers; the previous ↵dkf2016-07-091-0/+15
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | | | | | | | | situation was completely unintuitive.
| * | | | | Expose the AVOID_RESOLVERS flag to [namespace upvar] implementations, which ↵bug_1493a43044dkf2016-07-071-0/+15
| | |_|_|/ | |/| | | | | | | | | | | | | seem to need it.
* | | | | Create and use a utility Tcl_NRPostProc when decr ref count of values isdgp2016-07-061-0/+1
| | | | | | | | | | | | | | | all that is needed.