Changeset 620 for trunk/lib/utility.cc


Ignore:
Timestamp:
Apr 23, 2008, 2:43:10 AM (13 years ago)
Author:
Peter Johansson
Message:

Made version string (in parenthesis) a function that is called from footer and function creating --version output. PP Macro TIME and DATE were moved to subversion_info.cc. For details about why see comment in subversion_info.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/utility.cc

    r589 r620  
    2323
    2424#include "utility.h"
     25
     26#include "subversion_info.h"
     27#include "config.h"
    2528
    2629#include <cassert>
     
    321324
    322325
     326  std::string version_string(void)
     327  {
     328    std::stringstream ss;
     329    ss << " (";
     330    if (DEV_BUILD)
     331      ss << "r" << svn_revision() << " ";
     332    ss << "compiled " << compilation_time() << ", " << compilation_date()
     333       << ")";
     334    return ss.str();
     335  }
     336
     337
    323338  std::string match(std::string::const_iterator& first,
    324339                    const std::string::const_iterator& last,
Note: See TracChangeset for help on using the changeset viewer.