rpm
5.4.10
|
#include "system.h"
#include <stdarg.h>
#include <argv.h>
#include "rpmsquirrel.h"
#include "debug.h"
Go to the source code of this file.
Macros | |
#define | _RPMSQUIRREL_INTERNAL |
Functions | |
static void | rpmsquirrelFini (void *_squirrel) |
static rpmsquirrel | rpmsquirrelGetPool (rpmioPool pool) |
static rpmsquirrel | rpmsquirrelI (void) |
rpmsquirrel | rpmsquirrelNew (char **av, uint32_t flags) |
Create and load a squirrel interpreter. | |
rpmRC | rpmsquirrelRunFile (rpmsquirrel squirrel, const char *fn, const char **resultp) |
Execute squirrel from a file. | |
rpmRC | rpmsquirrelRun (rpmsquirrel squirrel, const char *str, const char **resultp) |
Execute squirrel string. |
Variables | |
int | _rpmsquirrel_debug = 0 |
rpmsquirrel | _rpmsquirrelI = NULL |
rpmioPool | _rpmsquirrelPool |
#define _RPMSQUIRREL_INTERNAL |
Definition at line 16 of file rpmsquirrel.c.
|
static |
Definition at line 34 of file rpmsquirrel.c.
References rpmiobFree().
Referenced by rpmsquirrelGetPool().
|
static |
Definition at line 51 of file rpmsquirrel.c.
References _rpmsquirrel_debug, _rpmsquirrelPool, rpmioGetPool(), rpmioNewPool(), and rpmsquirrelFini().
Referenced by rpmsquirrelNew().
|
static |
Definition at line 92 of file rpmsquirrel.c.
References _rpmsquirrelI, and rpmsquirrelNew().
Referenced by rpmsquirrelNew(), rpmsquirrelRun(), and rpmsquirrelRunFile().
rpmsquirrel rpmsquirrelNew | ( | char ** | av, |
uint32_t | flags | ||
) |
Create and load a squirrel interpreter.
av | squirrel interpreter args (or NULL) |
flags | squirrel interpreter flags ((1<<31): use global interpreter) |
Definition at line 127 of file rpmsquirrel.c.
References argvCount(), rpmiobNew(), rpmsquirrelGetPool(), rpmsquirrelI(), and rpmsquirrelLink().
Referenced by expandMacro(), and rpmsquirrelI().
rpmRC rpmsquirrelRun | ( | rpmsquirrel | squirrel, |
const char * | str, | ||
const char ** | resultp | ||
) |
Execute squirrel string.
squirrel | squirrel interpreter (NULL uses global interpreter) |
str | squirrel string to execute (NULL returns RPMRC_FAIL) |
*resultp | squirrel exec result |
Definition at line 192 of file rpmsquirrel.c.
References _rpmsquirrel_debug, rpmiobStr(), RPMRC_FAIL, RPMRC_OK, and rpmsquirrelI().
Referenced by expandMacro().
rpmRC rpmsquirrelRunFile | ( | rpmsquirrel | squirrel, |
const char * | fn, | ||
const char ** | resultp | ||
) |
Execute squirrel from a file.
squirrel | squirrel interpreter (NULL uses global interpreter) |
fn | squirrel file to run (NULL returns RPMRC_FAIL) |
*resultp | squirrel exec result |
Definition at line 170 of file rpmsquirrel.c.
References _rpmsquirrel_debug, rpmiobStr(), RPMRC_FAIL, RPMRC_OK, and rpmsquirrelI().
int _rpmsquirrel_debug = 0 |
Definition at line 22 of file rpmsquirrel.c.
Referenced by rpmsquirrelGetPool(), rpmsquirrelRun(), and rpmsquirrelRunFile().
rpmsquirrel _rpmsquirrelI = NULL |
Definition at line 25 of file rpmsquirrel.c.
Referenced by rpmioClean(), and rpmsquirrelI().
rpmioPool _rpmsquirrelPool |
Definition at line 49 of file rpmsquirrel.c.
Referenced by rpmioClean(), and rpmsquirrelGetPool().