20typedef struct rpmMacroEntry_s * rpmMacroEntry;
22typedef struct rpmMacroContext_s * rpmMacroContext;
24extern rpmMacroContext rpmGlobalMacroContext;
26extern rpmMacroContext rpmCLIMacroContext;
38#define RMIL_BUILTIN -20
39#define RMIL_DEFAULT -15
40#define RMIL_MACROFILES -13
43#define RMIL_CMDLINE -7
44#define RMIL_TARBALL -5
46#define RMIL_OLDSPEC -1
50#define addMacro(_mc, _n, _o, _b, _l) rpmPushMacro(_mc, _n, _o, _b, _l)
51#define delMacro(_mc, _n) rpmPopMacro(_mc, _n)
54#define RPMEXPR_EXPAND (1 << 0)
57#define RPMEXPAND_EXPAND_ARGS (1 << 0)
81 char ** obuf,
int flags);
94 char ** obuf,
int flags);
107 const char * b,
int level);
121 const char * b,
int level,
122 rpmMacroFlags flags);
148int rpmMacroIsDefined(rpmMacroContext mc,
const char *n);
156int rpmMacroIsParametric(rpmMacroContext mc,
const char *n);
190char *
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 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)
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
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)
rpmMacroFlags_e
Definition: rpmmacro.h:59
@ RPMMACRO_LITERAL
Definition: rpmmacro.h:61