rpm
5.4.15
|
Structure(s) and routine(s) used for EVR parsing and comparison. More...
#include <stdint.h>
Go to the source code of this file.
Macros | |
#define | RPMSENSE_SENSEMASK (RPMSENSE_EQUAL | RPMSENSE_GREATER | RPMSENSE_LESS) |
#define | RPMSENSE_NOTEQUAL (RPMSENSE_EQUAL ^ RPMSENSE_SENSEMASK) |
Typedefs | |
typedef struct EVR_s * | EVR_t |
typedef enum evrFlags_e | evrFlags |
Dependency Attributes. More... | |
typedef enum evrFlags_e | rpmsenseFlags |
Enumerations | |
enum | evrFlags_e { RPMSENSE_LESS = (1 << 1), RPMSENSE_GREATER = (1 << 2), RPMSENSE_EQUAL = (1 << 3), RPMSENSE_PREREQ = (1 << 6) } |
Dependency Attributes. More... | |
Functions | |
EVR_t | rpmEVRnew (uint32_t Flags, int initialize) |
Create a new EVR container. More... | |
EVR_t | rpmEVRfree (EVR_t evr) |
Destroy an EVR container. More... | |
int | rpmEVRcmp (const char *a, const char *b) |
Segmented string compare. More... | |
int | rpmEVRparse (const char *evrstr, EVR_t evr) |
Split EVR string into epoch, version, and release components. More... | |
int | rpmEVRcompare (const EVR_t a, const EVR_t b) |
Compare EVR containers for equality. More... | |
int | rpmEVRoverlap (EVR_t a, EVR_t b) |
Compare EVR containers for overlap. More... | |
rpmsenseFlags | rpmEVRflags (const char *op, const char **end) |
Return comparison operator sense flags. More... | |
Variables | |
int | _rpmevr_debug |
int(* | rpmvercmp )(const char *a, const char *b) |
Segmented string compare vector. More... | |
Structure(s) and routine(s) used for EVR parsing and comparison.
Definition in file rpmevr.h.
#define RPMSENSE_NOTEQUAL (RPMSENSE_EQUAL ^ RPMSENSE_SENSEMASK) |
Definition at line 78 of file rpmevr.h.
Referenced by init_rpm(), rpmdsCompare(), rpmdsNewDNEVR(), rpmEVRoverlap(), and unsatisfiedDepend().
#define RPMSENSE_SENSEMASK (RPMSENSE_EQUAL | RPMSENSE_GREATER | RPMSENSE_LESS) |
Definition at line 76 of file rpmevr.h.
Referenced by addReqProv(), depflagsFormat(), nwlookupTag(), parseRCPOT(), rpmdsAnyMatchesDep(), rpmdsCompare(), rpmdsNewDNEVR(), rpmdsNVRMatchesDep(), triggercondsTag(), unsatisfiedDepend(), and wnlookupTag().
typedef enum evrFlags_e evrFlags |
Dependency Attributes.
typedef enum evrFlags_e rpmsenseFlags |
enum evrFlags_e |
int rpmEVRcmp | ( | const char * | a, |
const char * | b | ||
) |
Segmented string compare.
a | 1st string |
b | 2nd string |
Definition at line 87 of file rpmevr.c.
References _invert_digits_alphas_comparison, b, MAX, xisdigit(), and xisrpmalpha().
Compare EVR containers for equality.
a | 1st EVR container |
b | 2nd EVR container |
Definition at line 280 of file rpmevr.c.
References _, compare_values(), rpmEVRorder(), rpmlog(), RPMLOG_WARNING, RPMSENSE_EQUAL, RPMSENSE_GREATER, RPMSENSE_LESS, and rpmsetCmp().
Referenced by evrCompare(), labelCompare(), pointRpmEVR(), rpmEVRoverlap(), and rpmfcHelper().
rpmsenseFlags rpmEVRflags | ( | const char * | op, |
const char ** | end | ||
) |
Return comparison operator sense flags.
op | operator string (NULL or "" uses RPMSENSE_EQUAL) |
*end | pointer to 1st character after operator (or NULL) |
Definition at line 406 of file rpmevr.c.
References cops, EVRop_s::opstr, RPMSENSE_EQUAL, and EVRop_s::sense.
Referenced by parseRCPOT(), rpmdsPipe(), and rpmdsSysinfoFile().
Destroy an EVR container.
evr | EVR container |
Definition at line 47 of file rpmevr.c.
References _free().
Referenced by addReqProv(), evrCompare(), evrSplit(), labelCompare(), nwlookupTag(), PRCOsqlTag(), rpmfcHelper(), and wnlookupTag().
EVR_t rpmEVRnew | ( | uint32_t | Flags, |
int | initialize | ||
) |
Create a new EVR container.
Flags | EVR inequality flags |
initialize | Should empty defaults be initialized? |
Definition at line 31 of file rpmevr.c.
References xcalloc().
Referenced by addReqProv(), evrCompare(), evrSplit(), labelCompare(), nwlookupTag(), PRCOsqlTag(), rpmfcHelper(), and wnlookupTag().
Compare EVR containers for overlap.
a | 1st EVR container |
b | 2nd EVR container |
Definition at line 339 of file rpmevr.c.
References rpmEVRcompare(), RPMSENSE_EQUAL, RPMSENSE_GREATER, RPMSENSE_LESS, and RPMSENSE_NOTEQUAL.
Referenced by addReqProv(), nwlookupTag(), and wnlookupTag().
int rpmEVRparse | ( | const char * | evrstr, |
EVR_t | evr | ||
) |
Split EVR string into epoch, version, and release components.
evrstr | [epoch:]version[-release] string |
*evr | parse results |
Definition at line 181 of file rpmevr.c.
References i, mireRegexec(), mireSetEOptions(), rpmEVRmire(), and xstrdup().
Referenced by addReqProv(), dpkgEVRparse(), evrCompare(), evrSplit(), nwlookupTag(), parseRCPOT(), pointRpmEVR(), PRCOsqlTag(), rpmdsCompare(), rpmfcHelper(), and wnlookupTag().
int(* rpmvercmp)(const char *a, const char *b) |
Segmented string compare vector.
a | 1st string |
b | 2nd string |
Definition at line 379 of file rpmevr.c.
Referenced by compare_values(), rpmdsCompare(), and rpmVersionCompare().