#include "system.h"
#include <rpmio.h>
#include <rpmevr.h>
#include "debug.h"
Include dependency graph for rpmevr.c:
Go to the source code of this file.
Data Structures | |
struct | EVRop_s |
Defines | |
#define | _RPMEVR_INTERNAL |
#define | MAX(x, y) ( ((x)>(y))?(x):(y) ) |
Functions | |
static int | xisrpmalpha (int c) |
Return rpm's analogue of xisalpha. | |
int | rpmEVRcmp (const char *a, const char *b) |
Segmented string compare. | |
int | rpmEVRparse (const char *evrstr, EVR_t evr) |
Split EVR string into epoch, version, and release components. | |
static int | compare_values (const char *a, const char *b) |
Dressed rpmEVRcmp, handling missing values. | |
int | rpmEVRcompare (const EVR_t a, const EVR_t b) |
Compare EVR containers. | |
rpmsenseFlags | rpmEVRflags (const char *op, const char **end) |
Return comparison operator sense flags. | |
Variables | |
int | _rpmevr_debug = 0 |
static int | _invert_digits_alphas_comparison = -1 |
static const char * | _rpmnotalpha = ".:-" |
int(*) | rpmvercmp (const char *a, const char *b) = rpmEVRcmp |
Segmented string compare vector. | |
static struct EVRop_s | cops [] |
Definition in file rpmevr.c.
#define MAX | ( | x, | |||
y | ) | ( ((x)>(y))?(x):(y) ) |
static int compare_values | ( | const char * | a, | |
const char * | b | |||
) | [static] |
Dressed rpmEVRcmp, handling missing values.
a | 1st string | |
b | 2nd string |
Definition at line 139 of file rpmevr.c.
References rpmvercmp.
Referenced by rpmds_compare(), and rpmEVRcompare().
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 184 of file rpmevr.c.
References cops, EVRop_s::operator, RPMSENSE_EQUAL, and EVRop_s::sense.
Referenced by parseRCPOT(), rpmdsPipe(), and rpmdsSysinfoFile().
static int xisrpmalpha | ( | int | c | ) | [inline, static] |
Return rpm's analogue of xisalpha.
c | character to test |
Definition at line 38 of file rpmevr.c.
References _rpmnotalpha, xisalpha(), and xispunct().
Referenced by rpmEVRcmp().
int _invert_digits_alphas_comparison = -1 [static] |
int _rpmevr_debug = 0 |
const char* _rpmnotalpha = ".:-" [static] |
Referenced by rpmEVRflags().