Macro API.
More...
#include <stdio.h>
#include <stddef.h>
#include <rpm/rpmutil.h>
#include <rpm/rpmfileutil.h>
Go to the source code of this file.
|
#define | RMIL_DEFAULT -15 |
| Markers for sources of macros added throughout rpm. More...
|
|
#define | RMIL_MACROFILES -13 |
|
#define | RMIL_RPMRC -11 |
|
#define | RMIL_CMDLINE -7 |
|
#define | RMIL_TARBALL -5 |
|
#define | RMIL_SPEC -3 |
|
#define | RMIL_OLDSPEC -1 |
|
#define | RMIL_GLOBAL 0 |
|
#define | addMacro(_mc, _n, _o, _b, _l) rpmPushMacro(_mc, _n, _o, _b, _l) |
|
#define | delMacro(_mc, _n) rpmPopMacro(_mc, _n) |
|
|
void | rpmDumpMacroTable (rpmMacroContext mc, FILE *fp) |
| Print macros to file stream. More...
|
|
int | rpmExpandMacros (rpmMacroContext mc, const char *sbuf, char **obuf, int flags) |
| Expand macro into buffer. More...
|
|
int | rpmPushMacro (rpmMacroContext mc, const char *n, const char *o, const char *b, int level) |
| Push macro to context. More...
|
|
int | rpmPopMacro (rpmMacroContext mc, const char *n) |
| Pop macro from context. More...
|
|
int | rpmDefineMacro (rpmMacroContext mc, const char *macro, int level) |
| Define macro in context. More...
|
|
void | rpmLoadMacros (rpmMacroContext mc, int level) |
| Load macros from specific context into global context. More...
|
|
int | rpmLoadMacroFile (rpmMacroContext mc, const char *fn) |
| Load macro context from a macro file. More...
|
|
void | rpmInitMacros (rpmMacroContext mc, const char *macrofiles) |
| Initialize macro context from set of macrofile(s). More...
|
|
void | rpmFreeMacros (rpmMacroContext mc) |
| Destroy macro context. More...
|
|
char * | rpmExpand (const char *arg,...) RPM_GNUC_NULL_TERMINATED |
| Return (malloc'ed) concatenated macro expansion(s). More...
|
|
int | rpmExpandNumeric (const char *arg) |
| Return macro expansion as a numeric value. More...
|
|
const char * | rpmConfigDir (void) |
| Return rpm configuration base directory. More...
|
|
Macro API.
Definition in file rpmmacro.h.
◆ addMacro
#define addMacro |
( |
|
_mc, |
|
|
|
_n, |
|
|
|
_o, |
|
|
|
_b, |
|
|
|
_l |
|
) |
| rpmPushMacro(_mc, _n, _o, _b, _l) |
◆ delMacro
◆ RMIL_CMDLINE
◆ RMIL_DEFAULT
Markers for sources of macros added throughout rpm.
Definition at line 38 of file rpmmacro.h.
◆ RMIL_GLOBAL
◆ RMIL_MACROFILES
#define RMIL_MACROFILES -13 |
◆ RMIL_OLDSPEC
◆ RMIL_RPMRC
◆ RMIL_SPEC
◆ RMIL_TARBALL
◆ rpmMacroContext
◆ rpmMacroEntry
◆ rpmCLIMacroContext
◆ rpmGlobalMacroContext