summaryrefslogtreecommitdiff
path: root/modules/tclsci/includes
diff options
context:
space:
mode:
authorShashank2017-05-29 12:40:26 +0530
committerShashank2017-05-29 12:40:26 +0530
commit0345245e860375a32c9a437c4a9d9cae807134e9 (patch)
treead51ecbfa7bcd3cc5f09834f1bb8c08feaa526a4 /modules/tclsci/includes
downloadscilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.gz
scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.bz2
scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.zip
CMSCOPE changed
Diffstat (limited to 'modules/tclsci/includes')
-rwxr-xr-xmodules/tclsci/includes/GlobalTclInterp.h57
-rwxr-xr-xmodules/tclsci/includes/InitializeTclTk.h26
-rwxr-xr-xmodules/tclsci/includes/ScilabEval.h30
-rwxr-xr-xmodules/tclsci/includes/TCL_Global.h32
-rwxr-xr-xmodules/tclsci/includes/TerminateTclTk.h27
-rwxr-xr-xmodules/tclsci/includes/dynlib_tclsci.h29
-rwxr-xr-xmodules/tclsci/includes/gw_tclsci.h39
-rwxr-xr-xmodules/tclsci/includes/setenvtcl.h26
8 files changed, 266 insertions, 0 deletions
diff --git a/modules/tclsci/includes/GlobalTclInterp.h b/modules/tclsci/includes/GlobalTclInterp.h
new file mode 100755
index 000000000..59ce7f3c8
--- /dev/null
+++ b/modules/tclsci/includes/GlobalTclInterp.h
@@ -0,0 +1,57 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2008-2008 - INRIA - Bruno JOFRET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+
+#ifndef __GLOBALTCLINTERP_H___
+#define __GLOBALTCLINTERP_H___
+
+#include <tcl.h>
+#include <tk.h>
+#include "BOOL.h"
+
+
+/*
+** Initialize the global interpreter.
+*/
+void initTclInterp(void);
+
+/*
+** Delete the global interpreter.
+*/
+void deleteTclInterp(void);
+
+/*
+** Get the Global Interpreter
+*/
+Tcl_Interp *getTclInterp(void);
+
+/*
+** Release Tcl Interp after use.
+*/
+void releaseTclInterp(void);
+
+/*
+** Get the Global Interpreter
+** without any Control
+*/
+Tcl_Interp *requestTclInterp(void);
+
+/*
+** Check if global interp exists.
+*/
+BOOL existsGlobalInterp(void);
+
+/*
+** Check if slave interp exists.
+*/
+BOOL existsSlaveInterp(char *name);
+
+#endif /* !__GLOBALTCLINTERP_H___ */
diff --git a/modules/tclsci/includes/InitializeTclTk.h b/modules/tclsci/includes/InitializeTclTk.h
new file mode 100755
index 000000000..065051bac
--- /dev/null
+++ b/modules/tclsci/includes/InitializeTclTk.h
@@ -0,0 +1,26 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+
+#ifndef __INITIALIZETCLTK_H__
+#define __INITIALIZETCLTK_H__
+
+#include "BOOL.h"
+
+/**
+ * Initialize TCL/TK env
+ *
+ * @return If the init went well (or not)
+ */
+BOOL InitializeTclTk(void);
+
+#endif /* __INITIALIZETCLTK_H__ */
+/*--------------------------------------------------------------------------*/
diff --git a/modules/tclsci/includes/ScilabEval.h b/modules/tclsci/includes/ScilabEval.h
new file mode 100755
index 000000000..e9fd6d31e
--- /dev/null
+++ b/modules/tclsci/includes/ScilabEval.h
@@ -0,0 +1,30 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2005 - INRIA - Allan CORNET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+
+#ifndef __SCILABEVAL__
+#define __SCILABEVAL__
+
+#include "dynlib_tclsci.h"
+
+/**
+ * @TODO add comment
+ *
+ * @param clientData
+ * @param theinterp
+ * @param objc
+ * @param argv
+ * @return <ReturnValue>
+ */
+TCLSCI_IMPEXP int TCL_EvalScilabCmd(ClientData clientData, Tcl_Interp * theinterp, int objc, CONST char ** argv);
+
+#endif /* __SCILABEVAL__ */
+/*--------------------------------------------------------------------------*/
diff --git a/modules/tclsci/includes/TCL_Global.h b/modules/tclsci/includes/TCL_Global.h
new file mode 100755
index 000000000..35c4bc39d
--- /dev/null
+++ b/modules/tclsci/includes/TCL_Global.h
@@ -0,0 +1,32 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2005 - INRIA - Allan CORNET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+
+#ifndef __TCLGLOBAL__
+#define __TCLGLOBAL__
+
+/*--------------------------------------------------------------------------*/
+#include <stdio.h>
+#include <string.h>
+#include <tcl.h>
+#include <tk.h>
+
+#include "dynlib_tclsci.h"
+#include "stack-c.h"
+
+#include "MALLOC.h"
+
+/*--------------------------------------------------------------------------*/
+extern Tk_Window TKmainWindow;
+extern int XTKsocket;
+/*--------------------------------------------------------------------------*/
+#endif /* __TCLGLOBAL__ */
+/*--------------------------------------------------------------------------*/
diff --git a/modules/tclsci/includes/TerminateTclTk.h b/modules/tclsci/includes/TerminateTclTk.h
new file mode 100755
index 000000000..ab074b484
--- /dev/null
+++ b/modules/tclsci/includes/TerminateTclTk.h
@@ -0,0 +1,27 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Allan CORNET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+
+#ifndef __TERMINATETCLTK_H__
+#define __TERMINATETCLTK_H__
+
+#include "dynlib_tclsci.h"
+#include "BOOL.h"
+
+/**
+ * Stops the TCL engine in Scilab
+ *
+ * @return The result of the stop
+ */
+TCLSCI_IMPEXP BOOL TerminateTclTk(void);
+
+#endif /* _TERMINATETCLTK_H__ */
+/*--------------------------------------------------------------------------*/
diff --git a/modules/tclsci/includes/dynlib_tclsci.h b/modules/tclsci/includes/dynlib_tclsci.h
new file mode 100755
index 000000000..6e35f3816
--- /dev/null
+++ b/modules/tclsci/includes/dynlib_tclsci.h
@@ -0,0 +1,29 @@
+/*
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) DIGITEO - 2009 - Allan CORNET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution. The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+*
+*/
+
+/*--------------------------------------------------------------------------*/
+#ifndef __DYNLIB_TCLSCI_H__
+#define __DYNLIB_TCLSCI_H__
+
+#ifdef _MSC_VER
+#ifdef TCLSCI_EXPORTS
+#define TCLSCI_IMPEXP __declspec(dllexport)
+#else
+#define TCLSCI_IMPEXP __declspec(dllimport)
+#endif
+#else
+#define TCLSCI_IMPEXP
+#endif
+
+#endif /* __DYNLIB_TCLSCI_H__ */
+/*--------------------------------------------------------------------------*/
+
diff --git a/modules/tclsci/includes/gw_tclsci.h b/modules/tclsci/includes/gw_tclsci.h
new file mode 100755
index 000000000..7cf1fe776
--- /dev/null
+++ b/modules/tclsci/includes/gw_tclsci.h
@@ -0,0 +1,39 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2005-2008 - INRIA - Allan CORNET
+ * Copyright (C) 2007-2008 - INRIA - Vincent COUVERT
+ * Copyright (C) 2007-2008 - INRIA - Bruno JOFRET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+/*--------------------------------------------------------------------------*/
+#ifndef __GW_TCLSCI__
+#define __GW_TCLSCI__
+/*--------------------------------------------------------------------------*/
+#include "dynlib_tclsci.h"
+/*--------------------------------------------------------------------------*/
+TCLSCI_IMPEXP int gw_tclsci(void);
+/*--------------------------------------------------------------------------*/
+int sci_TCL_DoOneEvent (char *fname, unsigned long fname_len);
+int sci_TCL_EvalFile(char *fname, unsigned long fname_len);
+int sci_TCL_EvalStr(char *fname, unsigned long fname_len);
+int sci_TCL_GetVar(char *fname, unsigned long fname_len);
+int sci_TCL_SetVar(char *fname, unsigned long fname_len);
+int sci_opentk(char *fname, unsigned long fname_len);
+int sci_TCL_GetVersion(char *fname, unsigned long fname_len);
+int sci_TCL_UnsetVar(char *fname, unsigned long fname_len);
+int sci_TCL_ExistVar(char *fname, unsigned long fname_len);
+int sci_TCL_UpVar(char *fname, unsigned long fname_len);
+int sci_TCL_DeleteInterp(char *fname, unsigned long fname_len);
+int sci_TCL_CreateSlave(char *fname, unsigned long fname_len);
+int sci_TCL_ExistInterp(char *fname, unsigned long fname_len);
+int sci_TCL_ExistArray(char *fname, unsigned long fname_len);
+/*--------------------------------------------------------------------------*/
+#endif /* __GW_TCLSCI__ */
+/*--------------------------------------------------------------------------*/
+
diff --git a/modules/tclsci/includes/setenvtcl.h b/modules/tclsci/includes/setenvtcl.h
new file mode 100755
index 000000000..e1a42938b
--- /dev/null
+++ b/modules/tclsci/includes/setenvtcl.h
@@ -0,0 +1,26 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007-2008 - INRIA
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+
+#ifndef __SETENVTCL_H__
+#define __SETENVTCL_H__
+
+#include "dynlib_tclsci.h"
+
+/**
+ * TODO : comment
+ * @param string
+ * @param value
+ * @return
+ */
+TCLSCI_IMPEXP int setenvtcl(char *string, char *value);
+
+#endif /* __SETENVTCL_H__ */