rpm  5.4.15
Macros | Functions | Variables
rpmficl.c File Reference
#include "system.h"
#include <argv.h>
#include "rpmficl.h"
#include "debug.h"
Include dependency graph for rpmficl.c:

Go to the source code of this file.

Macros

#define _RPMFICL_INTERNAL
 

Functions

static void rpmficlFini (void *_ficl)
 
static rpmficl rpmficlGetPool (rpmioPool pool)
 
static rpmficl rpmficlI (void)
 
rpmficl rpmficlNew (char **av, uint32_t flags)
 Create and load a ficl interpreter. More...
 
rpmRC rpmficlRunFile (rpmficl ficl, const char *fn, const char **resultp)
 Execute ficl from a file. More...
 
rpmRC rpmficlRun (rpmficl ficl, const char *str, const char **resultp)
 Execute ficl string. More...
 

Variables

int _rpmficl_debug = 0
 
rpmficl _rpmficlI = NULL
 
rpmioPool _rpmficlPool
 

Macro Definition Documentation

#define _RPMFICL_INTERNAL

Definition at line 8 of file rpmficl.c.

Function Documentation

static void rpmficlFini ( void *  _ficl)
static

Definition at line 32 of file rpmficl.c.

References rpmiobFree().

Referenced by rpmficlGetPool().

static rpmficl rpmficlGetPool ( rpmioPool  pool)
static

Definition at line 51 of file rpmficl.c.

References _rpmficl_debug, _rpmficlPool, rpmficlFini(), rpmioGetPool(), and rpmioNewPool().

Referenced by rpmficlNew().

static rpmficl rpmficlI ( void  )
static

Definition at line 65 of file rpmficl.c.

References _rpmficlI, and rpmficlNew().

Referenced by rpmficlNew(), rpmficlRun(), and rpmficlRunFile().

rpmficl rpmficlNew ( char **  av,
uint32_t  flags 
)

Create and load a ficl interpreter.

Parameters
avficl interpreter args (or NULL)
flagsficl interpreter flags ((1<<31) == use global interpreter)
Returns
new ficl interpreter

Definition at line 74 of file rpmficl.c.

References _rpmficl_debug, argvCount(), b, rpmficlGetPool(), rpmficlI(), rpmficlLink(), rpmiobEmpty(), and rpmiobStr().

Referenced by expandMacro(), and rpmficlI().

rpmRC rpmficlRun ( rpmficl  ficl,
const char *  str,
const char **  resultp 
)

Execute ficl string.

Parameters
ficlficl interpreter (NULL uses global interpreter)
strficl string to execute (NULL returns RPMRC_FAIL)
*resultpficl exec result
Returns
RPMRC_OK on success

Definition at line 140 of file rpmficl.c.

References _rpmficl_debug, rpmficlI(), rpmiobStr(), RPMRC_FAIL, and RPMRC_OK.

Referenced by expandMacro().

rpmRC rpmficlRunFile ( rpmficl  ficl,
const char *  fn,
const char **  resultp 
)

Execute ficl from a file.

Parameters
ficlficl interpreter (NULL uses global interpreter)
fnficl file to run (NULL returns RPMRC_FAIL)
*resultpficl exec result
Returns
RPMRC_OK on success

Definition at line 123 of file rpmficl.c.

References _rpmficl_debug, rpmficlI(), RPMRC_FAIL, and RPMRC_OK.

Variable Documentation

int _rpmficl_debug = 0

Definition at line 14 of file rpmficl.c.

Referenced by rpmficlGetPool(), rpmficlNew(), rpmficlRun(), and rpmficlRunFile().

rpmficl _rpmficlI = NULL

Definition at line 17 of file rpmficl.c.

Referenced by rpmficlI(), and rpmioClean().

rpmioPool _rpmficlPool

Definition at line 49 of file rpmficl.c.

Referenced by rpmficlGetPool(), and rpmioClean().