64 |
void gc_process(Process_T *p) { |
void gc_process(Process_T *p) { |
65 |
|
|
66 |
int i; |
int i; |
67 |
|
|
68 |
|
ASSERT(p); |
69 |
|
|
70 |
if((*p)->portlist) { |
if((*p)->portlist) { |
71 |
|
|
129 |
|
|
130 |
|
|
131 |
void gc_mail_list(Mail_T *m) { |
void gc_mail_list(Mail_T *m) { |
132 |
|
|
133 |
|
ASSERT(m); |
134 |
|
|
135 |
if((*m)->next) |
if((*m)->next) |
136 |
gc_mail_list(&(*m)->next); |
gc_mail_list(&(*m)->next); |
151 |
|
|
152 |
static void _gcpl(Process_T *p) { |
static void _gcpl(Process_T *p) { |
153 |
|
|
154 |
|
ASSERT(p); |
155 |
|
|
156 |
if((*p)->next) { |
if((*p)->next) { |
157 |
|
|
158 |
_gcpl(&(*p)->next); |
_gcpl(&(*p)->next); |
167 |
|
|
168 |
static void _gcppl(Port_T *p) { |
static void _gcppl(Port_T *p) { |
169 |
|
|
170 |
|
ASSERT(p); |
171 |
|
|
172 |
if((*p)->next) { |
if((*p)->next) { |
173 |
|
|
174 |
_gcppl(&(*p)->next); |
_gcppl(&(*p)->next); |
186 |
|
|
187 |
static void _gcpcl(Checksum_T *p) { |
static void _gcpcl(Checksum_T *p) { |
188 |
|
|
189 |
|
ASSERT(p); |
190 |
|
|
191 |
if((*p)->next) { |
if((*p)->next) { |
192 |
|
|
193 |
_gcpcl(&(*p)->next); |
_gcpcl(&(*p)->next); |
204 |
|
|
205 |
static void _gcpql(Resource_T *q) { |
static void _gcpql(Resource_T *q) { |
206 |
|
|
207 |
|
ASSERT(q); |
208 |
|
|
209 |
if((*q)->next) { |
if((*q)->next) { |
210 |
|
|
211 |
_gcpql(&(*q)->next); |
_gcpql(&(*q)->next); |
220 |
|
|
221 |
static void _gcppil(ProcInfo_T *pi) { |
static void _gcppil(ProcInfo_T *pi) { |
222 |
|
|
223 |
|
ASSERT(pi); |
224 |
|
|
225 |
free(*pi); |
free(*pi); |
226 |
*pi= NULL; |
*pi= NULL; |
227 |
|
|
230 |
|
|
231 |
static void _gcptl(Timestamp_T *p) { |
static void _gcptl(Timestamp_T *p) { |
232 |
|
|
233 |
|
ASSERT(p); |
234 |
|
|
235 |
if((*p)->next) { |
if((*p)->next) { |
236 |
|
|
237 |
_gcptl(&(*p)->next); |
_gcptl(&(*p)->next); |
247 |
|
|
248 |
static void _gcpdl(Dependant_T *d) { |
static void _gcpdl(Dependant_T *d) { |
249 |
|
|
250 |
|
ASSERT(d); |
251 |
|
|
252 |
if((*d)->next) { |
if((*d)->next) { |
253 |
|
|
254 |
_gcpdl(&(*d)->next); |
_gcpdl(&(*d)->next); |