summaryrefslogtreecommitdiffstats
path: root/generic/tclPkg.c
Commit message (Collapse)AuthorAgeFilesLines
* merge 8.7dkf2019-04-191-101/+218
|\
| * Style corrections and warning eliminationdkf2019-04-181-101/+217
| |
* | Code cleanup: Remove unneeded #undef's, and unneeded inclused. No change in ↵jan.nijtmans2019-03-241-3/+3
| | | | | | | | functionality.
* | merge 8.7dgp2019-03-081-20/+18
|\ \ | |/
| * merge 8.6dgp2019-03-081-20/+18
| |\
| | * In the 8.6.* releases, Tcl_GetStringResult() still passes through ↵dgp2019-03-071-2/+2
| | | | | | | | | | | | | | | interp->result. Have to ask specifically for the string rep of the value we want.
| | * [39fed4dae5] Minimal fix for volatile lifetime of string returned bydgp2019-03-061-18/+16
| | | | | | | | | | | | | | | Tcl_PkgRequire(). We need a test for this ticket to go in the test suite.
| * | More use of (efficient) TclHasIntRep() macro. Also eliminate many (size_t) ↵jan.nijtmans2019-02-271-4/+4
| | | | | | | | | | | | and (unsigned) type-casts, which don't make sense any more.
* | | Another (big) round of int -> size_t enhancements. So Tcl can handle string ↵jan.nijtmans2019-02-011-1/+1
|\ \ \ | |/ / | | | | | | >2GiB in more places.
* | | Another round of int -> size_t modifications, so strings > 2Gb are handled ↵jan.nijtmans2019-01-241-1/+2
| | | | | | | | | | | | correctly on 64-bit platforms.
* | | Merge 8.7jan.nijtmans2018-12-111-6/+7
|\ \ \ | |/ / | | | | | | In test-cases, don't load Tcltest package if it isn't actually used. Another round of size_t related improvements. Nothing functional. Also improve some comments.
* | | Change ckalloc and friends to Tcl_Alloc and friends. Add two defines, ↵jan.nijtmans2018-09-011-55/+55
| | | | | | | | | | | | TCL_IO_FAILURE and TCL_NO_LENGTH (experimental, still open to be renamed following discussion)
* | | Merge 8.7jan.nijtmans2018-08-021-1/+1
|\ \ \ | |/ /
| * | Purge end-of-line spacingjan.nijtmans2018-08-021-1/+1
| | |
* | | merge 8.7dgp2018-03-111-1/+0
|\ \ \ | |/ /
| * | merge 8.6dgp2018-03-111-1/+0
| |\ \ | | |/
| | * plug memleak of constructed package requirement.dgp2018-03-111-1/+0
| | |
| | * Add remaining wrapper to the NR functions, remaining calls to pooryorick2018-02-121-150/+258
| | | | | | | | | | | | | | | TCL_NRAddCallback, and a test for a package require script that yields. DGP: This checkin introduces a memleak, detected by test compExpr-7.1.
| | * Adapt signature of PkgRequireCore to conform to Tcl_ObjCmdProc, and call it inpooryorick2018-02-121-35/+48
| | | | | | | | | | | | Tcl_PkgRequireProc on an NRE trampoline via Tcl_NRCallObjProc. Additional callbacks still needed to fully NRE-enable [package require].
| | * Preparation to provide TclNRPackageObjectCmd: Eliminate the loop inpooryorick2018-02-121-262/+263
| | | | | | | | | PkgRequireCore so that TclNRAddCallback can be added at the needed spots.
| | * Change the signature of PkgRequireCore in preparation to providepooryorick2018-02-111-22/+21
| | | | | | | | | TclNRPackageObjCmd.
| | * Fix handling of surrogates (when TCL_UTF_MAX > 3) in ↵jan.nijtmans2017-12-281-3/+3
| | | | | | | | | | | | Tcl_UtfNcmp()/Tcl_UtfNcasecmp()/TclUtfCasecmp(). Backported from core-8-branch, where this was fixed already.
* | | Merge 8.7jan.nijtmans2018-03-071-10/+12
|\ \ \ | |/ /
| * | Fix handling of "pkgIndex" file in "package files" command. This was broken ↵jan.nijtmans2018-03-071-14/+11
| | | | | | | | | | | | as well, as result of NRE-enabling the "package" command.
| * | Fix the "package files" command. Due to the NRE enabling of "package" it ↵jan.nijtmans2018-03-061-10/+15
| | | | | | | | | | | | always started to return an empty list.
* | | merge core-8-branchjan.nijtmans2018-02-061-298/+422
|\ \ \ | |/ /
| * | Add remaining wrapper to the NR functions, remaining calls topooryorick2018-02-061-163/+273
| | | | | | | | | TCL_NRAddCallback, and a test for a package require script that yields.
| * | Fix segmentation fault triggered by test package-3.12. Adapt signature ofpooryorick2018-01-311-35/+48
| | | | | | | | | | | | | | | PkgRequireCore to conform to Tcl_ObjCmdProc, and call it in Tcl_PkgRequireProc on an NRE trampoline via Tcl_NRCallObjProc. Additional callbacks still needed to fully NRE-enable [package require].
| * | Preparation to provide TclNRPackageObjectCmd: Eliminate the loop in pooryorick2018-01-281-276/+277
| | | | | | | | | | | | | | | | | | | | | PkgRequireCore so that TclNRAddCallback can be added at the needed spots. This checkin creates a crash in test package-3.12 . Pushing the work off the 8.7.* branch and onto a feature branch for now.
* | | merge core-8-branchjan.nijtmans2018-01-291-22/+21
|\ \ \ | |/ /
| * | Change the signature of PkgRequireCore in preparation to providepooryorick2018-01-281-22/+21
| | | | | | | | | TclNRPackageObjCmd.
* | | merge 8.7dgp2018-01-041-1/+4
|\ \ \ | |/ /
| * | Minimal fixes to stop the [package files] machinery writing to freed mem.dgp2018-01-041-1/+4
| | | | | | | | | | | | This contribution needs a careful review from someone who actually knows how Tcl_Preserve, etc. work.
* | | merge 8.7dgp2017-12-061-0/+4
|\ \ \ | |/ /
| * | Plug memleak recently put into [package require].dgp2017-12-061-0/+4
| |\ \ | | |/
| | * Plug memleak recently put into [package require].dgp2017-12-061-0/+4
| | |\
| | | * Plug memleak recently put into [package require].dgp2017-12-061-0/+4
| | | |
* | | | merge core-8-branch. Various cleanup: unused structure names, unused ↵jan.nijtmans2017-12-011-1/+1
|/ / / | | | | | | | | | #defines. Change some "epoch"-related fields from int to size_t. Nothing functional.
* | | Remove compat/float.h and related machinery. The last system known where ↵jan.nijtmans2017-11-151-3/+3
| | | | | | | | | | | | | | | this was needed was SunOS-4, which is not supported by Tcl any more for a long ... long time .... Also, fix a typo in generic/tclInt.h and remove some end-of-line spacing.
* | | [5d6de65036] [package require] with [package prefer stable] was not choosing ↵dgp2017-11-141-35/+58
|\ \ \ | |/ / | | | | | | available stable package.
| * | [5d6de65036] [package require] with [package prefer stable] was not choosing ↵dgp2017-11-141-35/+58
| |\ \ | | |/ | | | | | | available stable package.
| | * Ticket [5d65e65036]. My fix. Do not skip the second check for stable ↵aku2017-11-131-33/+58
| | | | | | | | | | | | versions even when the main check fails. Avoided radical changes to the structure (kept single search loop, with selection after).
* | | Merge core-8-6-branch. Update outdated comment (cherry-pick ↵jan.nijtmans2017-08-171-12/+5
|\ \ \ | |/ / | | | | | | [d5dec2b0514639f44929cbbba9c4130798a8a54a|d5dec2b051])
* | | [19a8c9399d] Plug mem leak in TIP 459 machinery.dgp2017-05-231-0/+1
| | |
* | | FlightAware feedback: "Aside: Any way to find out what the pkgIndex.tcl file ↵jan.nijtmans2017-02-081-0/+18
| | | | | | | | | | | | | | | a package was defined in was, or does that happen at too high a level?" Answer: Even though the name of the pkgIndex file is available earlier, it is very well possible to remember it and store it with the other files. This commit does exactly that.
* | | Split tclEmptyStringRep declaration over two lines. Otherwise gcc warning.jan.nijtmans2017-02-031-1/+3
| | |
* | | In TclGetNumberFromObj() macro (tclExecute.c): Don't fill in type if ↵jan.nijtmans2017-02-031-0/+2
| | | | | | | | | | | | | | | 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.
* | | Implement the "package forget" part, which was still missing. Handle the ↵jan.nijtmans2016-11-291-5/+16
| | | | | | | | | | | | case that a filename contains spaces.
* | | slightly simplerjan.nijtmans2016-11-281-2/+1
| | |
* | | Complete implementation, tests and documentationjan.nijtmans2016-11-281-9/+15
| | |