+2000-01-17 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * src/support/kill.C: if we have namespace support we don't have
+ to include lyxlib.h.
+
+ * src/support/lyxlib.h: use namespace lyx if supported.
+
2000-01-14 Lars Gullik Bjønnes <larsbj@lyx.org>
* src/support/date.C: new file
#include <sys/types.h>
#include <signal.h>
+#ifdef CXX_WORKING_NAMESPACES
+namespace lyx {
+ int kill(pid_t pid, int sig)
+ {
+ return ::kill(pid, sig);
+ }
+}
+#else
#include "lyxlib.h"
int lyx::kill(pid_t pid, int sig)
{
return ::kill(pid, sig);
}
+#endif
// (an inlined member of some class)?
// This should have been a namespace
+#ifdef CXX_WORKING_NAMESPACES
+namespace lyx {
+ ///
+ char * getcwd(char * buffer, size_t size);
+ ///
+ int chdir(char const * name);
+ /// generates an checksum
+ unsigned long sum(char const * file);
+ /// returns a date string
+ char * date();
+ ///
+ string getUserName();
+ ///
+ int kill(int pid, int sig);
+ ///
+ void abort();
+}
+#else
struct lyx {
///
static char * getcwd(char * buffer, size_t size);
///
static void abort();
};
+#endif // CXX_WORKING_NAMESPACES
#endif