#include "scilabWrite.hxx"
#include "scilabexception.hxx"
#include "configvariable.hxx"
+#include "threadmanagement.hxx"
#include <iostream>
#include <fstream>
pstCommand[iPos] = 0;
}
+ ThreadManagement::LockParser();
parser.parse(pstCommand);
FREE(pstCommand);
if (parser.getExitStatus() != Parser::Succeded)
ConfigVariable::setLastErrorCall();
ConfigVariable::setLastErrorMessage(parser.getErrorMessage());
ConfigVariable::setLastErrorNumber(999);
+ ThreadManagement::UnlockParser();
return Function::OK;
}
else
char* pst = wide_string_to_UTF8(parser.getErrorMessage());
Scierror(999, "%s", pst);
FREE(pst);
+ ThreadManagement::UnlockParser();
return Function::Error;
}
}
pExp = parser.getTree();
}
+ ThreadManagement::UnlockParser();
+
if (pExp == NULL)
{
return Function::Error;