summaryrefslogtreecommitdiff
path: root/apt-pkg/version.h
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:58:09 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:58:09 +0000
commitc24972cb9ecaca477099c695f0929a0dd1415a51 (patch)
tree3180d1f8ec1132846efc089e1ba7543dcd455274 /apt-pkg/version.h
parent3e18cc75df223120d215ee431b1f35fd6eb4a252 (diff)
Changed comparision operators
Author: jgg Date: 2001-05-27 05:55:27 GMT Changed comparision operators
Diffstat (limited to 'apt-pkg/version.h')
-rw-r--r--apt-pkg/version.h21
1 files changed, 4 insertions, 17 deletions
diff --git a/apt-pkg/version.h b/apt-pkg/version.h
index 4c37ba8f8..071dba3e2 100644
--- a/apt-pkg/version.h
+++ b/apt-pkg/version.h
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: version.h,v 1.7 2001/05/14 05:58:33 jgg Exp $
+// $Id: version.h,v 1.8 2001/05/27 05:55:27 jgg Exp $
/* ######################################################################
Version - Versioning system..
@@ -24,6 +24,7 @@
#pragma interface "apt-pkg/version.h"
#endif
+#include <apt-pkg/strutl.h>
#include <string>
using std::string;
@@ -52,22 +53,8 @@ class pkgVersioningSystem
{return this == &Against;};
// Shortcuts
- inline int CmpVersion(const char *A, const char *B)
- {
- return DoCmpVersion(A,A+strlen(A),B,B+strlen(B));
- };
- inline int CmpVersion(string A,string B)
- {
- return DoCmpVersion(A.c_str(),A.c_str()+A.length(),B.c_str(),B.c_str()+B.length());
- };
- inline int CmpReleaseVer(const char *A, const char *B)
- {
- return DoCmpReleaseVer(A,A+strlen(A),B,B+strlen(B));
- };
- inline int CmpReleaseVer(string A,string B)
- {
- return DoCmpReleaseVer(A.c_str(),A.c_str()+A.length(),B.c_str(),B.c_str()+B.length());
- };
+ APT_MKSTRCMP(CmpVersion,DoCmpVersion);
+ APT_MKSTRCMP(CmpReleaseVer,DoCmpReleaseVer);
pkgVersioningSystem();
virtual ~pkgVersioningSystem() {};