/* This file is part of
- * ======================================================
- *
+ * ======================================================
+ *
* LyX, The Document Processor
* Copyright 1995 Matthias Ettrich
* Copyright 1995-2001 The LyX Team.
* Lars Gullik Bjønnes
* Ben Stanley
*
- * ======================================================
+ * ======================================================
*/
#include <config.h>
#include <unistd.h>
#include <fstream>
+#include <ctime>
+
+#ifndef CXX_GLOBAL_CSTD
+using std::time;
+#endif
using std::make_pair;
using std::ofstream;
lyxerr[Debug::DEPEND] << " Already in DepTable" << endl;
}
}
-
+
void DepTable::update()
{
// file doesn't exist
// remove stale files - if it's re-created, it
// will be re-inserted by deplog.
- lyxerr[Debug::DEPEND] << itr->first
+ lyxerr[Debug::DEPEND] << itr->first
<< " doesn't exist. removing from DepTable." << endl;
DepList::iterator doomed = itr++;
deplist.erase(doomed);
continue;
}
-
+
if (lyxerr.debugging(Debug::DEPEND)) {
if (di.changed())
lyxerr << " +";
}
-bool DepTable::ext_exist(const string& ext) const
+bool DepTable::ext_exist(string const & ext) const
{
DepList::const_iterator cit = deplist.begin();
DepList::const_iterator end = deplist.end();
dep_info di;
// This doesn't change through the loop.
di.crc_prev = 0;
-
+
while (ifs >> nome >> di.crc_cur >> di.mtime_cur) {
if (lyxerr.debugging(Debug::DEPEND)) {
lyxerr << "Read dep: "
deplist[nome] = di;
}
}
-