1 /* This C header file is generated by NIT to compile modules and programs that requires ../lib/standard/exec. */
2 #ifndef standard___exec_sep
3 #define standard___exec_sep
4 #include "standard___stream._sep.h"
5 #include <nit_common.h>
6 #include "exec._nitni.h"
8 extern const classtable_elt_t VFT_standard___exec___Process
[];
10 extern const classtable_elt_t VFT_standard___exec___IProcess
[];
12 extern const classtable_elt_t VFT_standard___exec___OProcess
[];
14 extern const classtable_elt_t VFT_standard___exec___IOProcess
[];
16 extern const classtable_elt_t VFT_standard___exec___NativeProcess
[];
17 struct TBOX_NativeProcess
{ const classtable_elt_t
* vft
; bigint object_id
; void* val
;};
18 val_t
BOX_NativeProcess(void* val
);
19 #define UNBOX_NativeProcess(x) (((struct TBOX_NativeProcess *)(VAL2OBJ(x)))->val)
20 extern const char LOCATE_standard___exec
[];
21 extern const int SFT_standard___exec
[];
22 #define ID_standard___exec___Process (SFT_standard___exec[0])
23 #define COLOR_standard___exec___Process (SFT_standard___exec[1])
24 #define ATTR_standard___exec___Process_____atdata(recv) ATTR(recv, (SFT_standard___exec[2] + 0))
25 #define INIT_TABLE_POS_standard___exec___Process (SFT_standard___exec[3] + 0)
26 #define CALL_standard___exec___Process___id(recv) ((standard___exec___Process___id_t)CALL((recv), (SFT_standard___exec[3] + 1)))
27 #define CALL_standard___exec___Process___is_finished(recv) ((standard___exec___Process___is_finished_t)CALL((recv), (SFT_standard___exec[3] + 2)))
28 #define CALL_standard___exec___Process___wait(recv) ((standard___exec___Process___wait_t)CALL((recv), (SFT_standard___exec[3] + 3)))
29 #define CALL_standard___exec___Process___status(recv) ((standard___exec___Process___status_t)CALL((recv), (SFT_standard___exec[3] + 4)))
30 #define CALL_standard___exec___Process___init(recv) ((standard___exec___Process___init_t)CALL((recv), (SFT_standard___exec[3] + 5)))
31 #define CALL_standard___exec___Process___init_(recv) ((standard___exec___Process___init__t)CALL((recv), (SFT_standard___exec[3] + 6)))
32 #define CALL_standard___exec___Process___execute(recv) ((standard___exec___Process___execute_t)CALL((recv), (SFT_standard___exec[3] + 7)))
33 #define CALL_standard___exec___Process___data(recv) ((standard___exec___Process___data_t)CALL((recv), (SFT_standard___exec[3] + 8)))
34 #define CALL_standard___exec___Process___data__eq(recv) ((standard___exec___Process___data__eq_t)CALL((recv), (SFT_standard___exec[3] + 9)))
35 #define CALL_standard___exec___Process___basic_exec_execute(recv) ((standard___exec___Process___basic_exec_execute_t)CALL((recv), (SFT_standard___exec[3] + 10)))
36 #define ID_standard___exec___IProcess (SFT_standard___exec[4])
37 #define COLOR_standard___exec___IProcess (SFT_standard___exec[5])
38 #define ATTR_standard___exec___IProcess_____atstream_in(recv) ATTR(recv, (SFT_standard___exec[6] + 0))
39 #define INIT_TABLE_POS_standard___exec___IProcess (SFT_standard___exec[7] + 0)
40 #define CALL_standard___exec___IProcess___stream_in(recv) ((standard___exec___IProcess___stream_in_t)CALL((recv), (SFT_standard___exec[7] + 1)))
41 #define CALL_standard___exec___IProcess___stream_in__eq(recv) ((standard___exec___IProcess___stream_in__eq_t)CALL((recv), (SFT_standard___exec[7] + 2)))
42 #define CALL_standard___exec___IProcess___init(recv) ((standard___exec___IProcess___init_t)CALL((recv), (SFT_standard___exec[7] + 3)))
43 #define CALL_standard___exec___IProcess___init_(recv) ((standard___exec___IProcess___init__t)CALL((recv), (SFT_standard___exec[7] + 4)))
44 #define ID_standard___exec___OProcess (SFT_standard___exec[8])
45 #define COLOR_standard___exec___OProcess (SFT_standard___exec[9])
46 #define ATTR_standard___exec___OProcess_____atstream_out(recv) ATTR(recv, (SFT_standard___exec[10] + 0))
47 #define INIT_TABLE_POS_standard___exec___OProcess (SFT_standard___exec[11] + 0)
48 #define CALL_standard___exec___OProcess___stream_out(recv) ((standard___exec___OProcess___stream_out_t)CALL((recv), (SFT_standard___exec[11] + 1)))
49 #define CALL_standard___exec___OProcess___stream_out__eq(recv) ((standard___exec___OProcess___stream_out__eq_t)CALL((recv), (SFT_standard___exec[11] + 2)))
50 #define CALL_standard___exec___OProcess___init(recv) ((standard___exec___OProcess___init_t)CALL((recv), (SFT_standard___exec[11] + 3)))
51 #define CALL_standard___exec___OProcess___init_(recv) ((standard___exec___OProcess___init__t)CALL((recv), (SFT_standard___exec[11] + 4)))
52 #define ID_standard___exec___IOProcess (SFT_standard___exec[12])
53 #define COLOR_standard___exec___IOProcess (SFT_standard___exec[13])
54 #define INIT_TABLE_POS_standard___exec___IOProcess (SFT_standard___exec[14] + 0)
55 #define CALL_standard___exec___IOProcess___init(recv) ((standard___exec___IOProcess___init_t)CALL((recv), (SFT_standard___exec[14] + 1)))
56 #define CALL_standard___exec___IOProcess___init_(recv) ((standard___exec___IOProcess___init__t)CALL((recv), (SFT_standard___exec[14] + 2)))
57 #define CALL_standard___exec___Sys___system(recv) ((standard___exec___Sys___system_t)CALL((recv), (SFT_standard___exec[15] + 0)))
58 #define CALL_standard___exec___NativeString___system(recv) ((standard___exec___NativeString___system_t)CALL((recv), (SFT_standard___exec[16] + 0)))
59 #define ID_standard___exec___NativeProcess (SFT_standard___exec[17])
60 #define COLOR_standard___exec___NativeProcess (SFT_standard___exec[18])
61 #define INIT_TABLE_POS_standard___exec___NativeProcess (SFT_standard___exec[19] + 0)
62 #define CALL_standard___exec___NativeProcess___id(recv) ((standard___exec___NativeProcess___id_t)CALL((recv), (SFT_standard___exec[19] + 1)))
63 #define CALL_standard___exec___NativeProcess___is_finished(recv) ((standard___exec___NativeProcess___is_finished_t)CALL((recv), (SFT_standard___exec[19] + 2)))
64 #define CALL_standard___exec___NativeProcess___status(recv) ((standard___exec___NativeProcess___status_t)CALL((recv), (SFT_standard___exec[19] + 3)))
65 #define CALL_standard___exec___NativeProcess___wait(recv) ((standard___exec___NativeProcess___wait_t)CALL((recv), (SFT_standard___exec[19] + 4)))
66 #define CALL_standard___exec___NativeProcess___in_fd(recv) ((standard___exec___NativeProcess___in_fd_t)CALL((recv), (SFT_standard___exec[19] + 5)))
67 #define CALL_standard___exec___NativeProcess___out_fd(recv) ((standard___exec___NativeProcess___out_fd_t)CALL((recv), (SFT_standard___exec[19] + 6)))
68 #define CALL_standard___exec___NativeProcess___err_fd(recv) ((standard___exec___NativeProcess___err_fd_t)CALL((recv), (SFT_standard___exec[19] + 7)))
69 val_t
standard___exec___Process___id(val_t p0
);
70 typedef val_t (*standard___exec___Process___id_t
)(val_t p0
);
71 val_t
standard___exec___Process___is_finished(val_t p0
);
72 typedef val_t (*standard___exec___Process___is_finished_t
)(val_t p0
);
73 void standard___exec___Process___wait(val_t p0
);
74 typedef void (*standard___exec___Process___wait_t
)(val_t p0
);
75 val_t
standard___exec___Process___status(val_t p0
);
76 typedef val_t (*standard___exec___Process___status_t
)(val_t p0
);
77 void standard___exec___Process___init(val_t p0
, val_t p1
, val_t p2
, int* init_table
);
78 typedef void (*standard___exec___Process___init_t
)(val_t p0
, val_t p1
, val_t p2
, int* init_table
);
79 val_t
NEW_Process_standard___exec___Process___init(val_t p0
, val_t p1
);
80 void standard___exec___Process___init_(val_t p0
, val_t p1
, int* init_table
);
81 typedef void (*standard___exec___Process___init__t
)(val_t p0
, val_t p1
, int* init_table
);
82 val_t
NEW_Process_standard___exec___Process___init_(val_t p0
);
83 void standard___exec___Process___execute(val_t p0
, val_t p1
, val_t p2
, val_t p3
, int* init_table
);
84 typedef void (*standard___exec___Process___execute_t
)(val_t p0
, val_t p1
, val_t p2
, val_t p3
, int* init_table
);
85 val_t
NEW_Process_standard___exec___Process___execute(val_t p0
, val_t p1
, val_t p2
);
86 val_t
standard___exec___Process___data(val_t p0
);
87 typedef val_t (*standard___exec___Process___data_t
)(val_t p0
);
88 void standard___exec___Process___data__eq(val_t p0
, val_t p1
);
89 typedef void (*standard___exec___Process___data__eq_t
)(val_t p0
, val_t p1
);
90 val_t
standard___exec___Process___basic_exec_execute(val_t p0
, val_t p1
, val_t p2
, val_t p3
, val_t p4
);
91 typedef val_t (*standard___exec___Process___basic_exec_execute_t
)(val_t p0
, val_t p1
, val_t p2
, val_t p3
, val_t p4
);
92 val_t
standard___exec___IProcess___stream_in(val_t p0
);
93 typedef val_t (*standard___exec___IProcess___stream_in_t
)(val_t p0
);
94 void standard___exec___IProcess___stream_in__eq(val_t p0
, val_t p1
);
95 typedef void (*standard___exec___IProcess___stream_in__eq_t
)(val_t p0
, val_t p1
);
96 void standard___exec___IProcess___close(val_t p0
);
97 typedef void (*standard___exec___IProcess___close_t
)(val_t p0
);
98 val_t
standard___exec___IProcess___read_char(val_t p0
);
99 typedef val_t (*standard___exec___IProcess___read_char_t
)(val_t p0
);
100 val_t
standard___exec___IProcess___eof(val_t p0
);
101 typedef val_t (*standard___exec___IProcess___eof_t
)(val_t p0
);
102 void standard___exec___IProcess___init(val_t p0
, val_t p1
, val_t p2
, int* init_table
);
103 typedef void (*standard___exec___IProcess___init_t
)(val_t p0
, val_t p1
, val_t p2
, int* init_table
);
104 val_t
NEW_IProcess_standard___exec___IProcess___init(val_t p0
, val_t p1
);
105 void standard___exec___IProcess___init_(val_t p0
, val_t p1
, int* init_table
);
106 typedef void (*standard___exec___IProcess___init__t
)(val_t p0
, val_t p1
, int* init_table
);
107 val_t
NEW_IProcess_standard___exec___IProcess___init_(val_t p0
);
108 val_t
standard___exec___OProcess___stream_out(val_t p0
);
109 typedef val_t (*standard___exec___OProcess___stream_out_t
)(val_t p0
);
110 void standard___exec___OProcess___stream_out__eq(val_t p0
, val_t p1
);
111 typedef void (*standard___exec___OProcess___stream_out__eq_t
)(val_t p0
, val_t p1
);
112 void standard___exec___OProcess___close(val_t p0
);
113 typedef void (*standard___exec___OProcess___close_t
)(val_t p0
);
114 val_t
standard___exec___OProcess___is_writable(val_t p0
);
115 typedef val_t (*standard___exec___OProcess___is_writable_t
)(val_t p0
);
116 void standard___exec___OProcess___write(val_t p0
, val_t p1
);
117 typedef void (*standard___exec___OProcess___write_t
)(val_t p0
, val_t p1
);
118 void standard___exec___OProcess___init(val_t p0
, val_t p1
, val_t p2
, int* init_table
);
119 typedef void (*standard___exec___OProcess___init_t
)(val_t p0
, val_t p1
, val_t p2
, int* init_table
);
120 val_t
NEW_OProcess_standard___exec___OProcess___init(val_t p0
, val_t p1
);
121 void standard___exec___OProcess___init_(val_t p0
, val_t p1
, int* init_table
);
122 typedef void (*standard___exec___OProcess___init__t
)(val_t p0
, val_t p1
, int* init_table
);
123 val_t
NEW_OProcess_standard___exec___OProcess___init_(val_t p0
);
124 void standard___exec___IOProcess___close(val_t p0
);
125 typedef void (*standard___exec___IOProcess___close_t
)(val_t p0
);
126 void standard___exec___IOProcess___init(val_t p0
, val_t p1
, val_t p2
, int* init_table
);
127 typedef void (*standard___exec___IOProcess___init_t
)(val_t p0
, val_t p1
, val_t p2
, int* init_table
);
128 val_t
NEW_IOProcess_standard___exec___IOProcess___init(val_t p0
, val_t p1
);
129 void standard___exec___IOProcess___init_(val_t p0
, val_t p1
, int* init_table
);
130 typedef void (*standard___exec___IOProcess___init__t
)(val_t p0
, val_t p1
, int* init_table
);
131 val_t
NEW_IOProcess_standard___exec___IOProcess___init_(val_t p0
);
132 val_t
standard___exec___Sys___system(val_t p0
, val_t p1
);
133 typedef val_t (*standard___exec___Sys___system_t
)(val_t p0
, val_t p1
);
134 val_t
NEW_Sys_standard___kernel___Sys___init();
135 val_t
standard___exec___NativeString___system(val_t p0
);
136 typedef val_t (*standard___exec___NativeString___system_t
)(val_t p0
);
137 val_t
NEW_NativeString_standard___string___NativeString___init();
138 val_t
standard___exec___NativeProcess___id(val_t p0
);
139 typedef val_t (*standard___exec___NativeProcess___id_t
)(val_t p0
);
140 val_t
standard___exec___NativeProcess___is_finished(val_t p0
);
141 typedef val_t (*standard___exec___NativeProcess___is_finished_t
)(val_t p0
);
142 val_t
standard___exec___NativeProcess___status(val_t p0
);
143 typedef val_t (*standard___exec___NativeProcess___status_t
)(val_t p0
);
144 void standard___exec___NativeProcess___wait(val_t p0
);
145 typedef void (*standard___exec___NativeProcess___wait_t
)(val_t p0
);
146 val_t
standard___exec___NativeProcess___in_fd(val_t p0
);
147 typedef val_t (*standard___exec___NativeProcess___in_fd_t
)(val_t p0
);
148 val_t
standard___exec___NativeProcess___out_fd(val_t p0
);
149 typedef val_t (*standard___exec___NativeProcess___out_fd_t
)(val_t p0
);
150 val_t
standard___exec___NativeProcess___err_fd(val_t p0
);
151 typedef val_t (*standard___exec___NativeProcess___err_fd_t
)(val_t p0
);