Author: jgg
Date: 1998-12-05 01:44:57 GMT
Version compare glitch
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: version.cc,v 1.7 1998/11/28 20:50:24 jgg Exp $
+// $Id: version.cc,v 1.8 1998/12/05 01:44:57 jgg Exp $
/* ######################################################################
Version - Version string
/* ######################################################################
Version - Version string
static int iVersionCompare(const char *A, const char *AEnd, const char *B,
const char *BEnd)
{
static int iVersionCompare(const char *A, const char *AEnd, const char *B,
const char *BEnd)
{
- // cout << string(A,AEnd) << ',' << string(B,BEnd) << endl;
if (A >= AEnd && B >= BEnd)
return 0;
if (A >= AEnd)
if (A >= AEnd && B >= BEnd)
return 0;
if (A >= AEnd)
for (;dlhs > lhs && *dlhs != '-'; dlhs--);
for (;drhs > rhs && *drhs != '-'; drhs--);
for (;dlhs > lhs && *dlhs != '-'; dlhs--);
for (;drhs > rhs && *drhs != '-'; drhs--);
drhs = BEnd;
// Compare the main version
drhs = BEnd;
// Compare the main version