summaryrefslogtreecommitdiff
path: root/src/evr.c
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2011-05-02 13:08:09 +0200
committerMichael Schroeder <mls@suse.de>2011-05-02 13:08:09 +0200
commit31d9370991ef97ab188dc90bfb9aef9f207f735e (patch)
tree3cfe4af099eafeec70f8d0dca32240eec2e31bd9 /src/evr.c
parentac09948ee86391a410bdab18b87609765409cb01 (diff)
downloadlibsolv-31d9370991ef97ab188dc90bfb9aef9f207f735e.tar.gz
libsolv-31d9370991ef97ab188dc90bfb9aef9f207f735e.tar.bz2
libsolv-31d9370991ef97ab188dc90bfb9aef9f207f735e.zip
- clean up function names for shared library
Diffstat (limited to 'src/evr.c')
-rw-r--r--src/evr.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/evr.c b/src/evr.c
index 302c9c2..587cd5a 100644
--- a/src/evr.c
+++ b/src/evr.c
@@ -21,12 +21,12 @@
#if defined(DEBIAN_SEMANTICS) || defined(MULTI_SEMANTICS)
#ifdef MULTI_SEMANTICS
-# define vercmp vercmp_deb
+# define sat_vercmp sat_vercmp_deb
#endif
/* debian type version compare */
int
-vercmp(const char *s1, const char *q1, const char *s2, const char *q2)
+sat_vercmp(const char *s1, const char *q1, const char *s2, const char *q2)
{
int r, c1, c2;
while (1)
@@ -65,7 +65,7 @@ vercmp(const char *s1, const char *q1, const char *s2, const char *q2)
}
#ifdef MULTI_SEMANTICS
-# undef vercmp
+# undef sat_vercmp
#endif
#endif
@@ -76,7 +76,7 @@ vercmp(const char *s1, const char *q1, const char *s2, const char *q2)
/* note: the code assumes that *q1 and *q2 are not alphanumeric! */
int
-vercmp(const char *s1, const char *q1, const char *s2, const char *q2)
+sat_vercmp(const char *s1, const char *q1, const char *s2, const char *q2)
{
int r = 0;
const char *e1, *e2;
@@ -135,12 +135,12 @@ vercmp(const char *s1, const char *q1, const char *s2, const char *q2)
#endif
#if defined(MULTI_SEMANTICS)
-# define vercmp (*(pool->disttype == DISTTYPE_DEB ? &vercmp_deb : &ver##cmp))
+# define sat_vercmp (*(pool->disttype == DISTTYPE_DEB ? &sat_vercmp_deb : &sat_ver##cmp))
#endif
/* edition (e:v-r) compare */
int
-evrcmp_str(const Pool *pool, const char *evr1, const char *evr2, int mode)
+pool_evrcmp_str(const Pool *pool, const char *evr1, const char *evr2, int mode)
{
int r;
const char *s1, *s2;
@@ -228,7 +228,7 @@ evrcmp_str(const Pool *pool, const char *evr1, const char *evr2, int mode)
}
int
-evrcmp(const Pool *pool, Id evr1id, Id evr2id, int mode)
+pool_evrcmp(const Pool *pool, Id evr1id, Id evr2id, int mode)
{
const char *evr1, *evr2;
if (evr1id == evr2id)
@@ -239,7 +239,7 @@ evrcmp(const Pool *pool, Id evr1id, Id evr2id, int mode)
}
int
-evrmatch(const Pool *pool, Id evrid, const char *epoch, const char *version, const char *release)
+pool_evrmatch(const Pool *pool, Id evrid, const char *epoch, const char *version, const char *release)
{
const char *evr1;
const char *s1;
@@ -286,4 +286,3 @@ evrmatch(const Pool *pool, Id evrid, const char *epoch, const char *version, con
return 0;
}
-// EOF