summaryrefslogtreecommitdiffstats
path: root/generic/tclPkg.c
Commit message (Collapse)AuthorAgeFilesLines
* Another round of sentinel fixes for 8.6, NULL -> (char *)NULLjan.nijtmans2024-05-291-14/+14
|
* Use TclDStringToObj a bit moredkf2024-05-241-5/+1
|
* Tcl_GetString() -> TclGetString(), for minor speedup.jan.nijtmans2024-04-041-10/+10
|
* Fix [e646d28f1a]: 8.6 Documentation/comment typo fixesjan.nijtmans2024-02-161-1/+1
|
* Correct spelling errors in comments and documentation, but also non-comment pooryorick2023-04-121-2/+2
| | | corrections in history.tcl and tcltest.test.
* Use TclListObjLength/TclListObjGetElements in stead of ↵jan.nijtmans2022-02-101-2/+2
| | | | Tcl_ListObjLength/Tcl_ListObjGetElements everywhere. This is slightly more efficient if the refered list already has the correct type
* Tcl_NewObj() -> TclNewObj()jan.nijtmans2022-01-171-2/+3
|
* More usage of TclNewObj() in stead of Tcl_NewObj() and TclNewIntObj() in ↵jan.nijtmans2020-10-131-1/+2
| | | | stead of Tcl_NewIntObj()
* Make Tcl compile warning-free using -Wshadowjan.nijtmans2020-09-281-2/+3
|
* end-of-line spacingjan.nijtmans2019-05-241-1/+1
|\
* | 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.
* | 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.
* | Plug memleak recently put into [package require].dgp2017-12-061-0/+4
|\ \ | |/
| * Plug memleak recently put into [package require].dgp2017-12-061-0/+4
| |
* | [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).
* | Align comment. Remove some end-of-line spacing. No functional changes.jan.nijtmans2015-09-281-1/+1
|\ \ | |/
* | Implement Tcl_Pkg* functions as macro's around Tcl_Pkg*Ex. This saves stack ↵jan.nijtmans2013-04-121-2/+2
|\ \ | |/ | | | | space, is (marginally) faster, while still being fully up/down compatible. It makes pkgb.so loadable in "novem" without the need to change the Tcl_PkgProvide() call to Tcl_PkgProvideEx().
| * Implement Tcl_Pkg* functions as macro's around Tcl_Pkg*Ex. This saves stack ↵jan.nijtmans2013-04-121-2/+5
| |\ | | | | | | | | | space, is (marginally) faster, while still being fully up/down compatible. It makes pkgb.so loadable in "novem" without the need to change the Tcl_PkgProvide() call to Tcl_PkgProvideEx().
| | * Implement Tcl_Pkg* functions as macro's around Tcl_Pkg*Ex. This saves stack ↵jan.nijtmans2013-04-121-4/+7
| | | | | | | | | | | | space, is (marginally) faster, while still being fully up/down compatible. It makes pkgb.so loadable in "novem" without the need to change the Tcl_PkgProvide() call to Tcl_PkgProvideEx().
| | * make some more internal tables CONSTjan.nijtmans2012-04-181-5/+5
| | | | | | | | | fix compilation with -DNO_CONST
* | | Allow Tcl to be compiled even if Tcl_Eval, Tcl_GetVar, ... are macros.jan.nijtmans2013-02-281-0/+3
| | |
* | | 3593703 Don't crash on bad input to Tcl_PkgRequire*().dgp2012-12-071-0/+4
|\ \ \ | |/ /
| * | 3593703 Don't crash on bad input to Tcl_PkgRequire*().dgp2012-12-071-0/+4
| | |
* | | more result generation conversiondkf2012-08-041-50/+49
| | |
* | | converting to using Tcl_Obj API for error message generation; part donedkf2012-08-031-3/+6
| | |
* | | Factor out a number of common patterns of use of Tcl_DStringAppend.dkf2012-07-031-3/+3
| | |
* | | Reduce use of Tcl_AppendElement, which is not (and can't be) a Tcl_Obj-aware ↵dkf2011-05-091-17/+28
| | | | | | | | | | | | API.
* | | More generation of error codes (namespace creation, path normalization,dkf2011-04-031-14/+30
| | | | | | | | | pipeline creation, package handling, procedures, [scan] formats)
* | | Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-6/+6
| | | | | | | | | rest of Tcl source code. No ABI change. API change *should* be harmless.
* | | 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/tclPkg.c: Backport fix for [1573844] to thedgp2007-09-191-802/+484
| | | | | | | | | | | | * tests/pkg.test: TCL_TIP268 sections.
| | * * generic/tclEvent.c (Tcl_CreateThread): Replaced some calls todgp2007-03-191-3/+3
| | | | | | | | | | | | | | | | | | * generic/tclPkg.c (CheckVersion): Tcl_Alloc() with calls to * unix/tclUnixTime.c (SetTZIfNecessary): ckalloc(), which better * win/tclAppInit.c (setargv): supports memory debugging.
| | * Backport to 8.4 (Don Porter's work).andreas_kupries2006-12-051-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When no requirements are supplied to a [package require $pkg] and [package unknown] is invoked to find a satisfying package, pass the requirement argument "0-" (which means all versions are acceptable). This permits a registered [package unknown] command to call [package vsatisfies $testVersion {*}$args] without any special handling of the empty $args case. This fixes/avoids a bug in [::tcl::tm::UnknownHandler] that was causing old TM versions to be provided in preference to newer TM versions. Thanks to Julian Noble for discovering the issue.
| | * * generic/tclPkg.c (Tcl_PkgRequireEx): Corrected crash whenandreas_kupries2006-10-111-8/+12
| | | | | | | | | | | | | | | argument version==NULL passed in. Backport of the fix for the same problem in 8.5.
| | * * generic/tclPkg.c (Tcl_PkgRequireEx): Changes handling of theandreas_kupries2006-09-221-2/+59
| | | | | | | | | | | | | | | | | | return information from 'Tcl_PkgRequireProc'. Keep the interpreter result empty. Backport of fix for problem found while testing #268 under 8.5. More details in the comments.
| | * * generic/tcl.decls: Implemented TIP #268, conditionally.andreas_kupries2006-09-221-86/+1288
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclBasic.c: Define TCL_TIP268 to activate the new * generic/tclDecls.h: features. * generic/tclInt.h: * generic/tclPkg.c: * generic/tclStubInit.c: * generic/tclTest.c: * library/init.tcl * library/package.tcl: * tests/pkg.test: * tests/platform.test: * tests/safe.test: * doc/PkgRequire.3:
| | * * generic/tclIOGT.c (ExecuteCallback):hobbs2006-08-301-4/+5
| | | | | | | | | | | | | | | * generic/tclPkg.c (Tcl_PkgRequireEx): replace Tcl_GlobalEval(Obj) with more efficient Tcl_Eval(Obj)Ex
| | * * generic/tclPkg.c: Revised Bug 1162286 fix from 2005-11-08dgp2006-04-051-4/+10
| | | | | | | | | | | | | | | | | | | | | to be even more forgiving of package version mismatch errors in [package ifneeded] commands, not even logging any warning messages. This further reduces the ***POTENTIAL INCOMPATIBILITY*** noted for that change.
| | * * generic/tclPkg.c: Revised Bug 1162286 fix from 2005-11-08dgp2005-11-181-7/+51
| | | | | | | | | | | | | | | | | | * tests/pkg.test: to be more forgiving of package version mismatch errors in [package ifneeded] commands. This reduces the ***POTENTIAL INCOMPATIBILITY*** noted for that change.
| | * * generic/tclPkg.c: Corrected inconsistencies in the value returneddgp2005-11-081-14/+76
| | | | | | | | | | | | | | | | | | | | | | | | * tests/pkg.test: by Tcl_PkgRequire(Ex) so that the returned values will always agree with what is stored in the package database. This way repeated calls to Tcl_PkgRequire(Ex) have the same results. Thanks to Hemang Lavana. [Bug 1162286]. * tests/namespace.test (25.7,8): Backport test of knownBug.
| * | Various trivial fixes, discovered during CYGWIN porting attempt. All ↵nijtmans2010-01-061-2/+2
| | | | | | | | | | | | backported from trunk.