]> git.lyx.org Git - lyx.git/blobdiff - src/support/lyxlib.h
small changes read ChangeLog
[lyx.git] / src / support / lyxlib.h
index f7512a7c72032bd0756d428348a3c52b0ac95bb5..3933cf0b63475920cf1ba629fe86c05db2ec289c 100644 (file)
@@ -4,8 +4,8 @@
  * 
  *           LyX, The Document Processor
  *        
- *           Copyright (C) 1995 Matthias Ettrich
- *           Copyright (C) 1995-1999 The LyX Team.
+ *           Copyright 1995 Matthias Ettrich
+ *           Copyright 1995-2000 The LyX Team.
  *
  * ====================================================== */
 
 // (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 a checksum
+       unsigned long sum(char const * file);
+       /// returns a date string (not used currently)
+       char * date(); 
+       /// returns the name of the user (not used currently)
+       string getUserName();
+       ///
+       int kill(long int pid, int sig);
+       ///
+       void abort();
+       ///
+       int mkdir(char const * pathname, unsigned long int mode);
+       ///
+       int putenv(char const * str);
+}
+#else
 struct lyx {
        ///
        static char * getcwd(char * buffer, size_t size);
        ///
        static int chdir(char const * name);
-       /// generates an checksum
+       /// generates a checksum
        static unsigned long sum(char const * file);
-       /// returns a date string
+       /// returns a date string (not used currently)
        static char * date(); 
-       ///
+       /// returns the name of the user (not used currently)
        static string getUserName();
        ///
-       static int kill(int pid, int sig);
+       static int kill(long int pid, int sig);
        ///
        static void abort();
+       ///
+       static int mkdir(char const * pathname, unsigned long int mode);
+       ///
+       static int putenv(char const * str);
 };
+#endif // CXX_WORKING_NAMESPACES
 #endif