20typedef struct rpmMacroEntry_s * rpmMacroEntry;
22typedef struct rpmMacroContext_s * rpmMacroContext;
24typedef struct rpmMacroBuf_s *rpmMacroBuf;
26typedef void (*macroFunc)(rpmMacroBuf mb, rpmMacroEntry me, ARGV_t argv,
size_t *parsed);
28extern rpmMacroContext rpmGlobalMacroContext;
30extern rpmMacroContext rpmCLIMacroContext;
42#define RMIL_BUILTIN -20
43#define RMIL_DEFAULT -15
44#define RMIL_MACROFILES -13
47#define RMIL_CMDLINE -7
48#define RMIL_TARBALL -5
50#define RMIL_OLDSPEC -1
54#define addMacro(_mc, _n, _o, _b, _l) rpmPushMacro(_mc, _n, _o, _b, _l)
55#define delMacro(_mc, _n) rpmPopMacro(_mc, _n)
58#define RPMEXPR_EXPAND (1 << 0)
61#define RPMEXPAND_EXPAND_ARGS (1 << 0)
62#define RPMEXPAND_KEEP_QUOTED (1 << 1)
63#define RPMEXPAND_HAVE_QUOTED (1 << 2)
69typedef rpmFlags rpmMacroFlags;
88 char ** obuf,
int flags);
101 char ** obuf,
int flags);
114 const char * b,
int level);
128 const char * b,
int level,
129 rpmMacroFlags flags);
145 const char * n,
const char * o,
146 macroFunc f,
void *priv,
int nargs,
147 int level, rpmMacroFlags flags);
245char *
rpmExpand (const
char * arg, ...) RPM_GNUC_NULL_TERMINATED;
int rpmPushMacroFlags(rpmMacroContext mc, const char *n, const char *o, const char *b, int level, rpmMacroFlags flags)
void rpmFreeMacros(rpmMacroContext mc)
char * rpmExprStrFlags(const char *expr, int flags)
const char * rpmConfigDir(void)
int rpmLoadMacroFile(rpmMacroContext mc, const char *fn)
void rpmMacroBufErr(rpmMacroBuf mb, int error, const char *fmt,...)
void rpmLoadMacros(rpmMacroContext mc, int level)
int rpmExpandNumeric(const char *arg)
int rpmExprBoolFlags(const char *expr, int flags)
int rpmPopMacro(rpmMacroContext mc, const char *n)
char * rpmExprStr(const char *expr)
void rpmInitMacros(rpmMacroContext mc, const char *macrofiles)
void rpmMacroBufAppend(rpmMacroBuf mb, char c)
int rpmExpandMacros(rpmMacroContext mc, const char *sbuf, char **obuf, int flags)
int rpmDefineMacro(rpmMacroContext mc, const char *macro, int level)
int rpmPushMacro(rpmMacroContext mc, const char *n, const char *o, const char *b, int level)
char * rpmExpand(const char *arg,...) RPM_GNUC_NULL_TERMINATED
void * rpmMacroEntryPriv(rpmMacroEntry me)
void rpmMacroBufAppendStr(rpmMacroBuf mb, const char *str)
int rpmExpandThisMacro(rpmMacroContext mc, const char *n, ARGV_const_t args, char **obuf, int flags)
void rpmDumpMacroTable(rpmMacroContext mc, FILE *fp)
int rpmExprBool(const char *expr)
int rpmPushMacroAux(rpmMacroContext mc, const char *n, const char *o, macroFunc f, void *priv, int nargs, int level, rpmMacroFlags flags)
int rpmMacroIsParametric(rpmMacroContext mc, const char *n)
int rpmMacroIsDefined(rpmMacroContext mc, const char *n)
rpmMacroFlags_e
Definition rpmmacro.h:65
@ RPMMACRO_LITERAL
Definition rpmmacro.h:67