tclPkg.c File Reference

#include "tclInt.h"

Go to the source code of this file.

Data Structures

struct  PkgAvail
struct  Package

Defines

#define DupBlock(v, s, len)   ((v) = ckalloc(len), memcpy((v),(s),(len)))
#define DupString(v, s)

Functions

int Tcl_PkgProvide (Tcl_Interp *interp, const char *name, const char *version)
int Tcl_PkgProvideEx (Tcl_Interp *interp, const char *name, const char *version, ClientData clientData)
const char * Tcl_PkgRequire (Tcl_Interp *interp, const char *name, const char *version, int exact)
const char * Tcl_PkgRequireEx (Tcl_Interp *interp, const char *name, const char *version, int exact, ClientData *clientDataPtr)
int Tcl_PkgRequireProc (Tcl_Interp *interp, const char *name, int reqc, Tcl_Obj *const reqv[], ClientData *clientDataPtr)
const char * Tcl_PkgPresent (Tcl_Interp *interp, const char *name, const char *version, int exact)
const char * Tcl_PkgPresentEx (Tcl_Interp *interp, const char *name, const char *version, int exact, ClientData *clientDataPtr)
int Tcl_PackageObjCmd (ClientData dummy, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
void TclFreePackageInfo (Interp *iPtr)
const char * Tcl_PkgInitStubsCheck (Tcl_Interp *interp, const char *version, int exact)


Define Documentation

#define DupBlock ( v,
s,
len   )     ((v) = ckalloc(len), memcpy((v),(s),(len)))

Definition at line 82 of file tclPkg.c.

Referenced by Tcl_PackageObjCmd().

#define DupString ( v,
 ) 

Value:

do { \
        unsigned local__len = (unsigned) (strlen(s) + 1); \
        DupBlock((v),(s),local__len); \
    } while (0)

Definition at line 84 of file tclPkg.c.

Referenced by Tcl_PkgProvideEx().


Function Documentation

const char* Tcl_PkgInitStubsCheck ( Tcl_Interp interp,
const char *  version,
int  exact 
)

Definition at line 1855 of file tclPkg.c.

References Tcl_PkgPresent().

const char* Tcl_PkgPresent ( Tcl_Interp interp,
const char *  name,
const char *  version,
int  exact 
)

Definition at line 657 of file tclPkg.c.

References Tcl_PkgPresentEx().

const char* Tcl_PkgPresentEx ( Tcl_Interp interp,
const char *  name,
const char *  version,
int  exact,
ClientData *  clientDataPtr 
)

int Tcl_PkgProvide ( Tcl_Interp interp,
const char *  name,
const char *  version 
)

Definition at line 112 of file tclPkg.c.

References Tcl_PkgProvideEx().

int Tcl_PkgProvideEx ( Tcl_Interp interp,
const char *  name,
const char *  version,
ClientData  clientData 
)

const char* Tcl_PkgRequire ( Tcl_Interp interp,
const char *  name,
const char *  version,
int  exact 
)

Definition at line 192 of file tclPkg.c.

References Tcl_PkgRequireEx().

const char* Tcl_PkgRequireEx ( Tcl_Interp interp,
const char *  name,
const char *  version,
int  exact,
ClientData *  clientDataPtr 
)

int Tcl_PkgRequireProc ( Tcl_Interp interp,
const char *  name,
int  reqc,
Tcl_Obj *const   reqv[],
ClientData *  clientDataPtr 
)

Definition at line 318 of file tclPkg.c.

References TCL_ERROR, Tcl_NewStringObj(), TCL_OK, and Tcl_SetObjResult().



Generated on Wed Mar 12 12:18:33 2008 by  doxygen 1.5.1