// This should have been a namespace
#ifdef CXX_WORKING_NAMESPACES
+///
namespace lyx {
///
char * getcwd(char * buffer, size_t size);
///
int chdir(char const * name);
+ /// Returns false it it fails
+ bool rename(char const * from, char const * to);
+ /// Returns false it it fails
+ bool copy(string const & from, string const & to);
/// 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();
+ string const getUserName();
///
int kill(long int pid, int sig);
///
int putenv(char const * str);
}
#else
+///
struct lyx {
///
static char * getcwd(char * buffer, size_t size);
///
static int chdir(char const * name);
+ /// Returns false it it fails
+ static bool rename(char const * from, char const * to);
+ /// Returns false it it fails
+ static bool copy(string const & from, string const & to);
/// generates a checksum
static unsigned long sum(char const * file);
/// returns a date string (not used currently)
static char * date();
/// returns the name of the user (not used currently)
- static string getUserName();
+ static string const getUserName();
///
static int kill(long int pid, int sig);
///