+2000-05-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * src/lyxvc.C (toggleReadOnly): use VCS::status() instead of stat()
+
+ * src/vc-backend.*: renamed stat() to status() and vcstat to
+ vcstatus. It happens that Tru64 Unix 5.0 has stat() as a macro and
+ compilation broke. The new name seems more relevant, anyway.
+
2000-05-17 Juergen Vigna <jug@sad.it>
* src/BufferView2.C (removeAutoInsets): fixed use of AutoDeleteInsets
LyXLayout const & style =
textclasslist.Style(users->buffer()->params.textclass,
par->layout);
+#ifdef WITH_WARNINGS
#warning please check if this call is really needed!!!
+#endif
// par->AutoDeleteInsets();
// treat <toc> as a special case for compatibility with old code
LyXLayout const & style =
textclasslist.Style(users->buffer()->params.textclass,
par->layout);
+#ifdef WITH_WARNINGS
#warning please check if this call is really needed!!!
+#endif
// par->AutoDeleteInsets();
// environment tag closing
void LyXVC::toggleReadOnly()
{
- switch (vcs->stat()) {
+ switch (vcs->status()) {
case VCS::UNLOCKED:
lyxerr[Debug::LYXVC] << "LyXVC: toggle to locked" << endl;
checkOut();
// get locker here
if (contains(token, ";")) {
locker_ = "Unlocked";
- vcstat = UNLOCKED;
+ vcstatus = UNLOCKED;
continue;
}
string tmpt, s1, s2;
// s2 is user, and s1 is version
if (s1 == version_) {
locker_ = s2;
- vcstat = LOCKED;
+ vcstatus = LOCKED;
break;
}
} while (!contains(tmpt, ";"));
<< mod_date << "'" << endl;
if (file_date == mod_date) {
locker_ = "Unlocked";
- vcstat = UNLOCKED;
+ vcstatus = UNLOCKED;
} else {
// Here we should also to some more checking
// to see if there are conflicts or not.
locker_ = "Locked";
- vcstat = LOCKED;
+ vcstatus = LOCKED;
}
break;
}
///
Buffer * owner() const { return owner_; }
///
- VCStatus stat() const { return vcstat; }
+ VCStatus status() const { return vcstatus; }
protected:
///
static int doVCCommand(string const &, string const &);
string master_;
/// The status of the VC controlled file.
- VCStatus vcstat;
+ VCStatus vcstatus;
/** The version of the VC file. I am not sure if this can be a
string of if it must be a