2002-05-30 02:24:33 +00:00
|
|
|
/**
|
|
|
|
* \file path.C
|
|
|
|
* Copyright 1995-2002 the LyX Team
|
|
|
|
* Read the file COPYING
|
|
|
|
*
|
|
|
|
* \author unknown
|
|
|
|
*/
|
|
|
|
|
2000-04-04 00:19:15 +00:00
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma implementation
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "path.h"
|
|
|
|
|
|
|
|
int Path::pop()
|
|
|
|
{
|
|
|
|
if (popped_) {
|
|
|
|
// should throw an exception
|
|
|
|
// throw logical_error();
|
|
|
|
return 0;
|
|
|
|
}
|
2002-05-30 02:24:33 +00:00
|
|
|
|
2000-09-26 13:54:57 +00:00
|
|
|
if (lyx::chdir(pushedDir_)) {
|
2000-04-04 00:19:15 +00:00
|
|
|
// should throw an exception
|
|
|
|
// throw DirChangeError();
|
|
|
|
}
|
|
|
|
popped_ = true;
|
2002-05-30 02:24:33 +00:00
|
|
|
|
2000-04-04 00:19:15 +00:00
|
|
|
return 0;
|
|
|
|
}
|