rpm
5.4.10
|
Go to the source code of this file.
Macros | |
#define | rpmjsUnlink(_js) ((rpmjs)rpmioUnlinkPoolItem((rpmioItem)(_js), __FUNCTION__, __FILE__, __LINE__)) |
#define | rpmjsLink(_js) ((rpmjs)rpmioLinkPoolItem((rpmioItem)(_js), __FUNCTION__, __FILE__, __LINE__)) |
#define | rpmjsFree(_js) ((rpmjs)rpmioFreePoolItem((rpmioItem)(_js), __FUNCTION__, __FILE__, __LINE__)) |
Typedefs | |
typedef struct rpmjs_s * | rpmjs |
Functions | |
rpmjs | rpmjsUnlink (rpmjs js) |
Unreference a js interpreter instance. | |
rpmjs | rpmjsLink (rpmjs js) |
Reference a js interpreter instance. | |
rpmjs | rpmjsFree (rpmjs js) |
Destroy a js interpreter. | |
rpmjs | rpmjsNew (char **av, uint32_t flags) |
Create and load a js interpreter. | |
rpmRC | rpmjsRunFile (rpmjs js, const char *fn, char *const *Iargv, const char **resultp) |
Execute js from a file. | |
rpmRC | rpmjsRun (rpmjs js, const char *str, const char **resultp) |
Execute js string. |
Variables | |
int | _rpmjs_debug |
rpmjs | _rpmjsI |
uint32_t | _rpmjs_options |
int | _rpmjs_zeal |
Definition in file rpmjs.h.
#define rpmjsFree | ( | _js | ) | ((rpmjs)rpmioFreePoolItem((rpmioItem)(_js), __FUNCTION__, __FILE__, __LINE__)) |
#define rpmjsLink | ( | _js | ) | ((rpmjs)rpmioLinkPoolItem((rpmioItem)(_js), __FUNCTION__, __FILE__, __LINE__)) |
#define rpmjsUnlink | ( | _js | ) | ((rpmjs)rpmioUnlinkPoolItem((rpmioItem)(_js), __FUNCTION__, __FILE__, __LINE__)) |
Destroy a js interpreter.
js | js interpreter |
Referenced by expandMacro(), rpmcliFini(), and rpmioClean().
Reference a js interpreter instance.
js | js interpreter |
Referenced by rpmjsNew().
rpmjs rpmjsNew | ( | char ** | av, |
uint32_t | flags | ||
) |
Create and load a js interpreter.
av | js interpreter args (or NULL) |
flags | js interpreter flags ((1<<31): use global interpreter) |
Definition at line 171 of file rpmjs.c.
References _rpmjs_options, _rpmjs_zeal, F_ISSET, getenv(), rpmjsGetPool(), rpmjsI(), and rpmjsLink().
Referenced by expandMacro(), and rpmjsI().
Execute js string.
js | js interpreter (NULL uses global interpreter) |
str | js string to execute (NULL returns RPMRC_FAIL) |
*resultp | js exec result |
Definition at line 410 of file rpmjs.c.
References DBG, rpmjsI(), RPMRC_FAIL, RPMRC_OK, and xmalloc.
Referenced by expandMacro().
Execute js from a file.
js | js interpreter (NULL uses global interpreter) |
fn | js file to run (NULL returns RPMRC_FAIL) |
Iargv | js script argv |
*resultp | js exec result |
Definition at line 317 of file rpmjs.c.
References DBG, environ, F_ISSET, rpmjsI(), RPMRC_FAIL, and RPMRC_OK.
Unreference a js interpreter instance.
js | js interpreter |
int _rpmjs_debug |
Definition at line 74 of file rpmjs.c.
Referenced by rpmjsGetPool().
uint32_t _rpmjs_options |
Definition at line 83 of file rpmjs.c.
Referenced by rpmjsNew().
int _rpmjs_zeal |
Definition at line 86 of file rpmjs.c.
Referenced by rpmjsNew().
rpmjs _rpmjsI |
Definition at line 80 of file rpmjs.c.
Referenced by rpmcliFini(), rpmioClean(), and rpmjsI().