|
rpm 5.3.7
|


Go to the source code of this file.
Defines | |
| #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.
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 162 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 383 of file rpmjs.c.
References _rpmjs_debug, rpmjsI(), RPMRC_FAIL, and RPMRC_OK.
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 300 of file rpmjs.c.
References _rpmjs_debug, environ, F_ISSET, rpmjsI(), RPMRC_FAIL, and RPMRC_OK.
Unreference a js interpreter instance.
| js | js interpreter |
| int _rpmjs_debug |
Definition at line 70 of file rpmjs.c.
Referenced by rpmjsFini(), rpmjsGetPool(), rpmjsI(), rpmjsRun(), and rpmjsRunFile().
| uint32_t _rpmjs_options |
Definition at line 76 of file rpmjs.c.
Referenced by rpmjsNew().
| int _rpmjs_zeal |
Definition at line 79 of file rpmjs.c.
Referenced by rpmjsNew().
Definition at line 73 of file rpmjs.c.
Referenced by rpmcliFini(), rpmioClean(), and rpmjsI().
1.7.3