another work-around for Octave 3.2 bug with "clear all"

time-shift
Michel Juillard 2011-11-21 15:03:19 +01:00
parent e4c803d0db
commit 2ac0e89014
1 changed files with 3 additions and 5 deletions

View File

@ -443,11 +443,9 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all, bool console,
if (clear_all) if (clear_all)
{ {
mOutputFile << "if exist('OCTAVE_VERSION')" << endl mOutputFile << "clear all" << endl
<< " clear -all" << endl // this is a work-around for a bug in Octave 3.2
<< "else" << endl << "clear globals" << endl;
<< " clear all" << endl
<< "end" << endl;
} }
mOutputFile << "tic;" << endl mOutputFile << "tic;" << endl