rpm
5.4.15
|
Go to the source code of this file.
Macros | |
#define | rpmtclUnlink(_tcl) ((rpmtcl)rpmioUnlinkPoolItem((rpmioItem)(_tcl), __FUNCTION__, __FILE__, __LINE__)) |
#define | rpmtclLink(_tcl) ((rpmtcl)rpmioLinkPoolItem((rpmioItem)(_tcl), __FUNCTION__, __FILE__, __LINE__)) |
#define | rpmtclFree(_tcl) ((rpmtcl)rpmioFreePoolItem((rpmioItem)(_tcl), __FUNCTION__, __FILE__, __LINE__)) |
Typedefs | |
typedef struct rpmtcl_s * | rpmtcl |
Functions | |
rpmtcl | rpmtclUnlink (rpmtcl tcl) |
Unreference a tcl interpreter instance. More... | |
rpmtcl | rpmtclLink (rpmtcl tcl) |
Reference a tcl interpreter instance. More... | |
rpmtcl | rpmtclFree (rpmtcl tcl) |
Destroy a tcl interpreter. More... | |
rpmtcl | rpmtclNew (char **av, uint32_t flags) |
Create and load a tcl interpreter. More... | |
rpmRC | rpmtclRunFile (rpmtcl tcl, const char *fn, const char **resultp) |
Execute tcl from a file. More... | |
rpmRC | rpmtclRun (rpmtcl tcl, const char *str, const char **resultp) |
Execute tcl string. More... | |
Variables | |
int | _rpmtcl_debug |
rpmtcl | _rpmtclI |
#define rpmtclFree | ( | _tcl | ) | ((rpmtcl)rpmioFreePoolItem((rpmioItem)(_tcl), __FUNCTION__, __FILE__, __LINE__)) |
#define rpmtclLink | ( | _tcl | ) | ((rpmtcl)rpmioLinkPoolItem((rpmioItem)(_tcl), __FUNCTION__, __FILE__, __LINE__)) |
#define rpmtclUnlink | ( | _tcl | ) | ((rpmtcl)rpmioUnlinkPoolItem((rpmioItem)(_tcl), __FUNCTION__, __FILE__, __LINE__)) |
Destroy a tcl interpreter.
tcl | tcl interpreter |
Referenced by expandMacro(), and rpmioClean().
Reference a tcl interpreter instance.
tcl | tcl interpreter |
Referenced by rpmtclNew().
rpmtcl rpmtclNew | ( | char ** | av, |
uint32_t | flags | ||
) |
Create and load a tcl interpreter.
av | tcl interpreter args (or NULL) |
flags | tcl interpreter flags ((1<<31): use global interpreter) |
Definition at line 125 of file rpmtcl.c.
References argvCount(), rpmiobNew(), rpmtclGetPool(), rpmtclI(), and rpmtclLink().
Referenced by expandMacro(), and rpmtclI().
Execute tcl string.
tcl | tcl interpreter (NULL uses global interpreter) |
str | tcl string to execute (NULL returns RPMRC_FAIL) |
*resultp | tcl exec result |
Definition at line 179 of file rpmtcl.c.
References _rpmtcl_debug, rpmiobStr(), RPMRC_FAIL, RPMRC_OK, and rpmtclI().
Referenced by expandMacro().
Execute tcl from a file.
tcl | tcl interpreter (NULL uses global interpreter) |
fn | tcl file to run (NULL returns RPMRC_FAIL) |
*resultp | tcl exec result |
Definition at line 160 of file rpmtcl.c.
References _rpmtcl_debug, rpmiobStr(), RPMRC_FAIL, RPMRC_OK, and rpmtclI().
Unreference a tcl interpreter instance.
tcl | tcl interpreter |
int _rpmtcl_debug |
Definition at line 14 of file rpmtcl.c.
Referenced by rpmtclGetPool(), rpmtclRun(), and rpmtclRunFile().
rpmtcl _rpmtclI |
Definition at line 17 of file rpmtcl.c.
Referenced by rpmioClean(), and rpmtclI().