root/stdlib/system.crl

Revision 6ee09c3569acd94dbc293973755507f3c558b54d, 1.4 kB (checked in by redbrain <redbrain@…>, 2 years ago)

refactors for handling the standard library and external modules

  • Property mode set to 100644
Line 
1# Crules is the legal property of its developers. Please refer to the
2# COPYRIGHT file distributed with this source distribution.
3#
4# This program is free software: you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation, either version 3 of the License, or
7# (at your option) any later version.
8#
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with this program.  If not, see <http://www.gnu.org/licenses/>.
16
17class system {
18     
19      defun path_exists( path )
20      {
21        return ( __builtin_.path_exists( path ) );
22      }
23
24      defun path_isfile( path )
25      {
26        return ( __builtin_.path_isfile( path ) );
27      }
28
29      defun path_isdir( path )
30      {
31        return ( __builtin_.path_isdir( path ) );
32      }
33
34      defun open( path, attributes )
35      {
36        return ( __builtin_.fopen( path, attributes ) );
37      }
38
39      defun close( file_desc )
40      {
41        __builtin_.fclose( file_desc );
42      }
43
44      defun read( file_desc )
45      {
46      }
47
48      defun write( data, file_desc )
49      {
50      }
51
52      defun get_size( file_desc )
53      {
54      }
55}
56
Note: See TracBrowser for help on using the browser.