summaryrefslogtreecommitdiffstats
path: root/generic/tclPkg.c
Commit message (Collapse)AuthorAgeFilesLines
* Add -finput-charset=UTF-8 and -fextended-identifiers to gcc (and clang). All ↵jan.nijtmans2020-12-081-2/+2
| | | | C sources can now use UTF-8, as far as gcc/clang/msvc support it. Not used yet
* Fix -Wshadow warnings, when compiling with a C++ compilerjan.nijtmans2020-10-021-2/+2
|
* Merge 8.6jan.nijtmans2020-09-281-1/+1
|\
| * Make Tcl compile warning-free using -Wshadowjan.nijtmans2020-09-281-2/+3
| |
| * end-of-line spacingjan.nijtmans2019-05-241-1/+1
| |\
* | | Eliminate many usages of Tcl_NewObj (-> TclNewObj) and Tcl_NewIntObj (-> ↵jan.nijtmans2020-09-171-4/+5
| | | | | | | | | | | | TclNewIntObj or Tcl_NewWideIntObj)
* | | More usage of TclNewIntObj() macrojan.nijtmans2020-08-131-1/+2
| | |
* | | TIP 569 - remove lint commentsdgp2020-03-171-1/+0
| | |
* | | More TCL_UNUSED.dgp2020-03-081-22/+10
| | |
* | | Mark more unused parametersjan.nijtmans2019-09-031-3/+15
| | |
* | | Merge tip-548 (since using the *WChar* functions leads to less type-casts in ↵jan.nijtmans2019-08-031-2/+2
|\ \ \ | | | | | | | | | | | | | | | | c++) Als finish implementaton for MacOSX
| * | | Eliminate the use of C++ keywords as variable names. Nothing more than ↵jan.nijtmans2019-07-231-3/+3
| | | | | | | | | | | | | | | | rename the variables in something else.
* | | | Merge 8.7, and continue implementation. Almost donejan.nijtmans2019-07-101-45/+45
|/ / /
* | | Style corrections and warning eliminationdkf2019-04-181-101/+217
| | |
* | | 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.
* | | Purge end-of-line spacingjan.nijtmans2018-08-021-1/+1
| | |
* | | 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.
* | | 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.
* | | 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.
* | | Change the signature of PkgRequireCore in preparation to providepooryorick2018-01-281-22/+21
| | | | | | | | | TclNRPackageObjCmd.
* | | 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.
* | | 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
| | |
* | | 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
| | |
* | | Merge trunk.jan.nijtmans2016-11-251-17/+31
|\ \ \ | | | | | | | | Implementation looks complete. Still missing: test-cases and documentation.
* | | | Starting implementing the "package files" command. TIP still to be written.jan.nijtmans2016-11-241-9/+83
|/ / /