1\function{SLang_init_slang}
2\synopsis{Initialize the interpreter}
3\usage{int SLang_init_slang (void)}
4\description
5  The \var{SLang_init_slang} function must be called by all
6  applications that use the \slang interpreter.  It initializes the
7  interpreter, defines the built-in data types, and adds a set of core
8  intrinsic functions.
9
10  The function returns \var{0} upon success, or \var{-1} upon failure.
11\seealso{SLang_init_slfile, SLang_init_slmath, SLang_init_slunix}
12\done
13
14\function{SLang_init_slfile}
15\synopsis{Initialize the interpreter file I/O intrinsics}
16\usage{int SLang_init_slfile (void)}
17\description
18  This function initializes the interpreters file I/O intrinsic
19  functions.  This function adds intrinsic functions such as
20  \var{fopen}, \var{fclose}, and \var{fputs} to the interpreter.
21  It returns \exmp{0} if successful, or \exmp{-1} upon error.
22\notes
23  Before this function can be called, it is first necessary to call
24  \var{SLang_init_slang}.  It also adds
25  the preprocessor symbol \var{__SLFILE__} to the interpreter.
26\seealso{SLang_init_slang, SLang_init_slunix, SLang_init_slmath}
27\done
28
29\function{SLang_init_slmath}
30\synopsis{Initialize the interpreter math intrinsics}
31\usage{int SLang_init_slmath (void)}
32\description
33  The \var{SLang_init_slmath} function initializes the interpreter's
34  mathematical intrinsic functions and makes them available to the
35  language.  The intrinsic functions include \var{sin}, \var{cos},
36  \var{tan}, etc...  It returns \exmp{0} if successful, or \exmp{-1}
37  upon failure.
38\notes
39  This function must be called after \var{SLang_init_slang}.  It adds
40  the preprocessor symbol \var{__SLMATH__} to the interpreter.
41\seealso{SLang_init_slang, SLang_init_slfile, SLang_init_slunix}
42\done
43
44\function{SLang_init_slunix}
45\synopsis{Make available some unix system calls to the interpreter}
46\usage{int SLang_init_slunix (void)}
47\description
48  The \var{SLang_init_slunix} function initializes the interpreter's
49  unix system call intrinsic functions and makes them available to the
50  language.  Examples of functions made available by
51  \var{SLang_init_slunix} include \var{chmod}, \var{chown}, and
52  \var{stat_file}.  It returns \exmp{0} if successful, or \exmp{-1}
53  upon failure.
54\notes
55  This function must be called after \var{SLang_init_slang}.  It adds
56  the preprocessor symbol \var{__SLUNIX__} to the interpreter.
57\seealso{SLang_init_slang, SLang_init_slfile, SLang_init_slmath}
58\done
59
60