move disp in output_stream
[scilab.git] / scilab / modules / output_stream / sci_gateway / c / gw_output_stream.c
1 /*
2 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 * Copyright (C) 2009 - DIGITEO - Allan CORNET
4 *
5 * This file must be used under the terms of the CeCILL.
6 * This source file is licensed as described in the file COPYING, which
7 * you should have received as part of this distribution.  The terms
8 * are also available at
9 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
10 *
11 */
12
13 /*--------------------------------------------------------------------------*/
14 #include "gw_output_stream.h"
15 #include "stack-c.h"
16 #include "callFunctionFromGateway.h"
17 /*--------------------------------------------------------------------------*/
18 static gw_generic_table Tab[]={ 
19         {sci_print, "print"},
20         {sci_mprintf, "mprintf"},
21         {sci_msprintf, "msprintf"},
22         {sci_disp, "disp"}
23 };
24 /*--------------------------------------------------------------------------*/
25 int gw_output_stream(void)
26 {
27         Rhs = Max(0, Rhs);
28         callFunctionFromGateway(Tab);
29         return 0;
30 }
31 /*--------------------------------------------------------------------------*/