1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 3.0.7
4  *
5  * This file is not intended to be easily readable and contains a number of
6  * coding conventions designed to improve portability and efficiency. Do not make
7  * changes to this file unless you know what you are doing--modify the SWIG
8  * interface file instead.
9  * ----------------------------------------------------------------------------- */
10 
11 #define SWIGJAVA
12 
13 /* -----------------------------------------------------------------------------
14  *  This section contains generic SWIG labels for method/variable
15  *  declarations/attributes, and other compiler dependent labels.
16  * ----------------------------------------------------------------------------- */
17 
18 /* template workaround for compilers that cannot correctly implement the C++ standard */
19 #ifndef SWIGTEMPLATEDISAMBIGUATOR
20 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
21 #  define SWIGTEMPLATEDISAMBIGUATOR template
22 # elif defined(__HP_aCC)
23 /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
24 /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
25 #  define SWIGTEMPLATEDISAMBIGUATOR template
26 # else
27 #  define SWIGTEMPLATEDISAMBIGUATOR
28 # endif
29 #endif
30 
31 /* inline attribute */
32 #ifndef SWIGINLINE
33 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
34 #   define SWIGINLINE inline
35 # else
36 #   define SWIGINLINE
37 # endif
38 #endif
39 
40 /* attribute recognised by some compilers to avoid 'unused' warnings */
41 #ifndef SWIGUNUSED
42 # if defined(__GNUC__)
43 #   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
44 #     define SWIGUNUSED __attribute__ ((__unused__))
45 #   else
46 #     define SWIGUNUSED
47 #   endif
48 # elif defined(__ICC)
49 #   define SWIGUNUSED __attribute__ ((__unused__))
50 # else
51 #   define SWIGUNUSED
52 # endif
53 #endif
54 
55 #ifndef SWIG_MSC_UNSUPPRESS_4505
56 # if defined(_MSC_VER)
57 #   pragma warning(disable : 4505) /* unreferenced local function has been removed */
58 # endif
59 #endif
60 
61 #ifndef SWIGUNUSEDPARM
62 # ifdef __cplusplus
63 #   define SWIGUNUSEDPARM(p)
64 # else
65 #   define SWIGUNUSEDPARM(p) p SWIGUNUSED
66 # endif
67 #endif
68 
69 /* internal SWIG method */
70 #ifndef SWIGINTERN
71 # define SWIGINTERN static SWIGUNUSED
72 #endif
73 
74 /* internal inline SWIG method */
75 #ifndef SWIGINTERNINLINE
76 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
77 #endif
78 
79 /* exporting methods */
80 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
81 #  ifndef GCC_HASCLASSVISIBILITY
82 #    define GCC_HASCLASSVISIBILITY
83 #  endif
84 #endif
85 
86 #ifndef SWIGEXPORT
87 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
88 #   if defined(STATIC_LINKED)
89 #     define SWIGEXPORT
90 #   else
91 #     define SWIGEXPORT __declspec(dllexport)
92 #   endif
93 # else
94 #   if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
95 #     define SWIGEXPORT __attribute__ ((visibility("default")))
96 #   else
97 #     define SWIGEXPORT
98 #   endif
99 # endif
100 #endif
101 
102 /* calling conventions for Windows */
103 #ifndef SWIGSTDCALL
104 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
105 #   define SWIGSTDCALL __stdcall
106 # else
107 #   define SWIGSTDCALL
108 # endif
109 #endif
110 
111 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
112 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
113 # define _CRT_SECURE_NO_DEPRECATE
114 #endif
115 
116 /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
117 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
118 # define _SCL_SECURE_NO_DEPRECATE
119 #endif
120 
121 /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
122 #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
123 # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
124 #endif
125 
126 /* Intel's compiler complains if a variable which was never initialised is
127  * cast to void, which is a common idiom which we use to indicate that we
128  * are aware a variable isn't used.  So we just silence that warning.
129  * See: https://github.com/swig/swig/issues/192 for more discussion.
130  */
131 #ifdef __INTEL_COMPILER
132 # pragma warning disable 592
133 #endif
134 
135 
136 /* Fix for jlong on some versions of gcc on Windows */
137 #if defined(__GNUC__) && !defined(__INTEL_COMPILER)
138   typedef long long __int64;
139 #endif
140 
141 /* Fix for jlong on 64-bit x86 Solaris */
142 #if defined(__x86_64)
143 # ifdef _LP64
144 #   undef _LP64
145 # endif
146 #endif
147 
148 #include <jni.h>
149 #include <stdlib.h>
150 #include <string.h>
151 
152 
153 /* Support for throwing Java exceptions */
154 typedef enum {
155   SWIG_JavaOutOfMemoryError = 1,
156   SWIG_JavaIOException,
157   SWIG_JavaRuntimeException,
158   SWIG_JavaIndexOutOfBoundsException,
159   SWIG_JavaArithmeticException,
160   SWIG_JavaIllegalArgumentException,
161   SWIG_JavaNullPointerException,
162   SWIG_JavaDirectorPureVirtual,
163   SWIG_JavaUnknownError
164 } SWIG_JavaExceptionCodes;
165 
166 typedef struct {
167   SWIG_JavaExceptionCodes code;
168   const char *java_exception;
169 } SWIG_JavaExceptions_t;
170 
171 
SWIG_JavaThrowException(JNIEnv * jenv,SWIG_JavaExceptionCodes code,const char * msg)172 static void SWIGUNUSED SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionCodes code, const char *msg) {
173   jclass excep;
174   static const SWIG_JavaExceptions_t java_exceptions[] = {
175     { SWIG_JavaOutOfMemoryError, "java/lang/OutOfMemoryError" },
176     { SWIG_JavaIOException, "java/io/IOException" },
177     { SWIG_JavaRuntimeException, "java/lang/RuntimeException" },
178     { SWIG_JavaIndexOutOfBoundsException, "java/lang/IndexOutOfBoundsException" },
179     { SWIG_JavaArithmeticException, "java/lang/ArithmeticException" },
180     { SWIG_JavaIllegalArgumentException, "java/lang/IllegalArgumentException" },
181     { SWIG_JavaNullPointerException, "java/lang/NullPointerException" },
182     { SWIG_JavaDirectorPureVirtual, "java/lang/RuntimeException" },
183     { SWIG_JavaUnknownError,  "java/lang/UnknownError" },
184     { (SWIG_JavaExceptionCodes)0,  "java/lang/UnknownError" }
185   };
186   const SWIG_JavaExceptions_t *except_ptr = java_exceptions;
187 
188   while (except_ptr->code != code && except_ptr->code)
189     except_ptr++;
190 
191   (*jenv)->ExceptionClear(jenv);
192   excep = (*jenv)->FindClass(jenv, except_ptr->java_exception);
193   if (excep)
194     (*jenv)->ThrowNew(jenv, excep, msg);
195 }
196 
197 
198 /* Contract support */
199 
200 #define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, msg); return nullreturn; } else
201 
202 
203 #include "sci_malloc.h"
204 #include "../c/GuiManagement.h"
205 
206 
207 #ifdef __cplusplus
208 extern "C" {
209 #endif
210 
Java_org_scilab_modules_console_GuiManagementJNI_setScilabLines(JNIEnv * jenv,jclass jcls,jint jarg1,jint jarg2)211 SWIGEXPORT void JNICALL Java_org_scilab_modules_console_GuiManagementJNI_setScilabLines(JNIEnv *jenv, jclass jcls, jint jarg1, jint jarg2) {
212   int arg1 ;
213   int arg2 ;
214 
215   (void)jenv;
216   (void)jcls;
217   arg1 = (int)jarg1;
218   arg2 = (int)jarg2;
219   setScilabLines(arg1,arg2);
220 }
221 
222 
Java_org_scilab_modules_console_GuiManagementJNI_forceScilabLines(JNIEnv * jenv,jclass jcls,jint jarg1,jint jarg2)223 SWIGEXPORT void JNICALL Java_org_scilab_modules_console_GuiManagementJNI_forceScilabLines(JNIEnv *jenv, jclass jcls, jint jarg1, jint jarg2) {
224   int arg1 ;
225   int arg2 ;
226 
227   (void)jenv;
228   (void)jcls;
229   arg1 = (int)jarg1;
230   arg2 = (int)jarg2;
231   forceScilabLines(arg1,arg2);
232 }
233 
234 
235 #ifdef __cplusplus
236 }
237 #endif
238 
239