1 /* 2 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab 3 * Copyright (C) 2014 - Scilab Enterprises - Antoine ELIAS 4 * 5 * Copyright (C) 2012 - 2016 - Scilab Enterprises 6 * 7 * This file is hereby licensed under the terms of the GNU GPL v2.0, 8 * pursuant to article 5.3.4 of the CeCILL v.2.1. 9 * This file was originally licensed under the terms of the CeCILL v2.1, 10 * and continues to be available under such terms. 11 * For more information, see the COPYING file which you should have received 12 * along with this program. 13 * 14 */ 15 16 #ifndef __CONFIGVARIABLE_INTERFACE_H__ 17 #define __CONFIGVARIABLE_INTERFACE_H__ 18 19 #include <string.h> 20 #include <wchar.h> 21 #include "dynlib_ast.h" 22 23 #define VERBOSE_ERROR 0 24 25 typedef enum 26 { 27 SCILAB_API = 1, /* Scilab is launch as an API */ 28 SCILAB_STD, /* The standard Scilab (gui, plot ...) */ 29 SCILAB_NW, /* Scilab in command line with the plots */ 30 SCILAB_NWNI /* Scilab in command line without any graphics. What not mandataroy here */ 31 } scilabMode; 32 33 EXTERN_AST int getSimpMode(void); 34 EXTERN_AST void setSimpMode(int); 35 EXTERN_AST int getStartProcessing(); 36 EXTERN_AST int getEndProcessing(); 37 38 EXTERN_AST void setFormatSize(int _iFormatSize); 39 EXTERN_AST int getFormatSize(void); 40 EXTERN_AST void setFormatMode(int _iFormatMode); 41 EXTERN_AST int getFormatMode(void); 42 EXTERN_AST void setConsoleWidth(int _iConsoleWidth); 43 EXTERN_AST int getConsoleWidth(void); 44 EXTERN_AST void setConsoleLines(int _iConsoleLines); 45 EXTERN_AST int getConsoleLines(void); 46 47 EXTERN_AST int getPromptMode(void); 48 EXTERN_AST void setPromptMode(int _iMode); 49 EXTERN_AST int isSilentError(void); 50 EXTERN_AST void setSilentError(int _iSilent); 51 EXTERN_AST int isPrintInput(); 52 EXTERN_AST void setPrintInput(int); 53 EXTERN_AST int isPrintOutput(); 54 EXTERN_AST void setPrintOutput(int); 55 EXTERN_AST int isPrintCompact(); 56 EXTERN_AST void setPrintCompact(int); 57 EXTERN_AST int isPrintInteractive(); 58 EXTERN_AST void setPrintInteractive(int); 59 60 EXTERN_AST int getieee(void); 61 EXTERN_AST void setieee(int); 62 63 EXTERN_AST scilabMode getScilabMode(void); 64 EXTERN_AST void setScilabMode(scilabMode newmode); 65 EXTERN_AST const char * getScilabModeString(void); 66 67 EXTERN_AST int getWarningMode(void); 68 EXTERN_AST void setWarningMode(int _iMode); 69 EXTERN_AST int getWarningStop(void); 70 EXTERN_AST void setWarningStop(int _iMode); 71 72 EXTERN_AST int checkReferenceModule(const wchar_t* _module); 73 EXTERN_AST void addReferenceModule(const wchar_t* _module); 74 EXTERN_AST void removeReferenceModule(const wchar_t* _module); 75 76 EXTERN_AST int getForceQuit(); 77 78 EXTERN_AST int getEntryPointPosition(wchar_t* _pwstEntryPointName); 79 typedef void(*dynlib_ptr)(); 80 EXTERN_AST dynlib_ptr getEntryPointFromPosition(int position); 81 82 EXTERN_AST int isEnableDebug(); 83 EXTERN_AST int isDebugInterrupted(); 84 EXTERN_AST int debuggerManagerExecute(const char* command, int iWaitForIt); 85 86 EXTERN_AST int isExecutionBreak(); 87 EXTERN_AST void setExecutionBreak(); 88 EXTERN_AST void resetExecutionBreak(); 89 90 EXTERN_AST int setRecursionLimit(int); 91 92 EXTERN_AST int getWebMode(); 93 #endif /* !__CONFIGVARIABLE_INTERFACE_H__ */ 94 95