rpm
5.4.15
|
#include "system.h"
#include <stdarg.h>
#include <rpmiotypes.h>
#include <argv.h>
#include "rpmsquirrel.h"
#include "debug.h"
Go to the source code of this file.
Macros | |
#define | _RPMIOB_INTERNAL /* XXX necessary? */ |
#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) |
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 _RPMIOB_INTERNAL /* XXX necessary? */ |
Definition at line 4 of file rpmsquirrel.c.
#define _RPMSQUIRREL_INTERNAL |
Definition at line 18 of file rpmsquirrel.c.
|
static |
Definition at line 29 of file rpmsquirrel.c.
References rpmiobFree().
Referenced by rpmsquirrelGetPool().
|
static |
Definition at line 46 of file rpmsquirrel.c.
References _rpmsquirrel_debug, _rpmsquirrelPool, rpmioGetPool(), rpmioNewPool(), and rpmsquirrelFini().
Referenced by rpmsquirrelNew().
|
static |
Definition at line 97 of file rpmsquirrel.c.
References _rpmsquirrelI, and rpmsquirrelNew().
Referenced by rpmsquirrelNew(), rpmsquirrelRun(), and rpmsquirrelRunFile().
rpmsquirrel rpmsquirrelNew | ( | char ** | av, |
uint32_t | flags | ||
) |
Definition at line 106 of file rpmsquirrel.c.
References argvCount(), i, rpmiobNew(), rpmsquirrelGetPool(), rpmsquirrelI(), rpmsquirrelLink(), and v.
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 211 of file rpmsquirrel.c.
References _rpmsquirrel_debug, ns, rpmiobStr(), RPMRC_FAIL, RPMRC_OK, and rpmsquirrelI().
Referenced by expandMacro(), and rpmsquirrelRunFile().
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 177 of file rpmsquirrel.c.
References _rpmsquirrel_debug, b, rpmiobFree(), rpmiobSlurp(), rpmiobStr(), RPMRC_FAIL, rpmsquirrelI(), rpmsquirrelRun(), and xisspace().
int _rpmsquirrel_debug = 0 |
Definition at line 24 of file rpmsquirrel.c.
Referenced by rpmsquirrelGetPool(), rpmsquirrelRun(), and rpmsquirrelRunFile().
rpmsquirrel _rpmsquirrelI = NULL |
Definition at line 27 of file rpmsquirrel.c.
Referenced by rpmioClean(), and rpmsquirrelI().
rpmioPool _rpmsquirrelPool |
Definition at line 44 of file rpmsquirrel.c.
Referenced by rpmioClean(), and rpmsquirrelGetPool().