rpm  5.4.10
Macros | Functions | Variables
rpmdpkg.c File Reference
#include "system.h"
#include <rpmiotypes.h>
#include <rpmtag.h>
#include <rpmdpkg.h>
#include "debug.h"
Include dependency graph for rpmdpkg.c:

Go to the source code of this file.

Macros

#define _RPMEVR_INTERNAL
 

Functions

static int dpkgEVRctype (char x)
 
int dpkgEVRcmp (const char *a, const char *b)
 Segmented string compare. More...
 
int dpkgEVRparse (const char *evrstr, EVR_t evr)
 Split EVR string into epoch, version, and release components. More...
 
int dpkgEVRcompare (const EVR_t a, const EVR_t b)
 Compare EVR containers. More...
 

Variables

int _rpmdpkg_debug = 0
 

Macro Definition Documentation

§ _RPMEVR_INTERNAL

#define _RPMEVR_INTERNAL

Definition at line 9 of file rpmdpkg.c.

Function Documentation

§ dpkgEVRcmp()

int dpkgEVRcmp ( const char *  a,
const char *  b 
)

Segmented string compare.

Parameters
a1st string
b2nd string
Returns
+1 if a is "newer", 0 if equal, -1 if b is "newer"

Definition at line 33 of file rpmdpkg.c.

References dpkgEVRctype(), and xisdigit().

Referenced by dpkgEVRcompare().

§ dpkgEVRcompare()

int dpkgEVRcompare ( const EVR_t  a,
const EVR_t  b 
)

Compare EVR containers.

Parameters
a1st EVR container
b2nd EVR container
Returns
+1 if a is "newer", 0 if equal, -1 if b is "newer"

Definition at line 66 of file rpmdpkg.c.

References dpkgEVRcmp().

§ dpkgEVRctype()

static int dpkgEVRctype ( char  x)
inlinestatic

Definition at line 20 of file rpmdpkg.c.

References xisalpha(), and xisdigit().

Referenced by dpkgEVRcmp().

§ dpkgEVRparse()

int dpkgEVRparse ( const char *  evrstr,
EVR_t  evr 
)

Split EVR string into epoch, version, and release components.

Parameters
evrstr[epoch:]version[-release] string
Return values
*evrparse results
Returns
0 always

Definition at line 61 of file rpmdpkg.c.

References rpmEVRparse().

Variable Documentation

§ _rpmdpkg_debug

int _rpmdpkg_debug = 0

Definition at line 17 of file rpmdpkg.c.