1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
/*
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
* Copyright (C) 2006 - 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-en.txt
*
*/
#ifndef __REALMAIN_H__
#define __REALMAIN_H__
/*--------------------------------------------------------------------------*/
#include <signal.h>
#include <stdio.h>
#include <string.h>
#ifdef _MSC_VER
#include <Windows.h>
#endif
#include "version.h"
/**
* When Scilab is started with arguments ... defines if it is a scilab
* script or a scilab code
*/
typedef enum {
SCILAB_SCRIPT=0, /* SCILAB_SCRIPT means filename as argument */
SCILAB_CODE=1 /* SCILAB_CODE means a scilab code */
} InitScriptType;
/**
* The real main of Scilab
*
* @param no_startup_flag_l
* @param initial_script
* @param initial_script_type
* @param memory
* @return 0 is everything went fine. not 0 is everything went wrong. (@TODO: should be changed... returning only 0 here)
*/
int realmain(int no_startup_flag_l,char *initial_script,InitScriptType initial_script_type,int memory);
/**
* @TODO add comment
*
* @param void
* @return <ReturnValue>
*/
int Get_no_startup_flag(void);
/**
* @TODO add comment
*
* @param start
*/
void Set_no_startup_flag(int start);
#ifndef _MSC_VER
char ** create_argv(int *argc);
#endif
#endif /* __REALMAIN_H__ */
/*--------------------------------------------------------------------------*/
|