]> git.lyx.org Git - lyx.git/blob - src/support/lyxlib.h
the freespacing patch from Kayvan, draw the math empty delim with onoffdash, asure...
[lyx.git] / src / support / lyxlib.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ====================================================== 
4  * 
5  *           LyX, The Document Processor
6  *        
7  *           Copyright 1995 Matthias Ettrich
8  *           Copyright 1995-2000 The LyX Team.
9  *
10  * ====================================================== */
11
12 #ifndef LYX_LIB_H
13 #define LYX_LIB_H
14
15 #include "LString.h"
16
17 // Where can I put this?  I found the occurence of the same code
18 // three/four times. Don't you think it better to use a macro definition
19 // (an inlined member of some class)?
20
21 // This should have been a namespace
22 #ifdef CXX_WORKING_NAMESPACES
23 namespace lyx {
24         ///
25         char * getcwd(char * buffer, size_t size);
26         ///
27         int chdir(char const * name);
28         /// generates a checksum
29         unsigned long sum(char const * file);
30         /// returns a date string (not used currently)
31         char * date(); 
32         /// returns the name of the user (not used currently)
33         string getUserName();
34         ///
35         int kill(long int pid, int sig);
36         ///
37         void abort();
38         ///
39         int mkdir(char const * pathname, unsigned long int mode);
40         ///
41         int putenv(char const * str);
42 }
43 #else
44 struct lyx {
45         ///
46         static char * getcwd(char * buffer, size_t size);
47         ///
48         static int chdir(char const * name);
49         /// generates a checksum
50         static unsigned long sum(char const * file);
51         /// returns a date string (not used currently)
52         static char * date(); 
53         /// returns the name of the user (not used currently)
54         static string getUserName();
55         ///
56         static int kill(long int pid, int sig);
57         ///
58         static void abort();
59         ///
60         static int mkdir(char const * pathname, unsigned long int mode);
61         ///
62         static int putenv(char const * str);
63 };
64 #endif // CXX_WORKING_NAMESPACES
65 #endif