92ba7e93b0b218f5fd8ddaa2eedd7ced15ab3340
[scilab.git] / scilab / modules / fileio / sci_gateway / c / gw_fileio.c
1 /*
2  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3  * Copyright (C) 2006 - INRIA - Allan CORNET
4  * ...
5  * 
6  * This file must be used under the terms of the CeCILL.
7  * This source file is licensed as described in the file COPYING, which
8  * you should have received as part of this distribution.  The terms
9  * are also available at    
10  * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11  *
12  */
13 /*--------------------------------------------------------------------------*/
14 #include "gw_fileio.h"
15 #include "callFunctionFromGateway.h"
16 #include "stack-c.h"
17 /*--------------------------------------------------------------------------*/ 
18 /*  interface function */
19 /*--------------------------------------------------------------------------*/ 
20 static gw_generic_table Tab[]={
21         {sci_mopen, "mopen"},
22         {sci_mputstr, "mputstr"},
23         {sci_mclose, "mclose"},
24         {sci_mput, "mput"},
25         {sci_mget, "mget"},
26         {sci_mgetstr, "mgetstr"},
27         {sci_meof, "meof"},
28         {sci_mseek, "mseek"},
29         {sci_mtell, "mtell"},
30         {sci_mclearerr, "mclearerr"},
31         {sci_mfprintf,"mfprintf"},
32         {sci_scanf,"mscanf"},
33         {sci_fscanf,"mfscanf"},
34         {sci_sscanf,"msscanf"},
35         {sci_fscanfMat,"fscanfMat"},
36         {sci_fprintfMat,"fprintfMat"},
37         {sci_merror, "merror"},
38         {sci_findfiles,"findfiles"},
39         {sci_maxfiles,"maxfiles"},
40         {sci_getdrives,"getdrives"},
41         {sci_fullpath,"fullpath"},
42         {sci_deletefile,"deletefile"},
43         {sci_pathsep,"pathsep"},
44         {sci_filesep,"filesep"},
45         {sci_getlongpathname,"getlongpathname"},
46         {sci_getshortpathname,"getshortpathname"},
47         {sci_fileext,"fileext"},
48         {sci_isdir,"isdir"},
49         {sci_removedir,"removedir"},
50         {sci_createdir,"createdir"},
51         {sci_pwd,"pwd"},
52         {sci_chdir,"chdir"},
53         {sci_fileinfo,"fileinfo"},
54         {sci_newest,"newest"},
55         {sci_getrelativefilename,"getrelativefilename"},
56         {sci_get_absolute_file_path,"get_absolute_file_path"},
57         {sci_copyfile,"copyfile"},
58         {sci_isfile,"isfile"},
59         {sci_fileparts,"fileparts"},
60         {sci_movefile,"movefile"},
61         {sci_basename,"basename"},
62         {sci_pathconvert,"pathconvert"}
63         };
64 /*--------------------------------------------------------------------------*/ 
65 int gw_fileio(void)
66 {
67         Rhs = Max(0,Rhs);
68         callFunctionFromGateway(Tab, SIZE_CURRENT_GENERIC_TABLE(Tab));
69         return 0;
70 }
71 /*--------------------------------------------------------------------------*/ 
72