extern "C"
{
#include "getScilabJavaVM.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "localization.h"
#include "Scierror.h"
}
#include "InterpreterManagement.h"
#include "storeCommand.h"
#include "sigbas.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "charEncoding.h"
/*--------------------------------------------------------------------------*/
int putCommandInScilabQueue(char *command)
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.4
+ * Version 2.0.11
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
package org.scilab.modules.action_binding;
-/**
- * All Scilab interpreter management used in Java console
- * @author Vincent COUVERT
- * @copyright INRIA
- */
+ /**
+ * All Scilab interpreter management used in Java console
+ * @author Vincent COUVERT
+ * @copyright INRIA
+ */
public class InterpreterManagement {
- /**
- * Constructor
- */
- protected InterpreterManagement() {
- throw new UnsupportedOperationException();
- }
-
- /**
- * Put a command in Scilab command queue so that Scilab executes it
- * The command is displayed in Scilab Window
- *
- * @param command the command to execute
- * @return execution status
- */
- public static int putCommandInScilabQueue(String command) {
- return InterpreterManagementJNI.putCommandInScilabQueue(command);
- }
-
-
- /**
- * Put a command in Scilab command queue so that Scilab executes it
- * The command is executed as soon as possible and may not be interrupted by another one.
- * WARNING : if the command is taking some time, scilab will not do anything else
- * before the command returns.
- *
- * @param command the command to execute
- * @return execution status
- */
- public static int requestScilabExec(String command) {
- return InterpreterManagementJNI.requestScilabExec(command);
- }
-
-
- /**
- * Stop Scilab current work
- * @return execution status
- */
- public static int interruptScilab() {
- return InterpreterManagementJNI.interruptScilab();
- }
+ /**
+ * Constructor
+ */
+ protected InterpreterManagement() {
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * Put a command in Scilab command queue so that Scilab executes it
+ * The command is displayed in Scilab Window
+ *
+ * @param command the command to execute
+ * @return execution status
+ */
+public static int putCommandInScilabQueue(String command) {
+ return InterpreterManagementJNI.putCommandInScilabQueue(command);
+ }
+
+
+ /**
+ * Put a command in Scilab command queue so that Scilab executes it
+ * The command is executed as soon as possible and may not be interrupted by another one.
+ * WARNING : if the command is taking some time, scilab will not do anything else
+ * before the command returns.
+ *
+ * @param command the command to execute
+ * @return execution status
+ */
+public static int requestScilabExec(String command) {
+ return InterpreterManagementJNI.requestScilabExec(command);
+ }
+
+
+ /**
+ * Stop Scilab current work
+ * @return execution status
+ */
+public static int interruptScilab() {
+ return InterpreterManagementJNI.interruptScilab();
+ }
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.4
+ * Version 2.0.11
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
/* It is generated code. Disable checkstyle */
//CHECKSTYLE:OFF
-/**
- * All Scilab interpreter management used in Java console
- * @author Vincent COUVERT
- * @copyright INRIA
- */
+ /**
+ * All Scilab interpreter management used in Java console
+ * @author Vincent COUVERT
+ * @copyright INRIA
+ */
class InterpreterManagementJNI {
- /**
- * Constructor
- */
- protected InterpreterManagementJNI() {
- throw new UnsupportedOperationException();
- }
+ /**
+ * Constructor
+ */
+ protected InterpreterManagementJNI() {
+ throw new UnsupportedOperationException();
+ }
- static {
- try {
- System.loadLibrary("sciaction_binding");
- } catch (SecurityException e) {
- System.err.println("A security manager exists and does not allow the loading of the specified dynamic library.");
- System.err.println(e.getLocalizedMessage());
- e.printStackTrace(System.err);
- } catch (UnsatisfiedLinkError e) {
- System.err.println("The native library sciaction_binding does not exist or cannot be found.");
- System.err.println(e.getLocalizedMessage());
- e.printStackTrace(System.err);
- }
+ static {
+ try {
+ System.loadLibrary("sciaction_binding");
+ } catch (SecurityException e) {
+ System.err.println("A security manager exists and does not allow the loading of the specified dynamic library.");
+ System.err.println(e.getLocalizedMessage());
+ e.printStackTrace(System.err);
+ } catch (UnsatisfiedLinkError e) {
+ System.err.println("The native library sciaction_binding does not exist or cannot be found.");
+ System.err.println(e.getLocalizedMessage());
+ e.printStackTrace(System.err);
}
+ }
- public final static native int putCommandInScilabQueue(String jarg1);
- public final static native int requestScilabExec(String jarg1);
- public final static native int interruptScilab();
+ public final static native int putCommandInScilabQueue(String jarg1);
+ public final static native int requestScilabExec(String jarg1);
+ public final static native int interruptScilab();
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * This file is not intended to be easily readable and contains a number of
+ * Version 2.0.11
+ *
+ * This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make
- * changes to this file unless you know what you are doing--modify the SWIG
- * interface file instead.
+ * changes to this file unless you know what you are doing--modify the SWIG
+ * interface file instead.
* ----------------------------------------------------------------------------- */
#define SWIGJAVA
#ifndef SWIGUNUSED
# if defined(__GNUC__)
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-# define SWIGUNUSED __attribute__ ((__unused__))
+# define SWIGUNUSED __attribute__ ((__unused__))
# else
# define SWIGUNUSED
# endif
# elif defined(__ICC)
-# define SWIGUNUSED __attribute__ ((__unused__))
+# define SWIGUNUSED __attribute__ ((__unused__))
# else
-# define SWIGUNUSED
+# define SWIGUNUSED
# endif
#endif
#ifndef SWIG_MSC_UNSUPPRESS_4505
# if defined(_MSC_VER)
# pragma warning(disable : 4505) /* unreferenced local function has been removed */
-# endif
+# endif
#endif
#ifndef SWIGUNUSEDPARM
# ifdef __cplusplus
# define SWIGUNUSEDPARM(p)
# else
-# define SWIGUNUSEDPARM(p) p SWIGUNUSED
+# define SWIGUNUSEDPARM(p) p SWIGUNUSED
# endif
#endif
# define SWIGSTDCALL __stdcall
# else
# define SWIGSTDCALL
-# endif
+# endif
#endif
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
#include "core_math.h"
#include "sci_types.h"
#include "BOOL.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
/*Constants*/
#define ROW_LETTER 'r'
extern "C"
{
#include <string.h>
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "api_scilab.h"
#include "call_scilab.h"
#include "core_math.h"
#include "Scierror.h"
#include "sciprint.h"
#include "localization.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
}
static int api_fake_int; //only for compatibility with Scilab 5 stack functions
extern "C"
{
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include <stdio.h>
#include "api_scilab.h"
#include "sciprint.h"
#include "Scierror.h"
#include "call_scilab.h"
#include "sciprint.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
}
#include "api_internal_poly.h"
#include "api_internal_common.h"
#include "localization.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "charEncoding.h"
}
using namespace types;
#include "api_internal_common.h"
#include "api_internal_sparse.h"
#include "localization.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "call_scilab.h"
}
#include <stdlib.h>
#include "machine.h"
#include "charEncoding.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "api_scilab.h"
#include "api_internal_common.h"
#include "call_scilab.h"
#include "localization.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "freeArrayOfString.h"
#include "os_wcsdup.h"
}
#include "stdarg.h"
#include "localization.h"
#include "os_swprintf.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
}
#include "callable.hxx"
//#include "api_scilab.h"
#include "returnProperty.h"
#include <string.h>
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "double.hxx"
#include "string.hxx"
#include "graphichandle.hxx"
#include "returnPropertyList.h"
#include "returnProperty.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "sciprint.h"
#include "localization.h"
#include "tlist.hxx"
#include <stdio.h>
#include <stdlib.h>
#include "stack-c.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "sciprint.h"
/**
/*--------------------------------------------------------------------------*/
#include "gw_arnoldi.h"
#include "api_scilab.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "callFunctionFromGateway.h"
/*--------------------------------------------------------------------------*/
/*
#include "stdlib.h"
#include "sciprint.h"
#include "doublecomplex.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "eigs.h"
int sci_eigs(char *fname, void* pvApiCtx)
#include <stdlib.h>
#include "eigs.h"
#include "stack-c.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "sciprint.h"
#include "eigs_dependencies.h"
/*--------------------------------------------------------------------------*/
{
Exp* exp;
int code = get_uint8();
- long long nodeNumber = get_uint64();
+ size_t nodeNumber = get_uint64();
Location *loc = get_location();
bool is_verbose = get_bool();
int is_break = get_bool();
return nodeNumber;
}
- void nodeNumber_set(long long _nodeNumber)
+ void nodeNumber_set(size_t _nodeNumber)
{
nodeNumber = _nodeNumber;
}
extern "C" {
#include "more.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
}
using namespace types;
{
#include "lasterror.h"
#include "charEncoding.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
}
namespace ast
#include <string.h>
#include "gw_cacsd.h"
#include "api_scilab.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "Scierror.h"
#include "localization.h"
/*--------------------------------------------------------------------------*/
#include "sciprint.h"
#include "localization.h"
#include "BOOL.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "gw_cacsd.h"
#include "elem_common.h"
/*--------------------------------------------------------------------------*/
#include "sciprint.h"
#include "localization.h"
#include "BOOL.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "gw_cacsd.h"
#include "elem_common.h"
/*--------------------------------------------------------------------------*/
#include "sciprint.h"
#include "localization.h"
#include "BOOL.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "gw_cacsd.h"
#include "elem_common.h"
/*--------------------------------------------------------------------------*/
#include <string.h>
#include "gw_call_scilab.h"
#include "api_scilab.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "callFunctionFromGateway.h"
/*--------------------------------------------------------------------------*/
int gw_call_scilab(void)
*/
#include "gw_core.h"
#include "api_scilab.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "fromc.h"
#include "localization.h"
#include "Scierror.h"
*/
#include "gw_core.h"
#include "api_scilab.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "fromjava.h"
#include "localization.h"
#include "Scierror.h"
#include <stdio.h>
#include <string.h>
#include "call_scilab.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "localization.h"
#include "freeArrayOfString.h"
#include "os_strdup.h"
#include "BOOL.h"
#include "call_scilab.h"
#include "lasterror.h" /* clearInternalLastError, getInternalLastErrorValue */
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "sci_mode.h"
#include "fromc.h"
#include "LaunchScilabSignal.h"
#include <dirent.h>
#endif
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "PATH_MAX.h"
#include "scicurdir.h"
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.4
+ * Version 2.0.11
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
package org.scilab.modules.commons;
-/**
- * Some file utils
- * @author Calixte DENIZET
- * @copyright DIGITEO 2011
- */
+ /**
+ * Some file utils
+ * @author Calixte DENIZET
+ * @copyright DIGITEO 2011
+ */
public class CommonFileUtils {
- /**
- * Constructor
- */
- protected CommonFileUtils() {
- throw new UnsupportedOperationException();
- }
- public static int isEmptyDirectory(String dirName) {
- return CommonFileUtilsJNI.isEmptyDirectory(dirName);
- }
+ /**
+ * Constructor
+ */
+ protected CommonFileUtils() {
+ throw new UnsupportedOperationException();
+ }
+ public static int isEmptyDirectory(String dirName) {
+ return CommonFileUtilsJNI.isEmptyDirectory(dirName);
+ }
-
- /**
- * Get the current working directory
- * @return the Scilab CWD
- */
- public static String getCWD() {
- return CommonFileUtilsJNI.getCWD();
- }
+
+ /**
+ * Get the current working directory
+ * @return the Scilab CWD
+ */
+public static String getCWD() {
+ return CommonFileUtilsJNI.getCWD();
+ }
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.4
+ * Version 2.0.11
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
/* It is generated code. Disable checkstyle */
//CHECKSTYLE:OFF
-/**
- * Some file utils
- * @author Calixte DENIZET
- * @copyright DIGITEO 2011
- */
+ /**
+ * Some file utils
+ * @author Calixte DENIZET
+ * @copyright DIGITEO 2011
+ */
public class CommonFileUtilsJNI {
- /**
- * Constructor
- */
- protected CommonFileUtilsJNI() {
- throw new UnsupportedOperationException();
- }
+ /**
+ * Constructor
+ */
+ protected CommonFileUtilsJNI() {
+ throw new UnsupportedOperationException();
+ }
- static {
- try {
- System.loadLibrary("scicommons");
- } catch (SecurityException e) {
- System.err.println("A security manager exists and does not allow the loading of the specified dynamic library.");
- System.err.println(e.getLocalizedMessage());
- System.exit(-1);
- } catch (UnsatisfiedLinkError e) {
- System.err.println("The native library scicommons does not exist or cannot be found.");
- if (System.getenv("CONTINUE_ON_JNI_ERROR") == null) {
- System.err.println(e.getLocalizedMessage());
- System.err.println("Current java.library.path is : " + System.getProperty("java.library.path"));
- System.exit(-1);
- } else {
- System.err.println("Continuing anyway because of CONTINUE_ON_JNI_ERROR");
- }
+ static {
+ try {
+ System.loadLibrary("scicommons");
+ } catch (SecurityException e) {
+ System.err.println("A security manager exists and does not allow the loading of the specified dynamic library.");
+ System.err.println(e.getLocalizedMessage());
+ System.exit(-1);
+ } catch (UnsatisfiedLinkError e) {
+ System.err.println("The native library scicommons does not exist or cannot be found.");
+ if (System.getenv("CONTINUE_ON_JNI_ERROR") == null) {
+ System.err.println(e.getLocalizedMessage());
+ System.err.println("Current java.library.path is : "+System.getProperty("java.library.path"));
+ System.exit(-1);
+ }else{
+ System.err.println("Continuing anyway because of CONTINUE_ON_JNI_ERROR");
}
}
+ }
- public final static native int isEmptyDirectory(String jarg1);
- public final static native String getCWD();
+ public final static native int isEmptyDirectory(String jarg1);
+ public final static native String getCWD();
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.4
+ * Version 2.0.11
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
package org.scilab.modules.commons;
-/**
- * Some commons values from Scilab engine to Java
- * @author Sylvestre LEDRU
- * @copyright DIGITEO 2010
- */
+ /**
+ * Some commons values from Scilab engine to Java
+ * @author Sylvestre LEDRU
+ * @copyright DIGITEO 2010
+ */
public class ScilabCommons {
- /**
- * Constructor
- */
- protected ScilabCommons() {
- throw new UnsupportedOperationException();
- }
-
- /**
- * Get SCIHOME variable from Scilab
- * @return SCIHOME value
- */
- public static String getSCIHOME() {
- return ScilabCommonsJNI.getSCIHOME();
- }
-
- public static String getTMPDIR() {
- return ScilabCommonsJNI.getTMPDIR();
- }
-
- public static String getlanguage() {
- return ScilabCommonsJNI.getlanguage();
- }
-
- public static String createtempfilename(String prefix, int bShortFormat) {
- return ScilabCommonsJNI.createtempfilename(prefix, bShortFormat);
- }
-
- public static int getieee() {
- return ScilabCommonsJNI.getieee();
- }
-
- public static void setieee(int arg0) {
- ScilabCommonsJNI.setieee(arg0);
- }
-
-
- /**
- * Set the Scilab ieee mode
- */
- public static void setformat(String format, int width) {
- ScilabCommonsJNI.setformat(format, width);
- }
-
-
- /**
- * returns the Scilab format ("v" or "e")
- * @return format
- */
- public static String getformat() {
- return ScilabCommonsJNI.getformat();
- }
-
-
- /**
- * returns the Scilab format width
- * @return format
- */
- public static int getformatwidth() {
- return ScilabCommonsJNI.getformatwidth();
- }
-
-
- /**
- * returns the Scilab version major number
- * @return version major
- */
- public static int getScilabVersionMajor() {
- return ScilabCommonsJNI.getScilabVersionMajor();
- }
-
-
- /**
- * returns the Scilab version minor number
- * @return version minor
- */
- public static int getScilabVersionMinor() {
- return ScilabCommonsJNI.getScilabVersionMinor();
- }
-
-
- /**
- * returns the Scilab version maintenance number
- * @return version maintenance
- */
- public static int getScilabVersionMaintenance() {
- return ScilabCommonsJNI.getScilabVersionMaintenance();
- }
-
-
- /**
- * returns the Scilab version timestamp number
- * @return version timestamp
- */
- public static int getScilabVersionTimestamp() {
- return ScilabCommonsJNI.getScilabVersionTimestamp();
- }
-
-
- /**
- * returns the Scilab version as string
- * @return version Scilab version as a string
- */
- public static String getScilabVersionAsString() {
- return ScilabCommonsJNI.getScilabVersionAsString();
- }
+ /**
+ * Constructor
+ */
+ protected ScilabCommons() {
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * Get SCIHOME variable from Scilab
+ * @return SCIHOME value
+ */
+public static String getSCIHOME() {
+ return ScilabCommonsJNI.getSCIHOME();
+ }
+
+ public static String getTMPDIR() {
+ return ScilabCommonsJNI.getTMPDIR();
+ }
+
+ public static String getlanguage() {
+ return ScilabCommonsJNI.getlanguage();
+ }
+
+ public static String createtempfilename(String prefix, int bShortFormat) {
+ return ScilabCommonsJNI.createtempfilename(prefix, bShortFormat);
+ }
+
+ public static int getieee() {
+ return ScilabCommonsJNI.getieee();
+ }
+
+ public static void setieee(int arg0) {
+ ScilabCommonsJNI.setieee(arg0);
+ }
+
+
+ /**
+ * Set the Scilab ieee mode
+ */
+public static void setformat(String format, int width) {
+ ScilabCommonsJNI.setformat(format, width);
+ }
+
+
+ /**
+ * returns the Scilab format ("v" or "e")
+ * @return format
+ */
+public static String getformat() {
+ return ScilabCommonsJNI.getformat();
+ }
+
+
+ /**
+ * returns the Scilab format width
+ * @return format
+ */
+public static int getformatwidth() {
+ return ScilabCommonsJNI.getformatwidth();
+ }
+
+
+ /**
+ * returns the Scilab version major number
+ * @return version major
+ */
+public static int getScilabVersionMajor() {
+ return ScilabCommonsJNI.getScilabVersionMajor();
+ }
+
+
+ /**
+ * returns the Scilab version minor number
+ * @return version minor
+ */
+public static int getScilabVersionMinor() {
+ return ScilabCommonsJNI.getScilabVersionMinor();
+ }
+
+
+ /**
+ * returns the Scilab version maintenance number
+ * @return version maintenance
+ */
+public static int getScilabVersionMaintenance() {
+ return ScilabCommonsJNI.getScilabVersionMaintenance();
+ }
+
+
+ /**
+ * returns the Scilab version timestamp number
+ * @return version timestamp
+ */
+public static int getScilabVersionTimestamp() {
+ return ScilabCommonsJNI.getScilabVersionTimestamp();
+ }
+
+
+ /**
+ * returns the Scilab version as string
+ * @return version Scilab version as a string
+ */
+public static String getScilabVersionAsString() {
+ return ScilabCommonsJNI.getScilabVersionAsString();
+ }
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.4
+ * Version 2.0.11
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
/* It is generated code. Disable checkstyle */
//CHECKSTYLE:OFF
-/**
- * Some commons values from Scilab engine to Java
- * @author Sylvestre LEDRU
- * @copyright DIGITEO 2010
- */
+ /**
+ * Some commons values from Scilab engine to Java
+ * @author Sylvestre LEDRU
+ * @copyright DIGITEO 2010
+ */
public class ScilabCommonsJNI {
- /**
- * Constructor
- */
- protected ScilabCommonsJNI() {
- throw new UnsupportedOperationException();
- }
+ /**
+ * Constructor
+ */
+ protected ScilabCommonsJNI() {
+ throw new UnsupportedOperationException();
+ }
- static {
- try {
- System.loadLibrary("scicommons");
- } catch (SecurityException e) {
- System.err.println("A security manager exists and does not allow the loading of the specified dynamic library.");
- System.err.println(e.getLocalizedMessage());
- System.exit(-1);
- } catch (UnsatisfiedLinkError e) {
- System.err.println("The native library scicommons does not exist or cannot be found.");
- if (System.getenv("CONTINUE_ON_JNI_ERROR") == null) {
- System.err.println(e.getLocalizedMessage());
- System.err.println("Current java.library.path is : " + System.getProperty("java.library.path"));
- System.exit(-1);
- } else {
- System.err.println("Continuing anyway because of CONTINUE_ON_JNI_ERROR");
- }
+ static {
+ try {
+ System.loadLibrary("scicommons");
+ } catch (SecurityException e) {
+ System.err.println("A security manager exists and does not allow the loading of the specified dynamic library.");
+ System.err.println(e.getLocalizedMessage());
+ System.exit(-1);
+ } catch (UnsatisfiedLinkError e) {
+ System.err.println("The native library scicommons does not exist or cannot be found.");
+ if (System.getenv("CONTINUE_ON_JNI_ERROR") == null) {
+ System.err.println(e.getLocalizedMessage());
+ System.err.println("Current java.library.path is : "+System.getProperty("java.library.path"));
+ System.exit(-1);
+ }else{
+ System.err.println("Continuing anyway because of CONTINUE_ON_JNI_ERROR");
}
}
+ }
- public final static native String getSCIHOME();
- public final static native String getTMPDIR();
- public final static native String getlanguage();
- public final static native String createtempfilename(String jarg1, int jarg2);
- public final static native int getieee();
- public final static native void setieee(int jarg1);
- public final static native void setformat(String jarg1, int jarg2);
- public final static native String getformat();
- public final static native int getformatwidth();
- public final static native int getScilabVersionMajor();
- public final static native int getScilabVersionMinor();
- public final static native int getScilabVersionMaintenance();
- public final static native int getScilabVersionTimestamp();
- public final static native String getScilabVersionAsString();
+ public final static native String getSCIHOME();
+ public final static native String getTMPDIR();
+ public final static native String getlanguage();
+ public final static native String createtempfilename(String jarg1, int jarg2);
+ public final static native int getieee();
+ public final static native void setieee(int jarg1);
+ public final static native void setformat(String jarg1, int jarg2);
+ public final static native String getformat();
+ public final static native int getformatwidth();
+ public final static native int getScilabVersionMajor();
+ public final static native int getScilabVersionMinor();
+ public final static native int getScilabVersionMaintenance();
+ public final static native int getScilabVersionTimestamp();
+ public final static native String getScilabVersionAsString();
}
%module CommonFileUtils
%{
#include "../../includes/fileutils.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
%}
%include "../../../jvm/src/jni/scilab_typemaps.i"
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * This file is not intended to be easily readable and contains a number of
+ * Version 2.0.11
+ *
+ * This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make
- * changes to this file unless you know what you are doing--modify the SWIG
- * interface file instead.
+ * changes to this file unless you know what you are doing--modify the SWIG
+ * interface file instead.
* ----------------------------------------------------------------------------- */
#define SWIGJAVA
#ifndef SWIGUNUSED
# if defined(__GNUC__)
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-# define SWIGUNUSED __attribute__ ((__unused__))
+# define SWIGUNUSED __attribute__ ((__unused__))
# else
# define SWIGUNUSED
# endif
# elif defined(__ICC)
-# define SWIGUNUSED __attribute__ ((__unused__))
+# define SWIGUNUSED __attribute__ ((__unused__))
# else
-# define SWIGUNUSED
+# define SWIGUNUSED
# endif
#endif
#ifndef SWIG_MSC_UNSUPPRESS_4505
# if defined(_MSC_VER)
# pragma warning(disable : 4505) /* unreferenced local function has been removed */
-# endif
+# endif
#endif
#ifndef SWIGUNUSEDPARM
# ifdef __cplusplus
# define SWIGUNUSEDPARM(p)
# else
-# define SWIGUNUSEDPARM(p) p SWIGUNUSED
+# define SWIGUNUSEDPARM(p) p SWIGUNUSED
# endif
#endif
# define SWIGSTDCALL __stdcall
# else
# define SWIGSTDCALL
-# endif
+# endif
#endif
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
#include "../../includes/fileutils.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#ifdef __cplusplus
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * This file is not intended to be easily readable and contains a number of
+ * Version 2.0.11
+ *
+ * This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make
- * changes to this file unless you know what you are doing--modify the SWIG
- * interface file instead.
+ * changes to this file unless you know what you are doing--modify the SWIG
+ * interface file instead.
* ----------------------------------------------------------------------------- */
#define SWIGJAVA
#ifndef SWIGUNUSED
# if defined(__GNUC__)
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-# define SWIGUNUSED __attribute__ ((__unused__))
+# define SWIGUNUSED __attribute__ ((__unused__))
# else
# define SWIGUNUSED
# endif
# elif defined(__ICC)
-# define SWIGUNUSED __attribute__ ((__unused__))
+# define SWIGUNUSED __attribute__ ((__unused__))
# else
-# define SWIGUNUSED
+# define SWIGUNUSED
# endif
#endif
#ifndef SWIG_MSC_UNSUPPRESS_4505
# if defined(_MSC_VER)
# pragma warning(disable : 4505) /* unreferenced local function has been removed */
-# endif
+# endif
#endif
#ifndef SWIGUNUSEDPARM
# ifdef __cplusplus
# define SWIGUNUSEDPARM(p)
# else
-# define SWIGUNUSEDPARM(p) p SWIGUNUSED
+# define SWIGUNUSEDPARM(p) p SWIGUNUSED
# endif
#endif
# define SWIGSTDCALL __stdcall
# else
# define SWIGSTDCALL
-# endif
+# endif
#endif
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
extern "C"
{
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "localization.h"
#include "completion.h"
#include "Scierror.h"
#include <string.h>
#include <ctype.h>
#include "completeLine.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "os_strdup.h"
#include "getPartLine.h"
#include "splitpath.h"
#include "completeLine_wrap_java.h"
#include "completeLine.h"
#include "getPartLine.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
/*--------------------------------------------------------------------------*/
char *completelineforjava(char *currentLine, char *stringToAdd, BOOL isFile, char *postCaretLine)
{
#include <string.h>
#include <stdlib.h>
#include "completion.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "getvariablesname.h"
#include "commandwords.h"
#include "getfunctionsname.h"
*/
#include <string.h>
#include "completion_generic.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "os_strdup.h"
#include "stricmp.h"
/*--------------------------------------------------------------------------*/
#include <stdlib.h>
#include "getCommonPart.h"
#include "core_math.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "os_strdup.h"
/*--------------------------------------------------------------------------*/
static int cmp( const void *a , const void *b)
#include "os_strdup.h"
#include "getPartLine.h"
#include "core_math.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
/*--------------------------------------------------------------------------*/
#define SPACE_CHAR ' '
/*--------------------------------------------------------------------------*/
#include "PATH_MAX.h"
#include "scicurdir.h" /* scigetcwd */
#include "findfiles.h" /* findfiles */
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "expandPathVariable.h"
#include "machine.h"
#include "isdir.h"
#include <stdlib.h>
#include <string.h>
#include "toolsdictionary.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
/*--------------------------------------------------------------------------*/
/**
* merge two strings array
extern "C"
{
#include "api_scilab.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
}
using namespace org_modules_external_objects;
extern "C"
{
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "os_strdup.h"
}
extern "C"
{
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "os_strdup.h"
#include "completion.h"
}
{
#include "freeArrayOfString.h"
#include "api_scilab.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
}
namespace org_modules_completion
extern "C"
{
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "os_strdup.h"
}
{
#include "freeArrayOfString.h"
#include "api_scilab.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
}
namespace org_modules_completion
extern "C"
{
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "os_strdup.h"
}
extern "C"
{
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "os_strdup.h"
}
extern "C"
{
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "os_strdup.h"
}
extern "C"
{
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "os_strdup.h"
}
extern "C"
{
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "os_strdup.h"
}
extern "C"
{
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "os_strdup.h"
}
extern "C"
{
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "os_strdup.h"
}
extern "C"
{
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "os_strdup.h"
}
#include "completionDictionary.h"
#include "charEncoding.h"
#include "freeArrayOfString.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "os_strdup.h"
#include "commandwords.h" // to get old keywords
#include "getDictionarySetProperties.h" // to get old set properties
#include <stdlib.h> /* qsort */
#include "Scierror.h"
#include "api_scilab.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "getfieldsdictionary.h"
#include "getPartLine.h"
#include "completion.h"
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.4
+ * Version 2.0.11
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
package org.scilab.modules.completion;
-/**
- * @author Allan CORNET
- * @copyright INRIA 2007
- */
+ /**
+ * @author Allan CORNET
+ * @copyright INRIA 2007
+ */
public class Completion {
- /**
- * Constructor
- */
- protected Completion() {
- throw new UnsupportedOperationException();
- }
-
- /**
- * completion function on all types for scilab
- * @param[in] somechars first characters of a word
- * @return an array of chars
- */
- public static String[] searchAllDictionaries(String somechars) {
- return CompletionJNI.searchAllDictionaries(somechars);
- }
-
-
- /**
- * completion function on Functions for scilab
- * @param[in] somechars first characters of a word
- * @return an array of chars
- */
- public static String[] searchFunctionsDictionary(String somechars) {
- return CompletionJNI.searchFunctionsDictionary(somechars);
- }
-
-
- /**
- * completion function on command words for scilab
- * @param[in] somechars first characters of a word
- * @return an array of chars
- */
- public static String[] searchCommandsDictionary(String somechars) {
- return CompletionJNI.searchCommandsDictionary(somechars);
- }
-
-
- /**
- * completion function on Macros in libraries for scilab
- * @param[in] somechars first characters of a word
- * @return an array of chars
- */
- public static String[] searchMacrosDictionary(String somechars) {
- return CompletionJNI.searchMacrosDictionary(somechars);
- }
-
-
- /**
- * completion function on Variables for scilab
- * @param[in] somechars first characters of a word
- * @return an array of chars
- */
- public static String[] searchVariablesDictionary(String somechars) {
- return CompletionJNI.searchVariablesDictionary(somechars);
- }
-
-
- /**
- * completion function on files for scilab
- * @param[in] somechars first characters of a word
- * @return an array of chars
- */
- public static String[] searchFilesDictionary(String somechars) {
- return CompletionJNI.searchFilesDictionary(somechars);
- }
-
-
- /**
- * completion function on files for scilab
- * @param[in] the line before the caret
- * @param[in] the part
- * @return an array of chars
- */
- public static String[] searchFieldsDictionary(String lineBeforeCaret, String pattern) {
- return CompletionJNI.searchFieldsDictionary(lineBeforeCaret, pattern);
- }
-
-
- /**
- * completion handle graphics properties for scilab
- * @param[in] somechars first characters of a word
- * @return an array of chars
- */
- public static String[] searchHandleGraphicsPropertiesDictionary(String somechars) {
- return CompletionJNI.searchHandleGraphicsPropertiesDictionary(somechars);
- }
-
-
- /**
- * pre parsing current line to search with completion
- * @param[in] current line
- * @return word to find with completion
- */
- public static String getPartLevel(String line) {
- return CompletionJNI.getPartLevel(line);
- }
-
-
- /**
- * pre parsing current line to search with completion (file)
- * @param[in] current line
- * @return word to find with completion
- */
- public static String getFilePartLevel(String line) {
- return CompletionJNI.getFilePartLevel(line);
- }
-
-
- /**
- * Get common part to a array
- * @param[in] string array
- * @param[in] size of string array
- * @return common part
- */
- public static String getCommonPart(String[] dictionnary, int sizeDictionnary) {
- return CompletionJNI.getCommonPart(dictionnary, sizeDictionnary);
- }
-
-
- /**
- * complete line
- * @param[in] current line (before caret)
- * @param[in] line to add
- * @param[in] type of line to add
- * @param[in] line after caret
- * @return modified line
- */
- public static String completelineforjava(String currentLine, String stringToAdd, boolean isFile, String postCaretLine) {
- return CompletionJNI.completelineforjava(currentLine, stringToAdd, isFile, postCaretLine);
- }
+ /**
+ * Constructor
+ */
+ protected Completion() {
+ throw new UnsupportedOperationException();
+ }
+
+/**
+* completion function on all types for scilab
+* @param[in] somechars first characters of a word
+* @return an array of chars
+*/
+public static String[] searchAllDictionaries(String somechars) {
+ return CompletionJNI.searchAllDictionaries(somechars);
+ }
+
+
+/**
+* completion function on Functions for scilab
+* @param[in] somechars first characters of a word
+* @return an array of chars
+*/
+public static String[] searchFunctionsDictionary(String somechars) {
+ return CompletionJNI.searchFunctionsDictionary(somechars);
+ }
+
+
+/**
+* completion function on command words for scilab
+* @param[in] somechars first characters of a word
+* @return an array of chars
+*/
+public static String[] searchCommandsDictionary(String somechars) {
+ return CompletionJNI.searchCommandsDictionary(somechars);
+ }
+
+
+/**
+* completion function on Macros in libraries for scilab
+* @param[in] somechars first characters of a word
+* @return an array of chars
+*/
+public static String[] searchMacrosDictionary(String somechars) {
+ return CompletionJNI.searchMacrosDictionary(somechars);
+ }
+
+
+/**
+* completion function on Variables for scilab
+* @param[in] somechars first characters of a word
+* @return an array of chars
+*/
+public static String[] searchVariablesDictionary(String somechars) {
+ return CompletionJNI.searchVariablesDictionary(somechars);
+ }
+
+
+/**
+* completion function on files for scilab
+* @param[in] somechars first characters of a word
+* @return an array of chars
+*/
+public static String[] searchFilesDictionary(String somechars) {
+ return CompletionJNI.searchFilesDictionary(somechars);
+ }
+
+
+/**
+* completion function on files for scilab
+* @param[in] the line before the caret
+* @param[in] the part
+* @return an array of chars
+*/
+public static String[] searchFieldsDictionary(String lineBeforeCaret, String pattern) {
+ return CompletionJNI.searchFieldsDictionary(lineBeforeCaret, pattern);
+ }
+
+
+/**
+* completion handle graphics properties for scilab
+* @param[in] somechars first characters of a word
+* @return an array of chars
+*/
+public static String[] searchHandleGraphicsPropertiesDictionary(String somechars) {
+ return CompletionJNI.searchHandleGraphicsPropertiesDictionary(somechars);
+ }
+
+
+/**
+* pre parsing current line to search with completion
+* @param[in] current line
+* @return word to find with completion
+*/
+public static String getPartLevel(String line) {
+ return CompletionJNI.getPartLevel(line);
+ }
+
+
+/**
+* pre parsing current line to search with completion (file)
+* @param[in] current line
+* @return word to find with completion
+*/
+public static String getFilePartLevel(String line) {
+ return CompletionJNI.getFilePartLevel(line);
+ }
+
+
+/**
+* Get common part to a array
+* @param[in] string array
+* @param[in] size of string array
+* @return common part
+*/
+public static String getCommonPart(String[] dictionnary, int sizeDictionnary) {
+ return CompletionJNI.getCommonPart(dictionnary, sizeDictionnary);
+ }
+
+
+/**
+* complete line
+* @param[in] current line (before caret)
+* @param[in] line to add
+* @param[in] type of line to add
+* @param[in] line after caret
+* @return modified line
+*/
+public static String completelineforjava(String currentLine, String stringToAdd, boolean isFile, String postCaretLine) {
+ return CompletionJNI.completelineforjava(currentLine, stringToAdd, isFile, postCaretLine);
+ }
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.4
+ * Version 2.0.11
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
/* It is generated code. Disable checkstyle */
//CHECKSTYLE:OFF
-/**
- * @author Allan CORNET
- * @copyright INRIA 2007
- */
+ /**
+ * @author Allan CORNET
+ * @copyright INRIA 2007
+ */
public class CompletionJNI {
- /**
- * Constructor
- */
- protected CompletionJNI() {
- throw new UnsupportedOperationException();
- }
+ /**
+ * Constructor
+ */
+ protected CompletionJNI() {
+ throw new UnsupportedOperationException();
+ }
- static {
- try {
- System.loadLibrary("scicompletion");
- } catch (SecurityException e) {
- System.err.println("A security manager exists and does not allow the loading of the specified dynamic library.");
- System.err.println(e.getLocalizedMessage());
- e.printStackTrace(System.err);
- } catch (UnsatisfiedLinkError e) {
- System.err.println("The native library scicompletion does not exist or cannot be found.");
- System.err.println(e.getLocalizedMessage());
- e.printStackTrace(System.err);
- }
+ static {
+ try {
+ System.loadLibrary("scicompletion");
+ } catch (SecurityException e) {
+ System.err.println("A security manager exists and does not allow the loading of the specified dynamic library.");
+ System.err.println(e.getLocalizedMessage());
+ e.printStackTrace(System.err);
+ } catch (UnsatisfiedLinkError e) {
+ System.err.println("The native library scicompletion does not exist or cannot be found.");
+ System.err.println(e.getLocalizedMessage());
+ e.printStackTrace(System.err);
}
+ }
- public final static native String[] searchAllDictionaries(String jarg1);
- public final static native String[] searchFunctionsDictionary(String jarg1);
- public final static native String[] searchCommandsDictionary(String jarg1);
- public final static native String[] searchMacrosDictionary(String jarg1);
- public final static native String[] searchVariablesDictionary(String jarg1);
- public final static native String[] searchFilesDictionary(String jarg1);
- public final static native String[] searchFieldsDictionary(String jarg1, String jarg2);
- public final static native String[] searchHandleGraphicsPropertiesDictionary(String jarg1);
- public final static native String getPartLevel(String jarg1);
- public final static native String getFilePartLevel(String jarg1);
- public final static native String getCommonPart(String[] jarg1, int jarg2);
- public final static native String completelineforjava(String jarg1, String jarg2, boolean jarg3, String jarg4);
+ public final static native String[] searchAllDictionaries(String jarg1);
+ public final static native String[] searchFunctionsDictionary(String jarg1);
+ public final static native String[] searchCommandsDictionary(String jarg1);
+ public final static native String[] searchMacrosDictionary(String jarg1);
+ public final static native String[] searchVariablesDictionary(String jarg1);
+ public final static native String[] searchFilesDictionary(String jarg1);
+ public final static native String[] searchFieldsDictionary(String jarg1, String jarg2);
+ public final static native String[] searchHandleGraphicsPropertiesDictionary(String jarg1);
+ public final static native String getPartLevel(String jarg1);
+ public final static native String getFilePartLevel(String jarg1);
+ public final static native String getCommonPart(String[] jarg1, int jarg2);
+ public final static native String completelineforjava(String jarg1, String jarg2, boolean jarg3, String jarg4);
}
#include "../c/completeLine_wrap_java.h"
#include "getCommonPart.h"
#include "getPartLine.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
%}
%include "../../../jvm/src/jni/scilab_typemaps.i"
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * This file is not intended to be easily readable and contains a number of
+ * Version 2.0.11
+ *
+ * This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make
- * changes to this file unless you know what you are doing--modify the SWIG
- * interface file instead.
+ * changes to this file unless you know what you are doing--modify the SWIG
+ * interface file instead.
* ----------------------------------------------------------------------------- */
#define SWIGJAVA
#ifndef SWIGUNUSED
# if defined(__GNUC__)
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-# define SWIGUNUSED __attribute__ ((__unused__))
+# define SWIGUNUSED __attribute__ ((__unused__))
# else
# define SWIGUNUSED
# endif
# elif defined(__ICC)
-# define SWIGUNUSED __attribute__ ((__unused__))
+# define SWIGUNUSED __attribute__ ((__unused__))
# else
-# define SWIGUNUSED
+# define SWIGUNUSED
# endif
#endif
#ifndef SWIG_MSC_UNSUPPRESS_4505
# if defined(_MSC_VER)
# pragma warning(disable : 4505) /* unreferenced local function has been removed */
-# endif
+# endif
#endif
#ifndef SWIGUNUSEDPARM
# ifdef __cplusplus
# define SWIGUNUSEDPARM(p)
# else
-# define SWIGUNUSEDPARM(p) p SWIGUNUSED
+# define SWIGUNUSEDPARM(p) p SWIGUNUSED
# endif
#endif
# define SWIGSTDCALL __stdcall
# else
# define SWIGSTDCALL
-# endif
+# endif
#endif
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
#include "../c/completeLine_wrap_java.h"
#include "getCommonPart.h"
#include "getPartLine.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#ifdef __cplusplus
#include <string.h>
#include "gw_console.h"
#include "api_scilab.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "callFunctionFromGateway.h"
/*--------------------------------------------------------------------------*/
int gw_console(void)
#include "ConsoleRead.h"
#include "SetConsolePrompt.h"
#include "sci_mode.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "prompt.h"
#include "HistoryManager.h"
#include "storeCommand.h" /* for ismenu() */
#include "cliDisplayManagement.h"
#include "freeArrayOfString.h"
#include "cliPrompt.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "completion.h"
#include "getPartLine.h"
#include "getCommonPart.h"
#include "cliPrompt.h"
#include "cliHistory.h"
#include "HistoryManager.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "charEncoding.h"
/* Get the prev command line */
#include "initConsoleMode.h"
#include "cliPrompt.h"
#include "getKey.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "HistoryManager.h"
#include "charEncoding.h"
#include "cliDisplayManagement.h"
#include <stdio.h>
#include <string.h>
#include <errno.h>
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "initConsoleMode.h"
static void canonicMode(struct termios *t)
#include <stdio.h>
#include <stdlib.h>
#include "dropFiles.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "storeCommand.h" /* storecommand */
#include "FindFileExtension.h"
#include "URIFileToFilename.h"
#include "sciprint.h"
#include "warningmode.h"
#include "localization.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "os_strdup.h"
#include "BOOL.h"
/*------------------------------------------------------------------------*/
#include <string.h>
#include "promptecho.h"
#include "basout.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "prompt.h"
#include "os_strdup.h"
/*--------------------------------------------------------------------------*/
#include "storeCommand.h" /* StoreCommand */
#include "clrscr_nw.h"
#include "TermLine.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
/*--------------------------------------------------------------------------*/
void ControlC_Command(void)
{
#include <string.h>
#include <stdlib.h>
#include "TermCompletion.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "freeArrayOfString.h"
#include "localization.h"
#include "TermLine.h"
#include <stdio.h>
#include <ctype.h>
#include "TermConsole.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "TermCommand.h"
#include "FocusOnConsole.h"
#include "os_strdup.h"
#include "HistoryManager.h"
#include "TermConsole.h"
#include "localization.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "TermPosition.h"
#include "../../../windows_tools/src/c/scilab_windows/console.h"
#include "os_strdup.h"
/*--------------------------------------------------------------------------*/
#include <string.h>
#include "TermReadAndProcess.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "prompt.h"
#include "TermConsole.h"
/*--------------------------------------------------------------------------*/
#include "./../../jvm/includes/getScilabObject.h"
#include "../../../jvm/includes/getScilabJNIEnv.h"
}
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "GetCharWithoutOutput.hxx"
/*--------------------------------------------------------------------------*/
#include "CallScilabBridge.hxx"
extern "C"
{
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "scilabRead.h"
#include "SetConsolePrompt.h"
#include "prompt.h"
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.4
+ * Version 2.0.11
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
package org.scilab.modules.console;
-/**
- * @author Allan CORNET
- * @copyright INRIA 2007
- */
+ /**
+ * @author Allan CORNET
+ * @copyright INRIA 2007
+ */
public class DropFiles {
- /**
- * Constructor
- */
- protected DropFiles() {
- throw new UnsupportedOperationException();
- }
-
- /**
- * drop function on all types for scilab
- * @param files list of files
- * @return true or false
- */
- public static boolean dropFiles(String[] files) {
- return DropFilesJNI.dropFiles(files);
- }
+ /**
+ * Constructor
+ */
+ protected DropFiles() {
+ throw new UnsupportedOperationException();
+ }
+
+/**
+* drop function on all types for scilab
+* @param files list of files
+* @return true or false
+*/
+public static boolean dropFiles(String[] files) {
+ return DropFilesJNI.dropFiles(files);
+ }
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.4
+ * Version 2.0.11
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
/* It is generated code. Disable checkstyle */
//CHECKSTYLE:OFF
-/**
- * @author Allan CORNET
- * @copyright INRIA 2007
- */
+ /**
+ * @author Allan CORNET
+ * @copyright INRIA 2007
+ */
public class DropFilesJNI {
- /**
- * Constructor
- */
- protected DropFilesJNI() {
- throw new UnsupportedOperationException();
- }
+ /**
+ * Constructor
+ */
+ protected DropFilesJNI() {
+ throw new UnsupportedOperationException();
+ }
- static {
- try {
- System.loadLibrary("sciconsole");
- } catch (SecurityException e) {
- System.err.println("A security manager exists and does not allow the loading of the specified dynamic library.");
- System.err.println(e.getLocalizedMessage());
- System.exit(-1);
- } catch (UnsatisfiedLinkError e) {
- System.err.println("The native library sciconsole does not exist or cannot be found.");
- if (System.getenv("CONTINUE_ON_JNI_ERROR") == null) {
- System.err.println(e.getLocalizedMessage());
- System.err.println("Current java.library.path is : " + System.getProperty("java.library.path"));
- System.exit(-1);
- } else {
- System.err.println("Continuing anyway because of CONTINUE_ON_JNI_ERROR");
- }
+ static {
+ try {
+ System.loadLibrary("sciconsole");
+ } catch (SecurityException e) {
+ System.err.println("A security manager exists and does not allow the loading of the specified dynamic library.");
+ System.err.println(e.getLocalizedMessage());
+ System.exit(-1);
+ } catch (UnsatisfiedLinkError e) {
+ System.err.println("The native library sciconsole does not exist or cannot be found.");
+ if (System.getenv("CONTINUE_ON_JNI_ERROR") == null) {
+ System.err.println(e.getLocalizedMessage());
+ System.err.println("Current java.library.path is : "+System.getProperty("java.library.path"));
+ System.exit(-1);
+ }else{
+ System.err.println("Continuing anyway because of CONTINUE_ON_JNI_ERROR");
}
}
+ }
- public final static native boolean dropFiles(String[] jarg1);
+ public final static native boolean dropFiles(String[] jarg1);
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.4
+ * Version 2.0.11
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
package org.scilab.modules.console;
-/**
- * All Scilab gui management used in Java console
- * @author Vincent COUVERT
- * @copyright INRIA 2007
- */
+ /**
+ * All Scilab gui management used in Java console
+ * @author Vincent COUVERT
+ * @copyright INRIA 2007
+ */
public class GuiManagement {
- /**
- * Constructor
- */
- protected GuiManagement() {
- throw new UnsupportedOperationException();
- }
+ /**
+ * Constructor
+ */
+ protected GuiManagement() {
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * Set Scilab parameters used to display data according the size of the console
+ * @param nbRows number of rows that can be used to display data
+ * @param nbCols number of columns that can be used to display data
+ */
+ static void setScilabLines(int nbRows, int nbCols) {
+ GuiManagementJNI.setScilabLines(nbRows, nbCols);
+ }
- /**
- * Set Scilab parameters used to display data according the size of the console
- * @param nbRows number of rows that can be used to display data
- * @param nbCols number of columns that can be used to display data
- */
- static void setScilabLines(int nbRows, int nbCols) {
- GuiManagementJNI.setScilabLines(nbRows, nbCols);
- }
-
- public static void forceScilabLines(int nbRows, int nbCols) {
- GuiManagementJNI.forceScilabLines(nbRows, nbCols);
- }
+ public static void forceScilabLines(int nbRows, int nbCols) {
+ GuiManagementJNI.forceScilabLines(nbRows, nbCols);
+ }
}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.4
+ * Version 2.0.11
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
/* It is generated code. Disable checkstyle */
//CHECKSTYLE:OFF
-/**
- * All Scilab gui management used in Java console
- * @author Vincent COUVERT
- * @copyright INRIA 2007
- */
+ /**
+ * All Scilab gui management used in Java console
+ * @author Vincent COUVERT
+ * @copyright INRIA 2007
+ */
public class GuiManagementJNI {
- /**
- * Constructor
- */
- protected GuiManagementJNI() {
- throw new UnsupportedOperationException();
- }
+ /**
+ * Constructor
+ */
+ protected GuiManagementJNI() {
+ throw new UnsupportedOperationException();
+ }
- static {
- try {
- System.loadLibrary("sciconsole");
- } catch (SecurityException e) {
- System.err.println("A security manager exists and does not allow the loading of the specified dynamic library.");
- System.err.println(e.getLocalizedMessage());
- System.exit(-1);
- } catch (UnsatisfiedLinkError e) {
- System.err.println("The native library sciconsole does not exist or cannot be found.");
- if (System.getenv("CONTINUE_ON_JNI_ERROR") == null) {
- System.err.println(e.getLocalizedMessage());
- System.err.println("Current java.library.path is : " + System.getProperty("java.library.path"));
- System.exit(-1);
- } else {
- System.err.println("Continuing anyway because of CONTINUE_ON_JNI_ERROR");
- }
+ static {
+ try {
+ System.loadLibrary("sciconsole");
+ } catch (SecurityException e) {
+ System.err.println("A security manager exists and does not allow the loading of the specified dynamic library.");
+ System.err.println(e.getLocalizedMessage());
+ System.exit(-1);
+ } catch (UnsatisfiedLinkError e) {
+ System.err.println("The native library sciconsole does not exist or cannot be found.");
+ if (System.getenv("CONTINUE_ON_JNI_ERROR") == null) {
+ System.err.println(e.getLocalizedMessage());
+ System.err.println("Current java.library.path is : "+System.getProperty("java.library.path"));
+ System.exit(-1);
+ }else{
+ System.err.println("Continuing anyway because of CONTINUE_ON_JNI_ERROR");
}
}
+ }
- public final static native void setScilabLines(int jarg1, int jarg2);
- public final static native void forceScilabLines(int jarg1, int jarg2);
+ public final static native void setScilabLines(int jarg1, int jarg2);
+ public final static native void forceScilabLines(int jarg1, int jarg2);
}
%{
#include "../c/dropFiles.h"
#include "machine.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
%}
/* JavaDoc for DropFilesJNI class */
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * This file is not intended to be easily readable and contains a number of
+ * Version 2.0.11
+ *
+ * This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make
- * changes to this file unless you know what you are doing--modify the SWIG
- * interface file instead.
+ * changes to this file unless you know what you are doing--modify the SWIG
+ * interface file instead.
* ----------------------------------------------------------------------------- */
#define SWIGJAVA
#ifndef SWIGUNUSED
# if defined(__GNUC__)
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-# define SWIGUNUSED __attribute__ ((__unused__))
+# define SWIGUNUSED __attribute__ ((__unused__))
# else
# define SWIGUNUSED
# endif
# elif defined(__ICC)
-# define SWIGUNUSED __attribute__ ((__unused__))
+# define SWIGUNUSED __attribute__ ((__unused__))
# else
-# define SWIGUNUSED
+# define SWIGUNUSED
# endif
#endif
#ifndef SWIG_MSC_UNSUPPRESS_4505
# if defined(_MSC_VER)
# pragma warning(disable : 4505) /* unreferenced local function has been removed */
-# endif
+# endif
#endif
#ifndef SWIGUNUSEDPARM
# ifdef __cplusplus
# define SWIGUNUSEDPARM(p)
# else
-# define SWIGUNUSEDPARM(p) p SWIGUNUSED
+# define SWIGUNUSEDPARM(p) p SWIGUNUSED
# endif
#endif
# define SWIGSTDCALL __stdcall
# else
# define SWIGSTDCALL
-# endif
+# endif
#endif
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
#include "../c/dropFiles.h"
#include "machine.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#ifdef __cplusplus
*/
%module GuiManagement
%{
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "../c/GuiManagement.h"
%}
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * This file is not intended to be easily readable and contains a number of
+ * Version 2.0.11
+ *
+ * This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make
- * changes to this file unless you know what you are doing--modify the SWIG
- * interface file instead.
+ * changes to this file unless you know what you are doing--modify the SWIG
+ * interface file instead.
* ----------------------------------------------------------------------------- */
#define SWIGJAVA
#ifndef SWIGUNUSED
# if defined(__GNUC__)
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-# define SWIGUNUSED __attribute__ ((__unused__))
+# define SWIGUNUSED __attribute__ ((__unused__))
# else
# define SWIGUNUSED
# endif
# elif defined(__ICC)
-# define SWIGUNUSED __attribute__ ((__unused__))
+# define SWIGUNUSED __attribute__ ((__unused__))
# else
-# define SWIGUNUSED
+# define SWIGUNUSED
# endif
#endif
#ifndef SWIG_MSC_UNSUPPRESS_4505
# if defined(_MSC_VER)
# pragma warning(disable : 4505) /* unreferenced local function has been removed */
-# endif
+# endif
#endif
#ifndef SWIGUNUSEDPARM
# ifdef __cplusplus
# define SWIGUNUSEDPARM(p)
# else
-# define SWIGUNUSEDPARM(p) p SWIGUNUSED
+# define SWIGUNUSEDPARM(p) p SWIGUNUSED
# endif
#endif
# define SWIGSTDCALL __stdcall
# else
# define SWIGSTDCALL
-# endif
+# endif
#endif
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, msg); return nullreturn; } else
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "../c/GuiManagement.h"
#include "SetConsolePrompt.h"
#include "InitializeConsole.h"
#include "PromptToHome.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "ScilabLinesUpdate.h"
#include "GetCharWithoutOutput.h"
#include "ConsoleIsWaitingForInput.h"
includes/getos.h \
includes/machine.h \
includes/mode_exec.h \
-includes/MALLOC.h \
+includes/sci_malloc.h \
includes/PATH_MAX.h \
includes/scilabDefaults.h \
includes/scisparse.h \
includes/getos.h \
includes/machine.h \
includes/mode_exec.h \
-includes/MALLOC.h \
+includes/sci_malloc.h \
includes/PATH_MAX.h \
includes/scilabDefaults.h \
includes/scisparse.h \
Source: modules\{#CORE}\includes\getmemory.h; DestDir: {app}\modules\{#CORE}\includes; Components: {#COMPN_SCILAB}
Source: modules\{#CORE}\includes\machine.h; DestDir: {app}\modules\{#CORE}\includes; Components: {#COMPN_SCILAB}
Source: modules\{#CORE}\includes\mode_exec.h; DestDir: {app}\modules\{#CORE}\includes; Components: {#COMPN_SCILAB}
-Source: modules\{#CORE}\includes\MALLOC.h; DestDir: {app}\modules\{#CORE}\includes; Components: {#COMPN_SCILAB}
+Source: modules\{#CORE}\includes\sci_malloc.h; DestDir: {app}\modules\{#CORE}\includes; Components: {#COMPN_SCILAB}
Source: modules\{#CORE}\includes\PATH_MAX.h; DestDir: {app}\modules\{#CORE}\includes; Components: {#COMPN_SCILAB}
Source: modules\{#CORE}\includes\scisparse.h; DestDir: {app}\modules\{#CORE}\includes; Components: {#COMPN_SCILAB}
Source: modules\{#CORE}\includes\scilabDefaults.h; DestDir: {app}\modules\{#CORE}\includes; Components: {#COMPN_SCILAB}
/* Only for Windows */
#include <Windows.h>
-#include "MALLOC.h"
+#include "sci_malloc.h"
char *GetExceptionString(DWORD ExceptionCode);
*/
#include <string.h>
#include "gw_core.h"
-#include "MALLOC.h"
+#include "sci_malloc.h"
#include "api_scilab.h"
#include "machine.h"
#include "callFunctionFromGateway.h"