+2005-01-19 Asger Ottar Alstrup <aalstrup@laerdal.dk>
+
+ * buffer.C (readHeader): use "&&" rather than "and".
+
+ * lyxserver.h (inPipeName, outPipeName): make these const.
+
2005-01-19 Angus Leeming <leeming@lyx.org>
* lyx_main.C (error_handler, init): protect SIGHUP with
string unknown = params().readToken(lex, token);
if (!unknown.empty()) {
- if (unknown[0] != '\\' and token == "\\textclass") {
+ if (unknown[0] != '\\' && token == "\\textclass") {
unknownClass(unknown);
} else {
++unknown_tokens;
+2005-01-19 Asger Ottar Alstrup <aalstrup@laerdal.dk>
+
+ * client.C: use the HAVE_UNISTD_H preprocessor guard.
+
2005-01-10 Angus Leeming <leeming@lyx.org>
* messages.C: use support/package.h to provide the paths to the
// getpid(), getppid()
#include <sys/types.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
// select()
#include <sys/select.h>
+2005-01-19 Asger Ottar Alstrup <aalstrup@laerdal.dk>
+
+ * LyXView.C: use the HAVE_UNISTD_H preprocessor guard.
2005-01-10 André Pönitz <poenitz@gmx.net>
#include <boost/bind.hpp>
#include <sys/time.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
using lyx::support::MakeDisplayPath;
using lyx::support::OnlyFilename;
private:
/// the filename of the in pipe
- std::string const inPipeName() {
- return pipename + ".in";
+ std::string const inPipeName() const {
+ return pipename + std::string(".in");
}
/// the filename of the out pipe
- std::string const outPipeName() {
- return pipename + ".out";
+ std::string const outPipeName() const {
+ return pipename + std::string(".out");
}
/// Open pipes
+2005-01-19 Asger Ottar Alstrup <aalstrup@laerdal.dk>
+
+ * lyxsum.C, socktools.C, tempname.C, userinfo.C: use the
+ HAVE_UNISTD_H preprocessor guard.
+
2005-01-17 Angus Leeming <leeming@lyx.org>
* os_win32.C (init): Add Ruurd's original code to close the
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#include <sys/mman.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <fcntl.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#include <cerrno>
#include <boost/scoped_array.hpp>
#include <cstdlib>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#if !defined(HAVE_MKSTEMP) && defined(HAVE_MKTEMP)
# include <fcntl.h>
#include <boost/assert.hpp>
#include <pwd.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#include <sys/types.h>
using std::string;