2 /** This is part of the body of the GPCP runtime support.
3 *
4 * Written November 1998, John Gough.
5 *
6 * CPJ and CPJrts contain the runtime helpers, these classes have
7 * most of the adapters for hooking into the various Java libraries.
8 * RTS.java has the user-accessible facilities of the runtime. The
9 * facilities in CPJrts are known to the compiler, but have no
10 * CP-accessible functions.
11 *
12 * There is a swindle involved here, for the bootstrap version
13 * of the compiler: any functions with OUT scalars will have
14 * a different signature in the old and new versions. This
15 * module implements both, by overloading the methods.
16 * There is also the method for simulating an Exec.
17 */
23 /* ------------------------------------------------------------ */
24 /* Support for CPJ.cp */
25 /* ------------------------------------------------------------ */
29 // This is a crude adapter to connect two streams together.
30 // One use of this class is to connect the output and input
31 // threads of an forked-ed process to the standard input and
32 // output streams of the parent process.
33 //
34 InputStream in;
35 OutputStream out;
39 }
45 }
48 }
49 }
50 }
52 /* ------------------------------------------------------------ */
54 public final class CPJ
55 {
60 {
64 }
66 }
69 {
72 }
78 }
81 {
83 }
86 {
88 }
90 // OBSOLETE 2011 ?
91 /** Java compiler version */
95 {
101 }
102 }
104 // OBSOLETE 2011 ?
105 /** Component Pascal compiler version */
108 {
115 }
116 }
118 // OBSOLETE 2011 ?
119 /** Java compiler version */
123 {
129 }
130 }
132 // OBSOLETE 2011 ?
133 /** Component Pascal compiler version */
136 {
143 }
144 }
148 {
161 }
162 }
164 /* ------------------------------------------------------------ */
167 {
169 }
172 {
174 }
175 }
177 /* ------------------------------------------------------------ */
178 /* ------------------------------------------------------------ */
179 /* ------------------------------------------------------------ */