static void resetRecursionLevel();
static bool increaseRecursion();
static void decreaseRecursion();
+private:
+ static bool webMode;
+public:
+ static bool getWebMode();
+ static void setWebMode(bool);
+
};
#endif /* !__CONFIGVARIABLE_HXX__ */
EXTERN_AST void resetExecutionBreak();
EXTERN_AST int setRecursionLimit(int);
+
+EXTERN_AST int getWebMode();
#endif /* !__CONFIGVARIABLE_INTERFACE_H__ */
+
{
recursionLevel = 0;
}
+
+//webmode
+bool ConfigVariable::webMode = true;
+
+bool ConfigVariable::getWebMode()
+{
+ return webMode;
+}
+
+void ConfigVariable::setWebMode(bool _mode)
+{
+ webMode = _mode;
+}
{
return ConfigVariable::setRecursionLimit(val);
}
+
+int getWebMode()
+{
+ return ConfigVariable::getWebMode() ? 1 : 0;
+}
+
createInnosetupMutex();
#endif
+ ConfigVariable::setWebMode(_pSEI->iWebMode != 0);
+
//open scope lvl 0 for gateway from modules and first variables ( SCI, HOME, TMPDIR, ...)
symbol::Context::getInstance()->scope_begin();
{
InitializeTclTk();
InitializeJVM();
- InitializeGUI(_pSEI->iWebMode == 0 ? TRUE : FALSE);
+ InitializeGUI();
/* create needed data structure if not already created */
loadGraphicModule();
#include "BOOL.h"
#include "dynlib_gui.h"
-GUI_IMPEXP BOOL InitializeGUI(BOOL);
+GUI_IMPEXP BOOL InitializeGUI();
#endif /* __INTIALIZEGUI_H__ */
/*--------------------------------------------------------------------------*/
#endif
}
/*--------------------------------------------------------------------------*/
-BOOL InitializeGUI(BOOL swingView)
+BOOL InitializeGUI()
{
if (getScilabMode() == SCILAB_STD)
{
}
else
{
- if (swingView)
+ if (getWebMode() == 0)
{
org_scilab_modules_gui_bridge::CallScilabBridge::registerSwingView(getScilabJavaVM());
}
+
return TRUE;
}
#include "function.hxx"
#include "string.hxx"
#include "overload.hxx"
+#include "configvariable.hxx"
#include <iterator>
scilabForcedWriteW(pwstOutput[i]);
- // fflush(NULL);
+ if (ConfigVariable::getWebMode() == false)
+ {
+ fflush(NULL);
+ }
+
FREE(pwstOutput[i]);
}