+2002-12-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * DepTable.C (write): write the file name as last element of the
+ .dep file (because it may contain spaces)
+ (read): read info in the right order
+
2003-01-07 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* paragraph_pimpl.C (simpleTeXBlanks):
using std::ifstream;
using std::flush;
using std::endl;
+using std::getline;
inline
// CRC value.
// The older one is effectively set to 0 upon re-load.
lyxerr << "Write dep: "
- << cit->first << ' '
<< cit->second.crc_cur << ' '
- << cit->second.mtime_cur << endl;
+ << cit->second.mtime_cur << ' '
+ << cit->first << endl;
}
- ofs << cit->first << ' '
- << cit->second.crc_cur << ' '
- << cit->second.mtime_cur << endl;
+ ofs << cit->second.crc_cur << ' '
+ << cit->second.mtime_cur << ' '
+ << cit->first << endl;
}
}
// This doesn't change through the loop.
di.crc_prev = 0;
- while (ifs >> nome >> di.crc_cur >> di.mtime_cur) {
+ while (ifs >> di.crc_cur >> di.mtime_cur && getline(ifs, nome)) {
+ nome = ltrim(nome);
if (lyxerr.debugging(Debug::DEPEND)) {
lyxerr << "Read dep: "
- << nome << ' '
<< di.crc_cur << ' '
- << di.mtime_cur << endl;
+ << di.mtime_cur << ' '
+ << nome << endl;
}
deplist[nome] = di;
}