Switch to unified view

a/src/utils/smallut.cpp b/src/utils/smallut.cpp
1
#ifndef lint
1
#ifndef lint
2
static char rcsid[] = "@(#$Id: smallut.cpp,v 1.24 2006-12-18 12:06:11 dockes Exp $ (C) 2004 J.F.Dockes";
2
static char rcsid[] = "@(#$Id: smallut.cpp,v 1.25 2006-12-19 12:11:21 dockes Exp $ (C) 2004 J.F.Dockes";
3
#endif
3
#endif
4
/*
4
/*
5
 *   This program is free software; you can redistribute it and/or modify
5
 *   This program is free software; you can redistribute it and/or modify
6
 *   it under the terms of the GNU General Public License as published by
6
 *   it under the terms of the GNU General Public License as published by
7
 *   the Free Software Foundation; either version 2 of the License, or
7
 *   the Free Software Foundation; either version 2 of the License, or
...
...
35
#ifndef NO_NAMESPACES
35
#ifndef NO_NAMESPACES
36
using namespace std;
36
using namespace std;
37
#endif /* NO_NAMESPACES */
37
#endif /* NO_NAMESPACES */
38
38
39
#define MIN(A,B) ((A)<(B)?(A):(B))
39
#define MIN(A,B) ((A)<(B)?(A):(B))
40
41
string stringlistdisp(const list<string>& sl)
42
{
43
    string s;
44
    for (list<string>::const_iterator it = sl.begin(); it!= sl.end(); it++)
45
  s += "[" + *it + "] ";
46
    if (!s.empty())
47
  s.erase(s.length()-1);
48
    return s;
49
}
50
40
51
int stringicmp(const string & s1, const string& s2) 
41
int stringicmp(const string & s1, const string& s2) 
52
{
42
{
53
    string::const_iterator it1 = s1.begin();
43
    string::const_iterator it1 = s1.begin();
54
    string::const_iterator it2 = s2.begin();
44
    string::const_iterator it2 = s2.begin();