summaryrefslogtreecommitdiffstats
path: root/generic/tclBasic.c
Commit message (Collapse)AuthorAgeFilesLines
* merge core-8-6-branchjan.nijtmans2017-06-071-5/+5
|\
| * Tcl_GetWideIntFromObj() -> TclGetWideIntFromObj(), and minor other ↵jan.nijtmans2017-06-071-5/+5
| | | | | | | | simplifications/optimizations. No functional change.
* | Merge core-8-6-branch. This removes the work currently being done in ↵jan.nijtmans2017-06-021-1/+0
|\ \ | |/ | | | | | | "sebres-8-6-clock-speedup-cr1" branch, but that will be merged again as soon as the work is done. All other changes in "trunk" since then (e.g. the INST_STR_CONCAT1 performance improvement, and the removal of SunOS-4) are retained.
* | merge trunk (to sebres-trunk-timerate)sebres2017-05-111-7/+54
|\ \
| * \ merge core-8-6-branchjan.nijtmans2017-04-141-1/+1
| |\ \ | | |/
| | * Don't use "0%o" format in test-cases, as it suggest's it's the normal way to ↵jan.nijtmans2017-04-141-1/+1
| | | | | | | | | | | | | | | format octal numbers: it isn't. Better use "%#o". Add tests for "format" and "scan" corner-cases which weren't documented (except in TIP's) neither had tests before.
| * | merge core-8-6-branchjan.nijtmans2017-04-121-1/+31
| |\ \ | | |/
| | * bug fix for [42202ba1e5ff566e0f9abb9f890e460fbc6c1c5c]: segfault by coro injectfix_42202ba1e5ff566esebres2017-04-041-1/+31
| | | | | | | | | | | | rewritten callback for ::tcl::unsupported::inject, without leave the interpreter in unusable state (inaccurate environment exchange by adding eval callback), test covered now.
| * | Remove some unnecessary "struct" definitions and some type casts no longer ↵jan.nijtmans2017-04-111-1/+1
| | | | | | | | | | | | necessary. No functional changes.
| * | If compiled with TCL_NO_DEPRECATED, the functions ↵jan.nijtmans2017-04-061-1/+1
| | | | | | | | | | | | TclpGetDate/TclpLocaltime/TclpGmtime can be removed: They are internal and not used for anything any more.
| * | If compiled with TCL_NO_DEPRECATED, remove some more stub entries which are ↵jan.nijtmans2017-03-201-0/+6
| | | | | | | | | | | | not used any more.
| * | If Tcl is compiled with -DTCL_NO_DEPRECATED, make sure that ↵jan.nijtmans2017-03-171-0/+10
| | | | | | | | | | | | iPtr->(resultSpace|appendResult|appendAvl|appendUsed) are not used any more.
| * | Make 'clock' and 'encoding' into compilable ensembles that play with safe ↵Kevin B Kenny2017-03-141-5/+6
| |\ \ | | |/ | | | | | | interps
| | * 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-5/+5
| | |
* | | merge trunksebres2017-03-061-6/+5
|\ \ \ | |/ /
| * | More internal use of size_t in stead of int, e.g. for epoch'sjan.nijtmans2017-02-151-1/+1
| | |
| * | In TclGetNumberFromObj() macro (tclExecute.c): Don't fill in type if ↵jan.nijtmans2017-02-031-1/+1
| | | | | | | | | | | | | | | 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-1/+1
| | | | | | | | | | | | less interp->result. Implementation mostly taken over from "novem". If TCL_NO_DEPRECATED is not defined, nothing changes.
| * | Merge core-8-6-branch. jan.nijtmans2017-01-111-3/+2
| |\ \ | | |/ | | | | | | Do gcc-compiles with the option -Wwrite-strings, so we can detect mis-usage of "const". Make Tcl_AddErrorInfo() and Tcl_AddObjErrorInfo() a macro.
* | | New performance measurement routine "timerate" in opposition to "time" the ↵sebres2017-01-091-0/+1
|/ / | | | | | | | | | | | | | | | | execution limited by fixed time (in milliseconds) instead of repetition count (more precise results, to prevent very long execution time it is no more necessary to estimate repetition count) Syntax: timerate ?-direct? ?-calibrate? ?-overhead double? command ?time?
* | Remove dup line.dgp_cmd_epochdgp2016-12-021-6/+5
| |
* | Reports from NSF that command epoch bumping isn't properly timed.dgp2016-12-011-7/+16
| | | | | | | | | | | | | | | | http://paste.tclers.tk/4030 Since the epoch should bump to indicate when Tcl_FindCommand() would produce a different result from the cached value, the bump ought to be connected to the state change that would have that effect. This checkin appears to be the more correct answer, and it makes the Delete path get into agreement with the Rename path. Review would be good.
* | Make compileEpoch "unsigned int", and start counting at 1.jan.nijtmans2016-11-241-1/+1
| |
* | More internal use of size_t in stead of int.jan.nijtmans2016-11-211-4/+2
| |
* | Use more "size_t" in stead of "int" internall. Also eliminate a lot of ↵jan.nijtmans2016-11-161-9/+9
| | | | | | | | type-casts which are not necessary any more.
* | Micro-optimization: Use TclGetStringFromObj in stead of Tcl_GetStringFromObj ↵jan.nijtmans2016-07-081-7/+7
| | | | | | | | in many places where possible.
* | Merge core-8-6-branch: jan.nijtmans2016-07-071-7/+14
|\ \ | |/ | | | | | | | | | | 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
| * Create and use a utility Tcl_NRPostProc when decr ref count of values isdgp2016-07-061-6/+13
| | | | | | all that is needed.
| * Simplify all the Tcl_NRPostProc declarations.dgp2016-07-061-1/+1
| |
* | Tcl_SetVar -> Tcl_SetVar2 and comparable replacements, eliminating functions ↵jan.nijtmans2016-06-291-4/+4
| | | | | | | | which are deprecated.
* | Route all ensemble rewrite activity through a few utility routines.dgp2016-06-281-4/+2
|\ \ | |/
| * Appears that the TclInitRewriteEnsemble() routine was created with an intentdgp2016-05-241-4/+2
| | | | | | to refactor, but never actually got used. Work on continuing that effort.
* | Allow unstable Tcl releases to use unstable packages by default (this makes ↵jan.nijtmans2016-03-111-2/+3
|\ \ | |/ |/| | | "package require Tk" find the expected 8.7a0 version in stead of 8.6). Make many "package" test-cases work even when the environment variable TCL_PKG_PREFER_LATEST is set.
| * Let Tcl 8.7 allow Tk 8.7 to be used by defaultjn_Tcl_requirementjan.nijtmans2016-03-091-1/+1
|/
* Update comment with TIP number.tclPlatformEngineJoe Mistachkin2016-01-191-1/+1
|
* Add the tcl_platform(engine) element, TIP to be written.Joe Mistachkin2016-01-141-0/+7
|
* Cherrypick [812a81812ebf89d2416059d45fabd27e45603f5e|812a81812e]: Turn off ↵jan.nijtmans2015-11-221-3/+0
| | | | NRE asserts by default. About a 5% speedup on [clock format].
* explicitly ignore Tcl_PushCallFrame and TclPushStackFrame return value - it ↵Miguel Sofer2015-08-011-10/+2
| | | | is always TCL_OK. Inconsistency found by coverity (CID 1251197)
* Another round of refCount consistancy improvements.jan.nijtmans2015-07-021-15/+15
|
* improve comments for TclMarkTailcall and friendsMiguel Sofer2015-04-081-3/+10
|
* fix comments describing tailcall implementationMiguel Sofer2015-03-231-2/+2
|
* more commentsmig_tailcall_cleanupMiguel Sofer2015-03-231-2/+42
|
* updated, improved tailcall commentsMiguel Sofer2015-03-231-24/+21
|
* merge trunkdkf2014-02-081-10/+29
|\
| * [a4494e28ed] Use flag bit instead of NULL pointer to suppressdgp2014-02-061-10/+29
| |\ | | | | | | | | | | | | | | | teardown list of imported commands when the original command gets re-created. This prevents the panic otherwise possible when the invalid state represented by the NULL pointer is encountered during a command delete trace.
| | * [a4494e28ed] Use flag bit instead of NULL pointer to suppress teardown list ofdgp2014-02-061-10/+29
| | | | | | | | | | | | | | | imported commands when the original command gets re-created. This prevents the panic otherwise possible when the invalid state represented by the NULL pointer is encountered during a command delete trace.
* | | merge trunkdkf2014-02-031-14/+9
|\ \ \ | |/ /
| * | minor tidying updkf2014-01-221-3/+2
| | |
| * | [a90d9331bc]: must not crash when yieldto called in vanishing namespacedkf2014-01-221-11/+7
| | |