From 6fc33863f31051a5fc2726a236ce8b64d33bc964 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:50:52 +0000 Subject: Comment touch ups Author: jgg Date: 1998-07-19 21:24:11 GMT Comment touch ups --- apt-pkg/version.h | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-) (limited to 'apt-pkg/version.h') diff --git a/apt-pkg/version.h b/apt-pkg/version.h index b263d7c90..ba7eb592d 100644 --- a/apt-pkg/version.h +++ b/apt-pkg/version.h @@ -1,13 +1,12 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: version.h,v 1.3 1998/07/12 23:58:43 jgg Exp $ +// $Id: version.h,v 1.4 1998/07/19 21:24:19 jgg Exp $ /* ###################################################################### - Version - Version string + Version - Version comparison routines - This class implements storage and operators for version strings. - - The client is responsible for stripping epochs should it be desired. + These routines provide some means to compare versions and check + dependencies. ##################################################################### */ /*}}}*/ @@ -21,25 +20,6 @@ #include -class pkgVersion -{ - string Value; - - public: - - inline operator string () const {return Value;}; - - // Assignmnet - void operator =(string rhs) {Value = rhs;}; - - // Comparitors. STL will provide the rest - bool operator ==(const pkgVersion &rhs) const; - bool operator <(const pkgVersion &rhs) const; - - pkgVersion(); - pkgVersion(string Version) : Value(Version) {}; -}; - int pkgVersionCompare(const char *A, const char *B); int pkgVersionCompare(const char *A, const char *AEnd, const char *B, const char *BEnd); -- cgit v1.2.3