summaryrefslogtreecommitdiffstats
path: root/generic/tclInt.h
diff options
context:
space:
mode:
authorandreas_kupries <andreas_kupries@noemail.net>2006-09-22 01:26:20 (GMT)
committerandreas_kupries <andreas_kupries@noemail.net>2006-09-22 01:26:20 (GMT)
commit44cc6dd45c93a8c04feeb48ceae17c11dcb71726 (patch)
tree32acbff94cb87475dcf718f476fd8fb8e668cff2 /generic/tclInt.h
parentef5c6eb9131915179d1101e7398fca1e09e2e3f2 (diff)
downloadtcl-44cc6dd45c93a8c04feeb48ceae17c11dcb71726.zip
tcl-44cc6dd45c93a8c04feeb48ceae17c11dcb71726.tar.gz
tcl-44cc6dd45c93a8c04feeb48ceae17c11dcb71726.tar.bz2
* generic/tcl.decls: Implemented TIP #268, conditionally.
* 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: FossilOrigin-Name: 78a272c42aaf7c6c9472f55bef7a82605b1cc2c6
Diffstat (limited to 'generic/tclInt.h')
-rw-r--r--generic/tclInt.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h
index 0129b5a..4fa0732 100644
--- a/generic/tclInt.h
+++ b/generic/tclInt.h
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclInt.h,v 1.118.2.22 2006/03/10 14:09:02 vasiljevic Exp $
+ * RCS: @(#) $Id: tclInt.h,v 1.118.2.23 2006/09/22 01:26:23 andreas_kupries Exp $
*/
#ifndef _TCLINT
@@ -1161,6 +1161,17 @@ typedef struct ResolverScheme {
/* Pointer to next record in linked list. */
} ResolverScheme;
+#ifdef TCL_TIP268
+/*
+ * TIP #268.
+ * Values for the selection mode, i.e the package require preferences.
+ */
+
+enum PkgPreferOptions {
+ PKG_PREFER_LATEST, PKG_PREFER_STABLE
+};
+#endif
+
/*
*----------------------------------------------------------------
* This structure defines an interpreter, which is a collection of
@@ -1284,6 +1295,15 @@ typedef struct Interp {
* require" commands for packages that
* aren't described in packageTable.
* Malloc'ed, may be NULL. */
+#ifdef TCL_TIP268
+ /*
+ * TIP #268.
+ * The currently active selection mode,
+ * i.e the package require preferences.
+ */
+
+ int packagePrefer; /* Current package selection mode. */
+#endif
/*
* Miscellaneous information: