SYNOPSIS
#include <tcl.h>
char * Tcl_PkgRequire(interp, name, version, exact)
char * Tcl_PkgRequireEx(interp, name, version, exact, clientDataPtr)
char * Tcl_PkgPresent(interp, name, version, exact)
char * Tcl_PkgPresentEx(interp, name, version, exact, clientDataPtr)
int Tcl_PkgProvide(interp, name, version)
int Tcl_PkgProvideEx(interp, name, version, clientData)
ARGUMENTS
- Tcl_Interp *interp (in)
-
Interpreter where package is needed or available.
- char *name (in)
-
Name of package.
- char *version (in)
-
A version string consisting of one or more decimal numbers separated by dots.
- int exact (in)
-
Non-zero means that only the particular version specified by version is acceptable. Zero means that newer versions than version are also acceptable as long as they have the same major version number as version.
- ClientData clientData (in)
-
Arbitrary value to be associated with the package.
- ClientData *clientDataPtr (out)
-
Pointer to place to store the value associated with the matching package. It is only changed if the pointer is not NULL and the function completed successfully.
DESCRIPTION
These procedures provide C-level interfaces to Tcl's package and version management facilities.
See the documentation for the Tcl commands for details on what these procedures do.
If
PORTABILITY
Windows 2000. Windows XP. Windows Server 2003. Windows Vista. Windows 7. Windows Server 2008.
AVAILABILITY
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition
MKS Toolkit 9.3 Documentation Build 6.