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. More... | |
rpmRC | rpmsquirrelRunFile (rpmsquirrel squirrel, const char *fn, const char **resultp) |
Execute squirrel from a file. More... | |
rpmRC | rpmsquirrelRun (rpmsquirrel squirrel, const char *str, const char **resultp) |
Execute squirrel string. More... | |
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 _free(), _rpmsquirrel_debug, _rpmsquirrelPool, rpmiobAppend(), rpmioGetPool(), rpmioNewPool(), rpmsquirrelFini(), vsnprintf(), xmalloc, and xrealloc.
Referenced by rpmsquirrelNew().
|
static |
Definition at line 102 of file rpmsquirrel.c.
References _rpmsquirrelI, D_, rpmlog(), RPMLOG_WARNING, 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 137 of file rpmsquirrel.c.
References argvCount(), rpmiobNew(), rpmsquirrelGetPool(), rpmsquirrelI(), and rpmsquirrelLink().
Referenced by expandMacro(), psmWait(), 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 206 of file rpmsquirrel.c.
References _rpmsquirrel_debug, rpmiobStr(), RPMRC_FAIL, RPMRC_OK, and rpmsquirrelI().
Referenced by expandMacro(), and psmWait().
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 184 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().