summaryrefslogtreecommitdiffstats
path: root/generic/tclLiteral.c
Commit message (Collapse)AuthorAgeFilesLines
* Eliminate "register" keyword _everywhere_ in Tcl. This keyword is deprecated ↵jan.nijtmans2019-07-171-22/+22
| | | | in C++ (removed in C++17, even), and essentially does nothing with most modern compilers.
* More usage of TCL_INDEX_NONE in stead of -1. More internal use of size_t, ↵jan.nijtmans2019-06-071-19/+23
| | | | mainly in memory statistics (debug-mode only), and TCL_Z_MODIFIER. This gives broader memory statistics on win64.
* Squelch compiler warnings, but make refCount of type unsigned int.jan.nijtmans2019-06-061-4/+6
|\
| * squelch int vs. long int (size_t) warings in comparison, format specifiersbch2019-06-061-4/+4
|/
* More use of TclHasIntRep() macro. Add vfs build director to fossil ignore-globjan.nijtmans2019-03-011-1/+1
|
* More use of (efficient) TclHasIntRep() macro. Also eliminate many (size_t) ↵jan.nijtmans2019-02-271-2/+2
| | | | and (unsigned) type-casts, which don't make sense any more.
* Do not assume that literals have a non-NULL bytes field; user code could ↵dkf2019-01-251-15/+26
|\ | | | | | | purge it.
| * Do not assume that literals have a non-NULL bytes field; user code could ↵dkf2019-01-251-15/+26
| |\ | | | | | | | | | purge it.
| | * Do not assume that literals have a non-NULL bytes field; user code could ↵dkf2019-01-251-15/+26
| | | | | | | | | | | | purge it.
* | | Change a few (internal) refCount/mask variables to unsigned type.jan.nijtmans2017-12-221-11/+12
| | |
* | | Merge core-8-6-branch. Add more comments to tclLiteral.c, contributed by ↵jan.nijtmans2016-09-211-2/+7
|\ \ \ | |/ / | | | | | | mr_calvin
* | | merge core-8-6-branchjan.nijtmans2016-09-161-1/+1
|\ \ \ | |/ /
| * | Proposed fix for [c7d0bc9a549714e0]. Thanks to mr_calvinjan.nijtmans2016-09-151-1/+1
| | |
* | | Fix [d4e7780ca1681cd095dbd81fe264feff75c988f7|d4e7780ca1]: "global" cmd ↵jan.nijtmans2016-09-071-16/+19
|\ \ \ | |/ / | | | | | | literal sharing vs. per-interp resolvers
| * | Fix [d4e7780ca1681cd095dbd81fe264feff75c988f7|d4e7780ca1]: "global" cmd ↵jan.nijtmans2016-09-071-12/+15
| |\ \ | | | | | | | | | | | | literal sharing vs. per-interp resolvers
| | * | Additiona patch/suggestion from Gustaf. This indeed fixes the crash in ↵jan.nijtmans2016-09-061-7/+0
| | | | | | | | | | | | | | | | oo.test. Looks good to me, so only waiting for final feedback from Gustaf and eventually feedback from other people.
| | * | some more clean-upjan.nijtmans2016-09-051-1/+3
| | | |
| | * | Some patch clean-up, no change in functionalityjan.nijtmans2016-09-051-12/+8
| | | |
| | * | Proposed patch for [d4e7780ca1681cd095dbd81fe264feff75c988f7|d4e7780ca1], by ↵jan.nijtmans2016-09-021-10/+23
| | | | | | | | | | | | | | | | Gustaf Neumann
* | | | merge core-8-6-branchjan.nijtmans2016-09-051-1/+2
|\ \ \ \ | |/ / /
| * | | Allow additional optional "interp" argument for testinterpresolver command. ↵jan.nijtmans2016-09-051-1/+2
| |/ / | | | | | | | | | | | | | | | Not used yet in any test-case. Protect panic in tclLiteral.c for possible null-pointer access. (cherry-picked from Gustaf Neuman's interpresolver patch). Eliminate some unecessary spacing.
* | | Micro-optimization: Use TclGetStringFromObj in stead of Tcl_GetStringFromObj ↵jan.nijtmans2016-07-081-4/+4
|/ / | | | | | | in many places where possible.
* | Fix signed<->unsigned compare gcc compiler warning.jan.nijtmans2015-10-011-3/+4
|\ \ | |/
| * Eliminate a few gcc compiler warnings, when using -Wwrite-strings (tested ↵jan.nijtmans2015-10-011-5/+6
| | | | | | | | with the brand-new gcc 5.2.0)
* | [3e7eca8c8c] Prevent overflow in size values passed to allocators.dgp2015-07-291-3/+19
|\ \ | |/
| * [3e7eca8c8c] Prevent overflow in size values passed to allocators.dgp2015-07-291-3/+19
| |
* | Add TclRegisterLiteral() to internal stub table (from "mig-optimize" branch, ↵jan.nijtmans2013-12-191-1/+2
| | | | | | | | looks like a good idea anyway)
* | 3607246,3607372 Unbalanced refcounts of literals in the global literal table.dgp2013-03-111-2/+7
|\ \
| * | Correct unbalanced effect of TclInvalidateCmdLiteral() on the refcountsdgp2013-03-071-2/+7
| | | | | | | | | of literals in the global table.
* | | msvc compiler warning: signed-unsigned mismatch.jan.nijtmans2013-03-081-1/+1
|/ /
* | New internal routine TclFetchLiteral() for better CompileEnv encapsulation.dgp2013-03-051-0/+27
| |
* | Remove from tclCompile.h declarations used in only one source file.dgp2013-03-051-5/+11
|\ \ | |/
| * Remove from tclCompile.h declarations used in only one source file.dgp2013-03-051-5/+11
| |
* | Revise TclReleaseLiteral() to tolerate a NULL interp argument.dgp2013-02-281-1/+7
| | | | | | Update callers and revise mistaken comments.
* | Commit of patch relating to interp resolversdkf2011-10-151-0/+40
| |
* | Remove TclCleanupLiteralTable (see 994838).dgp2011-06-021-71/+0
|\ \ | |/
| * Remove TclCleanupLiteralTable (see 994838).dgp2011-06-021-71/+0
| |
* | Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-14/+12
| | | | | | rest of Tcl source code. No ABI change. API change *should* be harmless.
* | MINOR: Formatting fixes, mainly to comments, so code better fits the style indkf2011-03-101-2/+1
| | | | | | the Engineering Manual.
* | 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.
| * | * generic/tclLiteral.c: Backport fix for [Bug 2888044].dgp2009-10-281-1/+2
| | |
* | | * generic/tclCompExpr.c: Slight change in the literal sharingMiguel Sofer2010-04-291-10/+14
| | | | | | | | | | | | | | | | | | * generic/tclCompile.c: mechanism to avoid shimmering of * generic/tclCompile.h: command names. * generic/tclLiteral.c:
* | | [ tcl-Feature Requests-2958832 ] Furthernijtmans2010-02-251-6/+10
| | | | | | | | | | | | | | | | | | speed-up of ouster-hash function. Eliminate various unnecessary (ClientData) type casts.
* | | Pure whitespace changes, changing to follow Engineering Manual style.dkf2010-02-241-2/+2
| | |
* | | Return to using the classic hash function. Now with *extensive* notes in thedkf2010-02-171-13/+29
| | | | | | | | | | | | comments about why this function is preferred.
* | | missing commadgp2010-02-171-2/+2
| | |
* | | Update literal table to use FNV hash function.dkf2010-02-161-63/+69
| | |
* | | * generic/tclLiteral.c: Fixed 2 bugs reported in [Bug 2888044].dgp2009-10-281-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/info.test: First, as noted in the comments of the TclCleanupLiteralTable routine, since the teardown of the intrep of one Tcl_Obj can cause the teardown of others in the same table, the full table cleanup must be done with care, but the code did not contain the same care demanded in the comment. Second, recent additions to the info.test file had poor hygiene, leaving an array variable ::a lying around, which breaks later interp.test tests during a -singleproc 1 run of the test suite.